Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A Simple Problem Pin
eli1502197922-Feb-05 3:46
eli1502197922-Feb-05 3:46 
GeneralActiveX control and Document/view architecture Pin
Anand for every one20-Feb-05 17:15
Anand for every one20-Feb-05 17:15 
GeneralVisual C++, mysql, from scratch Pin
Devanchya20-Feb-05 15:37
Devanchya20-Feb-05 15:37 
Generalregsvr32.exe Pin
includeh1020-Feb-05 15:16
includeh1020-Feb-05 15:16 
GeneralRe: regsvr32.exe Pin
Igor Vigdorchik20-Feb-05 15:30
Igor Vigdorchik20-Feb-05 15:30 
GeneralRe: regsvr32.exe Pin
includeh1020-Feb-05 15:55
includeh1020-Feb-05 15:55 
GeneralRe: regsvr32.exe Pin
Igor Vigdorchik20-Feb-05 16:38
Igor Vigdorchik20-Feb-05 16:38 
GeneralRe: regsvr32.exe Pin
ThatsAlok20-Feb-05 17:27
ThatsAlok20-Feb-05 17:27 
Use this little piece of code for manually regiter the COM

Actually working of RegSvr32 is like this

it load the Dll using LoadLibrary api and
them call DLLRegisterServer to register the server.
you can do that programatically like this
<code>typedef HRESULT (WINAPI *DLLREG)();</code>

HMODULE hLib;

hLib=<code>LoadLibrary</code>(YOU_COM_DLL_NAME);

if(!hLib)
{
MessageBox(NULL,"The File you Refering not found","Error",MB_OK);
return;
}

 //now get procedure address of  DllRegisterServer
DLLREG fnDllReg;

fnDllReg=(DLLREG)GetProcAddress("<code>DllRegisterServer</code>");

if(!fnDllReg)
{
MessageBox(NULL,"The Dll is Loaded Correctly but DllRegisterServer function
not found","ERROR",MB_OK);
return;
}

//till now we have got the Procedure address of The function
//call the function

if(SUCCEEDED(<code>fnDllReg</code>))
 MessageBox(NULL,"The Com DLL register Successfully","CONGRETS",MB_OK);
else
 MessageBox(NULL,"The Com DLL registerering fail","ERROR",MB_OK);


}



"I Think this Will Help"
[Vote One Here,.....]
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralRe: regsvr32.exe Pin
22491720-Feb-05 18:15
22491720-Feb-05 18:15 
GeneralRe: regsvr32.exe Pin
ThatsAlok20-Feb-05 18:40
ThatsAlok20-Feb-05 18:40 
GeneralRe: regsvr32.exe Pin
Blake Miller22-Feb-05 6:39
Blake Miller22-Feb-05 6:39 
GeneralRe: regsvr32.exe Pin
ThatsAlok22-Feb-05 17:14
ThatsAlok22-Feb-05 17:14 
GeneralDrawing into a dialog box Pin
$8820-Feb-05 11:03
$8820-Feb-05 11:03 
GeneralRe: Drawing into a dialog box Pin
Steve Mayfield20-Feb-05 13:21
Steve Mayfield20-Feb-05 13:21 
GeneralRe: Drawing into a dialog box Pin
eli1502197920-Feb-05 23:03
eli1502197920-Feb-05 23:03 
GeneralRe: Drawing into a dialog box Pin
JohnCz21-Feb-05 11:58
JohnCz21-Feb-05 11:58 
GeneralTab stop problems Pin
Bi0Mutati0n20-Feb-05 9:33
Bi0Mutati0n20-Feb-05 9:33 
GeneralRe: Tab stop problems Pin
Michael Dunn20-Feb-05 10:44
sitebuilderMichael Dunn20-Feb-05 10:44 
GeneralRe: Tab stop problems Pin
Bi0Mutati0n20-Feb-05 12:25
Bi0Mutati0n20-Feb-05 12:25 
QuestionCan we set a global hook in a COM object? Pin
nadzzz20-Feb-05 7:13
nadzzz20-Feb-05 7:13 
GeneralCreateProcess vs WinExec Pin
Dominik Reichl20-Feb-05 6:55
Dominik Reichl20-Feb-05 6:55 
GeneralRe: CreateProcess vs WinExec Pin
Neville Franks20-Feb-05 8:38
Neville Franks20-Feb-05 8:38 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl20-Feb-05 9:10
Dominik Reichl20-Feb-05 9:10 
GeneralRe: CreateProcess vs WinExec Pin
Neville Franks20-Feb-05 9:18
Neville Franks20-Feb-05 9:18 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl20-Feb-05 9:26
Dominik Reichl20-Feb-05 9:26 

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.