Click here to Skip to main content
16,004,991 members
Home / Discussions / COM
   

COM

 
QuestionBug in IStream::Write()? Pin
Mainul27-Feb-03 5:58
Mainul27-Feb-03 5:58 
AnswerRe: Bug in IStream::Write()? Pin
AlexO27-Feb-03 6:01
AlexO27-Feb-03 6:01 
QuestionHow to attach C++ class to COM object? Pin
Pavel Krupets26-Feb-03 23:47
Pavel Krupets26-Feb-03 23:47 
AnswerRe: How to attach C++ class to COM object? Pin
AlexO27-Feb-03 2:04
AlexO27-Feb-03 2:04 
GeneralRe: How to attach C++ class to COM object? Pin
Pavel Krupets27-Feb-03 3:35
Pavel Krupets27-Feb-03 3:35 
GeneralRe: How to attach C++ class to COM object? Pin
AlexO27-Feb-03 5:57
AlexO27-Feb-03 5:57 
GeneralRe: How to attach C++ class to COM object? Pin
Pavel Krupets27-Feb-03 6:29
Pavel Krupets27-Feb-03 6:29 
GeneralSolved!!! Pin
Pavel Krupets27-Feb-03 20:58
Pavel Krupets27-Feb-03 20:58 
Hello!

In my case it can be solved like this:

class CDataProvider : public IDataProvider
{
CDataProvider(CDataSource* pSource);
...
};

void CDataSource::DoDataExchange(IServer* pServer)
{
CComPtr<idataprovider> pDP;

pDP.Attach(new CDataProvider(this));

pServer->DoDataExchange(pDP);

// pDP will be destroyed here...
}

This will work even if pServer is in another process.

With regards,
Pavel Krupets
GeneralHGLOBAL -> SAFEARRAY Conversion Pin
Jonathan de Halleux26-Feb-03 22:26
Jonathan de Halleux26-Feb-03 22:26 
GeneralRe: HGLOBAL -> SAFEARRAY Conversion Pin
AlexO27-Feb-03 5:57
AlexO27-Feb-03 5:57 
QuestionHow to get selected element ?(MSHTML) Pin
jajamal26-Feb-03 21:56
jajamal26-Feb-03 21:56 
AnswerRe: How to get selected element ?(MSHTML) Pin
Neville Franks27-Feb-03 10:25
Neville Franks27-Feb-03 10:25 
GeneralRe: How to get selected element ?(MSHTML) Pin
jajamal27-Feb-03 17:37
jajamal27-Feb-03 17:37 
GeneralRe: How to get selected element ?(MSHTML) Pin
Stephane Rodriguez.28-Feb-03 0:54
Stephane Rodriguez.28-Feb-03 0:54 
GeneralRe: How to get selected element ?(MSHTML) Pin
jajamal28-Feb-03 3:39
jajamal28-Feb-03 3:39 
Generala problem of a ASP component creating process Pin
programmesky25-Feb-03 14:28
programmesky25-Feb-03 14:28 
GeneralRe: a problem of a ASP component creating process Pin
geo_m26-Feb-03 0:13
geo_m26-Feb-03 0:13 
GeneralRe: a problem of a ASP component creating process Pin
programmesky26-Feb-03 13:33
programmesky26-Feb-03 13:33 
GeneralWebBrowser Printing Pin
MoMad24-Feb-03 9:06
MoMad24-Feb-03 9:06 
GeneralRe: WebBrowser Printing Pin
MoMad24-Feb-03 12:11
MoMad24-Feb-03 12:11 
GeneralRe: WebBrowser Printing Pin
Brian Shifrin4-Mar-03 10:30
Brian Shifrin4-Mar-03 10:30 
GeneralRe: WebBrowser Printing Pin
MoMad5-Mar-03 8:36
MoMad5-Mar-03 8:36 
GeneralPointer identities Pin
Jörgen Sigvardsson24-Feb-03 4:58
Jörgen Sigvardsson24-Feb-03 4:58 
GeneralRe: Pointer identities Pin
geo_m25-Feb-03 23:17
geo_m25-Feb-03 23:17 
GeneralUsing the vTable of an ActiveX DLL with Known Interface and Unknown GUID Pin
RichB21-Feb-03 1:45
RichB21-Feb-03 1:45 

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.