Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection points

Status
Not open for further replies.

ramkumars

Programmer
Aug 2, 2001
31
IN
Hi,

I have a COM class which iplements connection points with some Fire_XXX methods. I have a different class (within the same project), say MyNonCOM class. I want to fire the event defined in the COM class from one of the methods in MyNonCOM. How can i do this. Some sample code will be highly helpfull.

Thanks in advance,
Ramkumar
 
At programming language level, theer is not difference between a COM class and NonCOM class. Pass a pointer or a reference yorConnectionPoint instance to your class, and fire any events simply by callint reference.firexxxevent().

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Can you give some sample code. It would be really helpfull as i am new to programming in VC
 
COM programming is usualy big amount of code, which I can not put there as a sample. If you would know COM API, or ActiveX API, my responce above would be enough. Else, you first should study them.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top