Click here to Skip to main content
15,905,875 members
Home / Discussions / COM
   

COM

 
QuestionAttachment problem outlook express Pin
HarishDixit16-May-06 20:27
HarishDixit16-May-06 20:27 
QuestionA Com compile error! Pin
hdj831116-May-06 16:19
hdj831116-May-06 16:19 
AnswerRe: A Com compile error! Pin
khan++16-May-06 19:08
khan++16-May-06 19:08 
AnswerRe: A Com compile error! Pin
Laxman Auti17-May-06 3:22
Laxman Auti17-May-06 3:22 
GeneralRe: A Com compile error! Pin
hdj831117-May-06 15:00
hdj831117-May-06 15:00 
AnswerRe: A Com compile error! Pin
Laxman Auti17-May-06 18:06
Laxman Auti17-May-06 18:06 
QuestionRegister dll com component Pin
ass3aad15-May-06 6:02
ass3aad15-May-06 6:02 
AnswerRe: Register dll com component Pin
Roger Stoltz15-May-06 6:25
Roger Stoltz15-May-06 6:25 
1. Load the dll with ::LoadLibrary()
2. Get the address of the library's exported function DllRegisterServer with ::GetProcAddress()
3. Call the library's DllRegisterServer()
4. Unload the library with ::FreeLibrary()

Like this, pasted from MSDN:
typedef HRESULT (STDAPICALLTYPE *CTLREGPROC)() ; // Requires stdole.h
HMODULE hModule = ::LoadLibrary(m_strPathName) ;
CTLREGPROC DLLRegisterServer =
      (CTLREGPROC)::GetProcAddress(hModule,"DllRegisterServer" ) ;
DLLRegisterServer() ;
::FreeLibrary(hModule) ;

Hope this helps
--
Roger


It's supposed to be hard, otherwise anybody could do it!

Regarding CodeProject: "resistance is pointless; you will be assimilated"

GeneralRe: Register dll com component Pin
ass3aad15-May-06 6:35
ass3aad15-May-06 6:35 
GeneralRe: Register dll com component Pin
Roger Stoltz15-May-06 11:30
Roger Stoltz15-May-06 11:30 
AnswerRe: Register dll com component Pin
Ganesh_T17-May-06 3:27
Ganesh_T17-May-06 3:27 
QuestionInvoke olap cube wizard Pin
Tareif13-May-06 1:55
Tareif13-May-06 1:55 
QuestionAdd in for Visual studio 6.0 (msdev.exe) Pin
Ruhina11-May-06 19:11
Ruhina11-May-06 19:11 
AnswerRe: Add in for Visual studio 6.0 (msdev.exe) Pin
voorugonda prashanth14-May-06 18:14
voorugonda prashanth14-May-06 18:14 
GeneralRe: Add in for Visual studio 6.0 (msdev.exe) Pin
ThatsAlok15-May-06 0:54
ThatsAlok15-May-06 0:54 
AnswerRe: Add in for Visual studio 6.0 (msdev.exe) Pin
ThatsAlok15-May-06 0:53
ThatsAlok15-May-06 0:53 
QuestionCOM inside COM Pin
Aleemulhaq8-May-06 23:47
Aleemulhaq8-May-06 23:47 
AnswerRe: COM inside COM Pin
_AnsHUMAN_ 9-May-06 0:25
_AnsHUMAN_ 9-May-06 0:25 
AnswerRe: COM inside COM Pin
Roger Stoltz9-May-06 0:58
Roger Stoltz9-May-06 0:58 
GeneralRe: COM inside COM Pin
Aleemulhaq9-May-06 2:55
Aleemulhaq9-May-06 2:55 
GeneralRe: COM inside COM Pin
Roger Stoltz9-May-06 3:01
Roger Stoltz9-May-06 3:01 
Question"Access Denied " message in DCOM (Win XP SP2) Pin
QuickDeveloper8-May-06 21:05
QuickDeveloper8-May-06 21:05 
AnswerRe: "Access Denied " message in DCOM (Win XP SP2) Pin
Steve S9-May-06 22:16
Steve S9-May-06 22:16 
QuestionRe: "Access Denied " message in DCOM (Win XP SP2) Pin
Laxman Auti11-May-06 18:48
Laxman Auti11-May-06 18:48 
AnswerRe: "Access Denied " message in DCOM (Win XP SP2) Pin
Steve S15-May-06 1:17
Steve S15-May-06 1:17 

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.