Click here to Skip to main content
15,893,588 members
Home / Discussions / COM
   

COM

 
QuestionHow to correctly use CoInitialize? Pin
Waldermort22-Feb-06 3:34
Waldermort22-Feb-06 3:34 
AnswerRe: How to correctly use CoInitialize? Pin
Milton Karimbekallil22-Feb-06 5:42
Milton Karimbekallil22-Feb-06 5:42 
GeneralRe: How to correctly use CoInitialize? Pin
Waldermort22-Feb-06 15:19
Waldermort22-Feb-06 15:19 
GeneralRe: How to correctly use CoInitialize? Pin
User 21559722-Feb-06 21:51
User 21559722-Feb-06 21:51 
GeneralRe: How to correctly use CoInitialize? Pin
Rory Solley22-Feb-06 21:58
Rory Solley22-Feb-06 21:58 
GeneralRe: How to correctly use CoInitialize? Pin
Waldermort23-Feb-06 1:37
Waldermort23-Feb-06 1:37 
GeneralRe: How to correctly use CoInitialize? Pin
Waldermort23-Feb-06 1:41
Waldermort23-Feb-06 1:41 
QuestionPassing interface as parameters of functions Pin
nripun21-Feb-06 23:51
nripun21-Feb-06 23:51 
What are the rules that must be followed while passing interface pointers as parameters of a function?
For example ..
I have declared
<br />
 ICaptureGraphBuilder *pBuilder;<br />
 IGraphBuilder *pGraph;<br />

They both point to NULL initially.
Can i send the above interface pointers as function parametres where they will be created using CoCreateInstance.
I tried to call the following function.
<br />
BuildGraph(pBuilder,pGraph);<br />

whose implementation is as follows
<br />
void BuildGraph(ICaptureBuilder *pCapBuilder, IGraphBuilder *pGraphBuilder){<br />
// Create the Filter Graph Manager.<br />
CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC,<br />
    IID_IGraphBuilder, (void **)&pGraphBuilder);<br />
<br />
// Create the Capture Graph Builder.<br />
CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC, <br />
    IID_ICaptureGraphBuilder2, (void **)&pCapBuilder);<br />
}<br />

Now with the above function call i create the filter graph manager and capture graph builder.
But the pBuilder and the pGraph in the calling function point to NULL even though the pGraphBuilder and pCapBuilder doenst not point to NULL anymore.
How can i solve this problem?
AnswerRe: Passing interface as parameters of functions Pin
Malli_12322-Feb-06 0:03
Malli_12322-Feb-06 0:03 
GeneralRe: Passing interface as parameters of functions Pin
nripun22-Feb-06 1:02
nripun22-Feb-06 1:02 
Questionhow to get the selected files name during Drag&Drop's mouse moving process Pin
welli21-Feb-06 21:28
welli21-Feb-06 21:28 
QuestionIE Toolbar (Toolband) Pin
vaughandaly21-Feb-06 20:49
vaughandaly21-Feb-06 20:49 
QuestionIDispatch and bookmarks in word Pin
lparsonson21-Feb-06 4:37
lparsonson21-Feb-06 4:37 
QuestionConnecting to a running IE COM instances. Pin
TClarke21-Feb-06 3:42
TClarke21-Feb-06 3:42 
QuestionAccess violation in ADODB::Connection Pin
Dyrl20-Feb-06 7:13
Dyrl20-Feb-06 7:13 
AnswerRe: Access violation in ADODB::Connection Pin
lparsonson21-Feb-06 4:35
lparsonson21-Feb-06 4:35 
GeneralRe: Access violation in ADODB::Connection Pin
Dyrl21-Feb-06 8:48
Dyrl21-Feb-06 8:48 
GeneralRe: Access violation in ADODB::Connection Pin
lparsonson21-Feb-06 22:39
lparsonson21-Feb-06 22:39 
QuestionAcitveX component, "off form", like the timer Pin
david_reynolds19-Feb-06 14:37
david_reynolds19-Feb-06 14:37 
Questionhow to load xml schema from resource? Pin
dolph_loe19-Feb-06 10:32
dolph_loe19-Feb-06 10:32 
Questionocx replace Pin
mahmoodi18-Feb-06 20:29
mahmoodi18-Feb-06 20:29 
QuestionBindToStorage HRESULT fails while using IPropertyBag2 Pin
nripun18-Feb-06 3:48
nripun18-Feb-06 3:48 
AnswerRe: BindToStorage HRESULT fails while using IPropertyBag2 Pin
mbue18-Feb-06 21:18
mbue18-Feb-06 21:18 
QuestionEvent Notification using Windows MAnagement Instrumentation Pin
abhiramsss17-Feb-06 1:14
abhiramsss17-Feb-06 1:14 
AnswerRe: Event Notification using Windows MAnagement Instrumentation Pin
oshah20-Feb-06 3:11
oshah20-Feb-06 3:11 

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.