Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: VB calls a COM component


Message #1 by "Mike McCrossin" <mike8845@h...> on Mon, 30 Jul 2001 10:18:39 -0500
Dim objComObject as ComObject.MainClass
Set objComObject =3D new ComObject.MainClass

-----Original Message-----
From: Mike McCrossin [mailto:mike8845@h...]
Sent: Monday, July 30, 2001 12:00 PM
To: professional vb
Subject: [pro_vb] RE: VB calls a COM component


After it has been registeed, in the VB application what is the code that

calls the COM component?

that is all for now... mikeM



>From: "Yehuda Rosenblum" <Yehuda@I...>
>Reply-To: "professional vb" <pro_vb@p...>
>To: "professional vb" <pro_vb@p...>
>Subject: [pro_vb] RE: VB calls a COM component
>Date: Mon, 30 Jul 2001 11:36:36 -0400
>
>It has to be registered.  Once registered it is either referenced by
>going to projects -> references and referencing from there or by doing
>CreateObject("ComObject.mainclass").  Remembere that you must dim an
>object for the first method and then set it =3D new 
ComObject.mainclass.
>
>Yehuda
>
>-----Original Message-----
>From: Mike McCrossin [mailto:mike8845@h...]
>Sent: Monday, July 30, 2001 11:19 AM
>To: professional vb
>Subject: [pro_vb] VB calls a COM component
>
>
>Given a Visual Basic application how is a COM compoent called?
>
>that is all for now... mikeM


  Return to Index