Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProgrammatically Run a Remote Process Pin
Chad Koehler14-Jun-02 9:29
Chad Koehler14-Jun-02 9:29 
GeneralRe: Programmatically Run a Remote Process Pin
Jason Henderson14-Jun-02 16:44
Jason Henderson14-Jun-02 16:44 
GeneralIs there a function for replacing substrings inside a string with a new string? (non-MFC) Pin
redeemer14-Jun-02 8:42
redeemer14-Jun-02 8:42 
GeneralRe: Is there a function for replacing substrings inside a string with a new string? Pin
Jason Henderson14-Jun-02 8:42
Jason Henderson14-Jun-02 8:42 
GeneralRe: Is there a function for replacing substrings inside a string with a new string? Pin
Chris Losinger14-Jun-02 8:50
professionalChris Losinger14-Jun-02 8:50 
GeneralGetting the location of a specific systray icon Pin
David Wulff14-Jun-02 8:40
David Wulff14-Jun-02 8:40 
GeneralAutomating VB COM Dll from ATL C++ Pin
14-Jun-02 8:28
suss14-Jun-02 8:28 
GeneralRe: Automating VB COM Dll from ATL C++ Pin
Paul M Watt14-Jun-02 17:09
mentorPaul M Watt14-Jun-02 17:09 
The easist way is to use the #import statement for the VB ocx in your cpp file. THsi will create a set of wrappers for the dll that you can use to access all of the functions. The wrappers also make the syntax that is used in VB available which simplifies the use of COM.

What I mean is that you will be able to call this:

long count = pList->count;

Instead of this:

HRESULT hr = pList->get_count(&count);
if (FAILED(hr))
{
_com_raise_error(hr);
}

the import statement will wrap that for you.


The other possiblity is to use the #inport statement in your IDL file, and the headers for the typelibrary will be generated by MIDL for you and you can use the interfaces the regular COM way if you prefer that method.



Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Automating VB COM Dll from ATL C++ Pin
17-Jun-02 8:38
suss17-Jun-02 8:38 
Generalmsword automation Pin
14-Jun-02 8:27
suss14-Jun-02 8:27 
GeneralScrolling Problem Pin
14-Jun-02 8:19
suss14-Jun-02 8:19 
GeneralRe: Scrolling Problem Pin
lucy14-Jun-02 8:57
lucy14-Jun-02 8:57 
GeneralRe: Scrolling Problem Pin
14-Jun-02 9:52
suss14-Jun-02 9:52 
GeneralRe: Scrolling Problem Pin
14-Jun-02 10:44
suss14-Jun-02 10:44 
Questionhooking hardware interrupts? Pin
Xerces14-Jun-02 7:50
Xerces14-Jun-02 7:50 
AnswerRe: hooking hardware interrupts? Pin
JohnnyG14-Jun-02 8:41
JohnnyG14-Jun-02 8:41 
GeneralRe: hooking hardware interrupts? Pin
Xerces14-Jun-02 8:42
Xerces14-Jun-02 8:42 
GeneralRe: hooking hardware interrupts? Pin
JohnnyG14-Jun-02 9:30
JohnnyG14-Jun-02 9:30 
QuestionOCR? Pin
Rene De La Garza14-Jun-02 7:44
Rene De La Garza14-Jun-02 7:44 
GeneralAdding a column in Windows Explorer Pin
gordingin14-Jun-02 5:37
gordingin14-Jun-02 5:37 
GeneralRe: Adding a column in Windows Explorer Pin
Corto Maltese14-Jun-02 7:42
Corto Maltese14-Jun-02 7:42 
GeneralRun Time Caption Change Pin
Knowledge Seeker14-Jun-02 4:56
Knowledge Seeker14-Jun-02 4:56 
GeneralRe: Run Time Caption Change Pin
Chris Losinger14-Jun-02 5:06
professionalChris Losinger14-Jun-02 5:06 
GeneralRe: Run Time Caption Change Pin
Renjith Ramachandran14-Jun-02 6:45
Renjith Ramachandran14-Jun-02 6:45 
QuestionHow can I associate a procedure to already registered class "Edit" in SDK. Pin
S.Maharajan14-Jun-02 4:59
S.Maharajan14-Jun-02 4:59 

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.