Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble with regsvr32

Status
Not open for further replies.

LF28

Programmer
Nov 22, 2002
52
DE
Hi folks,

I am building a self-registration capable dll using msvc. So I included something like

regsvr32 <mydll.dll>

in the post build step. Now, everything's fine as long as I release build the thing. The DLL is created and registered as it should be. Enter Debug build.
When I compile the DLL with debug settings I am getting an error message from regsvr32 saying: "LoadLibrary: the module <mydll.dll> cannot be found". I know that this can be caused by missing dependencies. BUT when I open up a console and manually type:

regsvr32 mydll.dll

everything is fine again.
This really only happens in the debug build, plus, the DLL is fully functional and loadable from a client once it is (manually) registered. So it really cannot be a dependency problem.

Does anyone have a clue as to what is going on here?

Thanks in advance!
 
Are the compile options the same for the C++/Code Generation/Use run-time library?
 
The options differ in the usual way:

release build:
runtime: multithreaded-dll
no checking (small types, stack, ...)
struct alignment: standard

debug build:
runtime: multithreaded-debug-dll
full runtime checks
struct alignment: standard

I double and triple checked all settings and I am not able to find anything which could explain the symptoms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top