RegSvr32 results in PRJ0019

  • Thread starter Thread starter Zhou Yi
  • Start date Start date
Z

Zhou Yi

Greetings!

I have a COM program developed in VC6. Now I converted it to VS.NET 2003,
but the custom build step failed when trying to build it. Here is the
command line in the custom build step:

regsvr32 /s /c "$(TargetPath)"

It fails, and if I remove "/s /c" the message box shows:

LoadLibrary("D:\Bin\DeferredTaskClt.dll") failed - The specified module
could not be found.

The "$(TargetPath)" is what I want to register. The interesting thing is, if
I run the same command line:

regsvr32 "D:\Bin\DeferredTaskClt.dll"

The message box shows:

DllRegisterServer in DeferredTaskClt.dll succeeded.

Could anyone please help me figure out what the problem is?

Thanks for taking your time to read my question. Any clue will be much
appreciated.

Zhou Yi
 
Back
Top