Click to See Complete Forum and Search --> : Won't register


Jim Bassett
May 20th, 1999, 04:50 PM
I have built a composite control using ATL 6.0 I get the following error message duign registering

Performing registration
The system cannot execute the specified program.
Server registration done!

Composite.dll - 0 error(s), 0 warning(s)


Under Project settings, Custome Build the follwoing was automatically placed as:

"$(TargetPath)" /RegServer
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
echo Server registration done!

What is the problem?

Thanks

Jim Bassett

R.D. Holland
May 20th, 1999, 05:10 PM
My atl based projects have these lines in the custom build step:

echo regsvr32 exec. time > $(OutDir)\regsvr32.trg"
regsvr32 /s /c "$(TargetPath)"

You can debug the registration process by going to settings/debug and keying in regsvr32.exe as the program and "$(TargetPath)" (or simply key in the path to your dll) as the program argument. You should be able to break in DllRegisterServer, assuming regsvr32.exe can be found and launched.