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

C / C++ / MFC

 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama17-Jul-06 21:04
Andy Rama17-Jul-06 21:04 
AnswerRe: Unregister same registering with 'regsvr32.exe' ? Pin
Anilkumar K V17-Jul-06 23:37
Anilkumar K V17-Jul-06 23:37 
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 
ThatsAlok wrote:
then using LoadLibrary function load that dll in your Process memory space and using GetProcAddess Function get DllUnregister pointer and call that function!

I use code as follow,
HCRET lpfnDllRegisterServer = NULL;
	HINSTANCE  hDLL = LoadLibrary("SimpleExt.dll");
	if (hDLL != NULL)
	{
		lpfnDllRegisterServer = (HCRET)GetProcAddress(hDLL, "DllUnregister ");

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


But it is showing MessageBox("ERR"). (in BOLD)
What is the problem?

Thanks & Best Regards,
Aniket Salunkhe
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 
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 

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.