Click here to Skip to main content
15,891,529 members
Home / Discussions / COM
   

COM

 
GeneralNtier app Pin
StephenMcAllister18-Oct-04 7:53
StephenMcAllister18-Oct-04 7:53 
GeneralScript hosting applicatrion has problem Pin
Anonymous17-Oct-04 21:30
Anonymous17-Oct-04 21:30 
GeneralClass not registered Pin
Minh17-Oct-04 15:44
Minh17-Oct-04 15:44 
GeneralRe: Class not registered Pin
vikramlinux26-Oct-04 20:13
vikramlinux26-Oct-04 20:13 
GeneralDOS client/server (C++)... Pin
porac6917-Oct-04 5:56
porac6917-Oct-04 5:56 
QuestionHow to Create Events Pin
ThatsAlok16-Oct-04 3:55
ThatsAlok16-Oct-04 3:55 
Questionhow to invoke com event Pin
ThatsAlok15-Oct-04 3:52
ThatsAlok15-Oct-04 3:52 
AnswerRe: how to invoke com event Pin
Lim Bio Liong16-Oct-04 19:23
Lim Bio Liong16-Oct-04 19:23 
Hello Alok,

Your concerns are quite similar to thos of another Code Project member : Akshay (see other messages before this one).

First, make sure that when you define your COM object in ATL, you specify that your object is to support connection points.

Next, you define your event interface (which is an "outgoing" interface, not to be implemented by your COM Object but by your VB client app). Note that because your events are to be captured by a VB app, your event interface must be dual-interfaced (i.e. it must be derived from IDispatch).

Last, you must make your COM Object implement connection point. You can do this by right clicking your COM Object in the object pane and then selecting the "Implement Connection Point" menu item. You will be presented with a list of event interfaces to support (note that you simply support the event interface and you do not write the implementation of the event, this remains the job of your VB client app).

That's three simple steps but alot must go on in between them. Read up David S Platt's "The Essence of COM and ActiveX (A Programmers's Workbook)" for simple tutorials on this.

Best Regards,
Bio.

GeneralRe: how to invoke com event Pin
ThatsAlok17-Oct-04 18:19
ThatsAlok17-Oct-04 18:19 
GeneralODBC, SQL Server, "FOR XML" & Cursors error Pin
zoltanie14-Oct-04 6:04
zoltanie14-Oct-04 6:04 
Questionexe com server problem? Pin
G.Richard13-Oct-04 21:12
G.Richard13-Oct-04 21:12 
AnswerRe: exe com server problem? Pin
User 21559714-Oct-04 19:44
User 21559714-Oct-04 19:44 
GeneralRe: exe com server problem? Pin
G.Richard14-Oct-04 20:49
G.Richard14-Oct-04 20:49 
GeneralRe: exe com server problem? Pin
Lim Bio Liong15-Oct-04 1:52
Lim Bio Liong15-Oct-04 1:52 
AnswerRe: exe com server problem? Pin
darkbyte11-Nov-04 10:34
darkbyte11-Nov-04 10:34 
GeneralSaving message using MAPI Pin
Madmaximus13-Oct-04 7:02
Madmaximus13-Oct-04 7:02 
GeneralDecode HRESULT from URLDownloadToFile() (e.g.0x800C0005) Pin
Eugene Homyakov13-Oct-04 6:26
Eugene Homyakov13-Oct-04 6:26 
GeneralRe: Decode HRESULT from URLDownloadToFile() (e.g.0x800C0005) Pin
Eugene Homyakov13-Oct-04 6:32
Eugene Homyakov13-Oct-04 6:32 
GeneralRe: Decode HRESULT from URLDownloadToFile() (e.g.0x800C0005) Pin
geo_m14-Oct-04 1:35
geo_m14-Oct-04 1:35 
Generallooking for help related to IPicture Pin
summerbwn13-Oct-04 0:52
summerbwn13-Oct-04 0:52 
GeneralRe: looking for help related to IPicture Pin
geo_m14-Oct-04 1:30
geo_m14-Oct-04 1:30 
GeneralRe: looking for help related to IPicture Pin
ThatsAlok15-Oct-04 4:13
ThatsAlok15-Oct-04 4:13 
GeneralSMTP email id Pin
Deepak Kumar Singh12-Oct-04 21:16
Deepak Kumar Singh12-Oct-04 21:16 
Generalpassing a structure across DCOM Pin
Ravi Jadhav12-Oct-04 2:38
Ravi Jadhav12-Oct-04 2:38 
GeneralRe: passing a structure across DCOM Pin
Kurt Muellner12-Oct-04 21:43
Kurt Muellner12-Oct-04 21:43 

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.