regsvr32
-
Hi. I was using Inside COM by Dale Rogerson book and I dont have the CD, so I kinda guess how to register the component. But when I do "regsvr32 /s Cmpnt.dll" , the entry for "InprocServer32" is garbage. Can someone help me out with this? Registry.cpp: #include extern "C" HRESULT RegisterServer(HMODULE g_hModule, const CLSID& CLSID_Component1, const char* g_szFriendlyName, const char* g_szVerIndProgID, const char* g_szProgID) { CComModule cm; return cm.RegisterClassHelper(CLSID_Component1, g_szProgID, g_szVerIndProgID, NULL, THREADFLAGS_BOTH); } cmpnt.def: ; ; Cmpnt1 module-definiteion file ; LIBRARY Cmpnt.dll DESCRIPTION '(c)1996-1997 Dale E. Rogerson' EXPORTS DllCanUnloadNow @1 PRIVATE DllGetClassObject @2 PRIVATE DllRegisterServer @3 PRIVATE DllUnregisterServer @4 PRIVATE DllMain @5 PRIVATE