Problems registering DLL
-
I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.
-
I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.
0x000000c1 = "%1 is not a valid Windows NT application." try Tools / Error Lookup in VC. -c
-
I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.
-- RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. ".\Debug\MAPConnector.dll" is a relative path name. Maybe some other DLL used by your application is not in the path at the time RegSvr32 is being executed. Or else the current directory is not in the correct location relative to your path for RegSvr32 to find your DLL to load it to register it at the time you are doing the build. I seem to recall editing the project build settings and using a variable that represent the project directory, instead of an abolute relative path to the DLL. for exmaple "$(ProjDir)\Debug\MAPConnector.dll"