Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama18-Jul-06 20:22
Andy Rama18-Jul-06 20:22 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Anilkumar K V18-Jul-06 23:35
Anilkumar K V18-Jul-06 23:35 
AnswerRe: Unregister same registering with 'regsvr32.exe' ? Pin
ThatsAlok18-Jul-06 0:42
ThatsAlok18-Jul-06 0:42 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama18-Jul-06 20:27
Andy Rama18-Jul-06 20:27 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
ThatsAlok18-Jul-06 22:23
ThatsAlok18-Jul-06 22:23 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama19-Jul-06 4:26
Andy Rama19-Jul-06 4:26 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
ThatsAlok19-Jul-06 4:48
ThatsAlok19-Jul-06 4:48 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama19-Jul-06 20:26
Andy Rama19-Jul-06 20:26 
The dll I am tring to Unregister/Register in written by myself using 'ATL COM Appwizard' in VC6. But when I use other dll to register/unregister using following code, it is working. Then what might be the problem?
When I register/unregister other dll (not mine). using following code (code given by u). It is working fine. But same code for my dll is not working, that dll I can register/unregister using "regsvr32" command in command prompt. Then what might be the problem ?

typedef HRESULT (CALLBACK *HCRET)(void);

HCRET lpfnDllRegisterServer = NULL;
HINSTANCE hDLL = LoadLibrary("SimpleExt.dll");
if (hDLL != NULL)
{
lpfnDllRegisterServer = (HCRET)GetProcAddress(hDLL, "DllRegisterServer");
//lpfnDllRegisterServer = (HCRET)GetProcAddress(hDLL, "DllUnregisterServer");

if(NULL == lpfnDllRegisterServer)
MessageBox("ERR");
else
{
if(FAILED((*lpfnDllRegisterServer)()))
MessageBox("Dll registration failed!");
else
MessageBox("Success");
}
FreeLibrary ( hDLL );
}
else
MessageBox("LoadLibrary failed");


ThatsAlok wrote:
lpfnDllRegisterServer should of type :- HRESULT STDAPICALLTYPE DllUnregisterServer(void)

How to use this. I have declared it as,

typedef HRESULT (CALLBACK *HCRET)(void);
HCRET lpfnDllRegisterServer = NULL;
Questionhow to make a commandLine to wait Pin
kanna_p17-Jul-06 20:24
kanna_p17-Jul-06 20:24 
AnswerRe: how to make a commandLine to wait [modified] Pin
bob1697217-Jul-06 20:33
bob1697217-Jul-06 20:33 
AnswerRe: how to make a commandLine to wait Pin
NiceNaidu17-Jul-06 20:33
NiceNaidu17-Jul-06 20:33 
QuestionERROR??? Pin
mimimimilaw17-Jul-06 20:21
mimimimilaw17-Jul-06 20:21 
AnswerRe: ERROR??? Pin
Hamid_RT17-Jul-06 20:27
Hamid_RT17-Jul-06 20:27 
GeneralRe: ERROR??? Pin
mimimimilaw17-Jul-06 20:38
mimimimilaw17-Jul-06 20:38 
GeneralRe: ERROR??? Pin
Hamid_RT17-Jul-06 20:52
Hamid_RT17-Jul-06 20:52 
GeneralRe: ERROR??? [modified] Pin
mimimimilaw17-Jul-06 21:00
mimimimilaw17-Jul-06 21:00 
GeneralRe: ERROR??? Pin
Hamid_RT17-Jul-06 21:50
Hamid_RT17-Jul-06 21:50 
AnswerRe: ERROR??? Pin
NiceNaidu17-Jul-06 20:27
NiceNaidu17-Jul-06 20:27 
GeneralRe: ERROR??? Pin
NiceNaidu17-Jul-06 20:47
NiceNaidu17-Jul-06 20:47 
GeneralRe: ERROR??? [modified] Pin
mimimimilaw17-Jul-06 21:08
mimimimilaw17-Jul-06 21:08 
QuestionVC++ Documentation (in advance) Pin
MozhdehQeraati17-Jul-06 20:20
MozhdehQeraati17-Jul-06 20:20 
AnswerRe: VC++ Documentation (in advance) Pin
Ștefan-Mihai MOGA18-Jul-06 0:46
professionalȘtefan-Mihai MOGA18-Jul-06 0:46 
GeneralRe: VC++ Documentation (in advance) Pin
MozhdehQeraati18-Jul-06 18:58
MozhdehQeraati18-Jul-06 18:58 
GeneralRe: VC++ Documentation (in advance) Pin
Ștefan-Mihai MOGA18-Jul-06 20:06
professionalȘtefan-Mihai MOGA18-Jul-06 20:06 
QuestionVisual C++ 6.0 Pin
we3Guy17-Jul-06 20:09
we3Guy17-Jul-06 20:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.