Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question on CMFCToolBarComboBoxButton -- MDI program. Pin
SAMZCN26-Jun-10 18:47
SAMZCN26-Jun-10 18:47 
Questionhow to register dll or ocx file via c++ code Pin
b-rad31125-Jun-10 10:38
b-rad31125-Jun-10 10:38 
AnswerRe: how to register dll or ocx file via c++ code Pin
Aescleal25-Jun-10 10:45
Aescleal25-Jun-10 10:45 
GeneralRe: how to register dll or ocx file via c++ code Pin
b-rad31125-Jun-10 10:52
b-rad31125-Jun-10 10:52 
GeneralRe: how to register dll or ocx file via c++ code Pin
Aescleal25-Jun-10 10:58
Aescleal25-Jun-10 10:58 
GeneralRe: how to register dll or ocx file via c++ code Pin
«_Superman_»25-Jun-10 17:32
professional«_Superman_»25-Jun-10 17:32 
GeneralRe: how to register dll or ocx file via c++ code Pin
Stephen Hewitt27-Jun-10 17:48
Stephen Hewitt27-Jun-10 17:48 
GeneralRe: how to register dll or ocx file via c++ code Pin
Aescleal28-Jun-10 6:28
Aescleal28-Jun-10 6:28 
You're partly right as the original poster mentioned ocxs, mea culpa!

However you don't have to initialise COM to load up a DLL and call an exported function on it. You can (conceptually) easily register most COM DLLs by writing to the registry directly - if you know all the details of the objects you're registering (GUIDs of the CoClasses and IIDs of the CoInterfaces). Have a look in "Essential COM" by Don Box for a script based DllRegisterServer that doesn't require COM to be initialised.

ActiveX controls may be an exception but they're out of my experience. If that's the case, as they implement OLE interfaces, you need OleInitialise() before registering and NOT CoInitialize().

Cheers,

Ash
GeneralRe: how to register dll or ocx file via c++ code Pin
Stephen Hewitt28-Jun-10 15:14
Stephen Hewitt28-Jun-10 15:14 
GeneralRe: how to register dll or ocx file via c++ code Pin
Aescleal29-Jun-10 6:56
Aescleal29-Jun-10 6:56 
AnswerRe: how to register dll or ocx file via c++ code Pin
Rajesh R Subramanian25-Jun-10 10:46
professionalRajesh R Subramanian25-Jun-10 10:46 
GeneralRe: how to register dll or ocx file via c++ code Pin
b-rad31125-Jun-10 10:59
b-rad31125-Jun-10 10:59 
GeneralRe: how to register dll or ocx file via c++ code Pin
«_Superman_»25-Jun-10 17:34
professional«_Superman_»25-Jun-10 17:34 
AnswerRe: how to register dll or ocx file via c++ code Pin
KingsGambit25-Jun-10 19:45
KingsGambit25-Jun-10 19:45 
AnswerRe: how to register dll or ocx file via c++ code Pin
Shivanand Gupta26-Jun-10 2:47
Shivanand Gupta26-Jun-10 2:47 
QuestionGeneral MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 6:30
ForNow25-Jun-10 6:30 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Aescleal25-Jun-10 6:49
Aescleal25-Jun-10 6:49 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Niklas L25-Jun-10 6:50
Niklas L25-Jun-10 6:50 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 6:56
ForNow25-Jun-10 6:56 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 9:15
professionalRajesh R Subramanian25-Jun-10 9:15 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 10:39
ForNow25-Jun-10 10:39 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig25-Jun-10 16:19
Tim Craig25-Jun-10 16:19 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 21:06
professionalRajesh R Subramanian25-Jun-10 21:06 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 16:59
ForNow26-Jun-10 16:59 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig26-Jun-10 17:55
Tim Craig26-Jun-10 17:55 

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.