new questions about com control
- From: Felix Joachim <felix339@xxxxxx>
- Date: Thu, 21 Jul 2005 20:06:41 +0200
Hi,
I finally got around to downloading more SDKs and got a regsvrce.exe.
After trying to register the dll I get this error message: x.dll was loaded but the DllRegisterServer entry point was not found. ....
I've created the dll as a Windows Control Library project with VS 2003.
I tried to solve the problem by following the steps from this url (Packaging an Assembly for COM).
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconpackagingassemblyforcom.asp
After searching with google I couldn't find any solution for dlls programmed with .Net, not sure what to do now.
Help! ;)
felix
Felix Joachim wrote:
Thanks Alex.
I'm not really sure about two things now. Is a Smart Device Cab project a good way to create the CAB file?
Is the .inf example below enough to get the control registered to use it in a website?
I would of course have to replace some names, but I can't see where the lines I added to the generated file (clsid, FileVersion and so on) have gone.
I would still be glad if somebody could send me a pointer to a website which discusses this topic.
felix
Alex Feinman [MVP] wrote:
A sample .inf file will look like this:
========================================================= [Version] ; Required section Signature = "$Windows NT$" Provider = "Microsoft" CESignature = "$Windows CE$"
[CEStrings] ; Required section AppName = "My ActiveX Control" InstallDir = %CE1%\%AppName% ; Install in \Program Files\app_name
[CEDevice] ; Optional
UnsupportedPlatforms = "HPC","Jupiter","Palm PC"
VersionMin = 3.0 ; Specifies minimum version of Windows CE 3.0
VersionMax = 4.99 ; Specifies maximum version of Windows CE 3.0
[CEDevice.SA]
ProcessorType = 2577 ; Specifies processor value type for StrongARM
[DefaultInstall] ; Required section
CopyFiles = Files.Common ; Points to Files.Common for files to copy
AddReg = RegSettings ; Points to RegSettings for registry root list
[DefaultInstall.SA] CopyFiles = Files.SA ; Points to Files.SA for files to copy CESelfRegister = MyControl.dll ; Specifies custom setup.dll
[Files.Common] ; Required section
[Files.SA] MyControl.dll,,,0
[RegSettings] ; Required section
[Shortcuts1.SA]
[SourceDisksNames] ; Required section 1 = ,"Common files",,. [SourceDisksNames.SA] 2 = ,"SA files",,ARM
[SourceDisksFiles] ; Required section
[SourceDisksFiles.SA] MyControl.dll = 2 ; Use SourceDisksNames disk_id_num = 2
[DestinationDirs] ; Required section
Files.Common = 0,%InstallDir% ; Install in \Program Files\app_name
Files.SA = 0,%InstallDir%
=====================================================================-- Alex Feinman---Visit http://www.opennetcf.org"Felix Joachim" <felix339@xxxxxx> wrote in message news:62d90$42da2fb5$54b2eac9$14234@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I've installed the PocketPC 2002 SDK and couldn't find much information about how to make an inf file.
http://msdn.microsoft.com/workshop/components/activex/packaging.asp has some information, I'm not sure how to create the cab file for a PPC though.
I've tried to create a .Net 2.0 Smart Device CAB project with the dll. It automatically adds some files then (System.Windows.Forms.dll, System.Xml.dll, System.Runtime.Serialization.Formatters.Soap.dll, Accessibility.dll, System.dll, System.Drawing.dll).
I added some entries from the url above to the CAB-project inf-file then:
[Files.Common1]
"WindowsControlLibrary4.dll","WindowsControlLibrary4.dll",,0
clsid={E3BD4470-A21F-30B7-8043-9D5ADA266EC4}
FileVersion=1.0.2016.18533
RegisterServer=yes
[Files.Common2]
"System.Windows.Forms.dll","System.Windows.Forms.dll",,0
This doesn't work though.
Either I don't get something or this is mostly done with the embedded Toolkit, it can't be that hard. ;)
I suppose I could use regsrvce.exe, it's not installed on the emulator or my PPC though and wouldn't be too convenient when deploying the component later.
bye, felix
Alex Feinman [MVP] wrote:
Web browser will instantiate a COM component by CLSID or ProgID as usually. I suggest that you create a cab with your activeX component an install it on target device. There are samples in SDK on how to create an .inf file and a cab that registers a component. There is nothing .NET-specific to it
.
- Follow-Ups:
- Re: new questions about com control
- From: Paul G. Tobey [eMVP]
- Re: new questions about com control
- References:
- How to register a COM dll?
- From: Felix Joachim
- Re: How to register a COM dll?
- From: Alex Feinman [MVP]
- Re: How to register a COM dll?
- From: Felix Joachim
- Re: How to register a COM dll?
- From: Alex Feinman [MVP]
- Re: How to register a COM dll?
- From: Felix Joachim
- How to register a COM dll?
- Prev by Date: Re: Error using P/Invoke with Winsock API using CF.NET
- Next by Date: Re: new questions about com control
- Previous by thread: Re: How to register a COM dll?
- Next by thread: Re: new questions about com control
- Index(es):
Relevant Pages
|