Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new to C++ and COM.

I need to implement a client application in C(lab windows CVI), server is a c++ COM object.

steps followed by me
> accessed the registered COM object with Labwindows CVI active x controller template, output was a c file which is an implementation of the class names in COM (interfaces).

I can use the majority of the functions directly from the generated, but I need to implement some event functions, like message box events, and then use them.

I have seen one method of accessing in C++ client sample which implements Queryinterface function, takes the IID_Unknown as input and returns interface pointer(inhereted static_castof the required class, uses static_cast for that) as output.

When I try to follow up the same in c, I am lost with the inheritance concept.

In short I need to send IID Unknown to the Queryinterface function and should get the interface pointer of message box type or other class type ...

Sorry for the long mail,Please guide me

Thanks in advance:thumbsup:,
Satish
Posted
Updated 3-Nov-10 23:05pm
v2
Comments
Dalek Dave 4-Nov-10 5:05am    
Edited for Grammar, Syntax and Readability.

1 solution

A good Article on COM and C.., Go through this this may helps you

http://www.codeproject.com/KB/COM/com_in_c1.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900