Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 5 Jahren, 5 Monaten
Letzter Beitrag:
vor 5 Jahren, 5 Monaten
Beteiligte Autoren:
Bob Roos, Danny Lauwers

WD17 Component to .NET assembly witn COM availabillity

Startbeitrag von Bob Roos am 31.01.2013 03:04

Has anyone done this (or attempted it)? WD says it was completed, but OLEView doesn't like the DLL and won't display any information about it because of a MK_E_INVALIDEXTENSION error.

The COM browser for PowerBasic says the DLL contains no type library and won't open the file.

Should it contain a type library (whatever that is) or is that something that is separate? Is that related to the invalid extension?

I finally saw where to find the GUIDs for the classes.

I can't register the DLL because Regsvr32 complains that DllRegisterServer entry point is not found.

I also don't know about Strong Names and if I need to have my own .snk file and if that has any relevance to my problem.

In short I need HELP! thanks

Bob Roos



If it is a .NET dll with Com visibility, then you need to use regasm.exe from the .NET framework to register this DLL, not Regsvr32. Once registration is completed, you should be able to use this .NET (COM) DLL with any programs that support com/ocx libs.

Can't remember the exact parameters, but I think it is something like this:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm "your assembly.dll" /codebase /tlb:"your assembly.tlb"

Hope this helps

von Danny Lauwers - am 31.01.2013 22:21
Danny Lauwers

If it is a .NET dll with Com visibility, then you need to use regasm.exe from the .NET framework to register this DLL, not Regsvr32....

Hope this helps



That helps tremendously. The parms for regasm display when you run it with no parms. I can now use OLEView to display the type lib

I will ask PCSoft to include that step as part of their instructions. That has been the biggest problem with COM in WD -- lack of thorough instructions.

The notification to this went into my spam bucket so I almost missed it..

Thanks again.

Bob Roos

von Bob Roos - am 01.02.2013 15:37
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.