new questions about com control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: new questions about com control
    ... I can't find a .Net 1 Smart Device Control Library project right now. ... ActiveX control) since Visual Studio adds the needed entries to the registry by itself. ... should be exported from any COM DLL that knows how to register itself. ... Is a Smart Device Cab project a good way to create the CAB file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: new questions about com control
    ... What I have now is a .Net Control that draws some stuff and then saves that as a gif image. ... 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. ... Is a Smart Device Cab project a good way to create the CAB file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: new questions about com control
    ... I haven't found an example about how to implement DllRegisterServer with .Net yet. ... What I have now is a .Net Control that draws some stuff and then saves that as a gif image. ... I've created the dll as a Windows Control Library project with VS 2003. ... Is a Smart Device Cab project a good way to create the CAB file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: new questions about com control
    ... I can't find a .Net 1 Smart Device Control Library project right now. ... control) since Visual Studio adds the needed entries to the registry by itself. ... should be exported from any COM DLL that knows how to register itself. ... Is a Smart Device Cab project a good way to create the CAB file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cab file problem
    ... Can you check if you have any dependencies in your project pointing to full framework dlls instead of the Compact Framework versions? ... It has been working successfully for months, and usually creates a CAB of around 2MB in size. ... Whan I looked at the detected dependencies list, it contains alot more files than it used to - including System .dll files that weren't there before and after I install it I get type load errors at runtime that suggests to me that files on the device are being overwritten when they shouldn't be. ...
    (microsoft.public.dotnet.framework.compactframework)