Click here to Skip to main content
15,905,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help - individual chars in a CString Pin
...---...15-Oct-04 6:23
...---...15-Oct-04 6:23 
GeneralRe: Please help - individual chars in a CString Pin
David Crow15-Oct-04 6:37
David Crow15-Oct-04 6:37 
GeneralRe: Please help - individual chars in a CString Pin
...---...15-Oct-04 9:30
...---...15-Oct-04 9:30 
GeneralRe: Please help - individual chars in a CString Pin
David Crow15-Oct-04 9:37
David Crow15-Oct-04 9:37 
GeneralRe: Please help - individual chars in a CString Pin
BlackDice15-Oct-04 8:46
BlackDice15-Oct-04 8:46 
GeneralReceiving Messsage from ActiveX Control Pin
Manoj Singh K.15-Oct-04 4:30
Manoj Singh K.15-Oct-04 4:30 
GeneralCOM: Get Interface from one process to another Pin
peterchen15-Oct-04 3:43
peterchen15-Oct-04 3:43 
GeneralRe: COM: Get Interface from one process to another Pin
mtzlplyk15-Oct-04 5:34
mtzlplyk15-Oct-04 5:34 
I do it like this ...

//<br />
// Server side<br />
//<br />
ServerFunc(LPDISPATCH *p)<br />
{<br />
CMyClass object; // derived from CCmdTarget<br />
LPDISPATCH lpDisp = object.GetIdispatch(TRUE); // get objects dispatch interface and increments ref. count<br />
*p = lpDisp;<br />
}<br />
<br />
//<br />
// client side - create a new class from the servers TypeLibrary, it should create<br />
// "interfaces" to automation objects, remember to include the generated header<br />
//<br />
<br />
#include "server.h" // generated when class wizard create new classes from server.tlb<br />
void foo()<br />
{<br />
    LPDISPATCH *lpDisp<br />
    ServerFunc( &lpDisp );<br />
    IMyClass *pMyClass = new IMyClass(lpDisp);<br />
}


It works for me Smile | :)
GeneralRe: COM: Get Interface from one process to another Pin
peterchen15-Oct-04 6:02
peterchen15-Oct-04 6:02 
QuestionWhere is wrong when I try to get the recordset? Pin
chocm15-Oct-04 3:42
chocm15-Oct-04 3:42 
AnswerRe: Where is wrong when I try to get the recordset? Pin
David Crow15-Oct-04 4:39
David Crow15-Oct-04 4:39 
AnswerRe: Where is wrong when I try to get the recordset? Pin
Andrzej Markowski15-Oct-04 18:33
Andrzej Markowski15-Oct-04 18:33 
GeneralProblem Parsing Pictures from Rich-Text (RTF) File Pin
Popeye Doyle Murray15-Oct-04 2:48
Popeye Doyle Murray15-Oct-04 2:48 
GeneralRe: Problem Parsing Pictures from Rich-Text (RTF) File Pin
Henry miller15-Oct-04 7:01
Henry miller15-Oct-04 7:01 
GeneralRe: Problem Parsing Pictures from Rich-Text (RTF) File Pin
Joel Lucsy15-Oct-04 12:01
Joel Lucsy15-Oct-04 12:01 
GeneralParse Filenames for extracting Tags Pin
Summi15-Oct-04 2:42
Summi15-Oct-04 2:42 
GeneralRe: Parse Filenames for extracting Tags Pin
David Crow15-Oct-04 4:42
David Crow15-Oct-04 4:42 
GeneralRe: Parse Filenames for extracting Tags Pin
Maximilien15-Oct-04 5:01
Maximilien15-Oct-04 5:01 
GeneralRe: Parse Filenames for extracting Tags Pin
David Crow15-Oct-04 5:46
David Crow15-Oct-04 5:46 
GeneralRe: Parse Filenames for extracting Tags Pin
Maximilien15-Oct-04 6:47
Maximilien15-Oct-04 6:47 
GeneralRe: Parse Filenames for extracting Tags Pin
Summi19-Oct-04 2:36
Summi19-Oct-04 2:36 
GeneralMultiple Dialogs Pin
sweep12315-Oct-04 2:10
sweep12315-Oct-04 2:10 
GeneralRe: Multiple Dialogs Pin
Maximilien15-Oct-04 2:44
Maximilien15-Oct-04 2:44 
GeneralToggel button with menu open Pin
verma-rahul15-Oct-04 2:05
verma-rahul15-Oct-04 2:05 
GeneralRe: Toggel button with menu open Pin
jan larsen15-Oct-04 2:09
jan larsen15-Oct-04 2:09 

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.