Question : How do I specify the entry point for a dll written in vb.net?

How do I specify the entry point for a dll written in vb.net?  

I have a project named CardLib with one file named Main.vb (and of course AssemblyInfo.vb).  I want the entry point to be the function DecryptCard in main.vb.

I'm asking because when I try to register the dll with regsvr32 I get the message:

"cardlib.dll was loaded, but the DLllRegisterServer entry point was not found. This file can not be registered."

Also, when I try to call the dll, I get a message saying "Cannot find entry point DecryptCard in the DLL."

So I assume I'm asking the right question.

Can you tell me how to do that?

Thanks.

Answer : How do I specify the entry point for a dll written in vb.net?

You can't regsvr32.exe a .NET control.

You use REGASM.EXE on it.

regasm.exe /codebase .DLL

You can create and see the GUID created with:

regasm.exe /regfile

This will create a .REG file that shows what is created in the registry via the /codebase switch.

The entry point will be put into the registry via these means.
Random Solutions  
 
programming4us programming4us