Registering DLL Files

Registering DLL Files

When I try to register a DLL I created in VB6, I get the message that tells me the DLL is not a valid windows NT image. At the run command I enter:

regsvr32 C:app.vbp

Isn’t this the proper way to register a DLL?

RegSvr32 is the correct program to use; however, you can only register DLL files. You can’t register the projects used to create them in Visual Basic. Provide the full path to the DLL to RegSvr32 and the library file will register correctly.


Share the Post: