Nothingz

After compiling a activeX dll in VB6. I had tried to use it in my C# application :

[DllImport ("MyLib.dll",EntryPoint="Function1")]
private static extern int MyFunc (int _num);

-> I get an exception "Entry Point not found !"

It's my activeX Dll code :

public function Function1 (byval num as long) as long
.....

How to reuse this dll, Somebody help me !


Re: Visual C# General VB6 ActiveX Dll Problem !

Ernst Kuschke

Hi,

Since VB6 is all about COM, you can have Visual Studio do all the work of creating a runtime-callable-wrapper (RCW) for your VB6 dll:
Simply add a COM Reference to this dll to your project by using the "COM" tab on the "Add Reference" dialog Wink





Re: Visual C# General VB6 ActiveX Dll Problem !

Nothingz

Hey.

It worked ! Thanks you very much !