Click here to Skip to main content
15,914,500 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralToo much connections and ATL Server Pin
Federico Milano29-Sep-04 8:20
Federico Milano29-Sep-04 8:20 
QuestionFriend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem28-Sep-04 9:26
Tholkiem28-Sep-04 9:26 
AnswerRe: Friend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem29-Sep-04 13:11
Tholkiem29-Sep-04 13:11 
GeneralPLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
SenPy28-Sep-04 7:19
SenPy28-Sep-04 7:19 
GeneralRe: PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
User 21559730-Sep-04 0:52
User 21559730-Sep-04 0:52 
Generalcatching events Pin
dudic28-Sep-04 5:49
dudic28-Sep-04 5:49 
GeneralRe: catching events Pin
Lim Bio Liong16-Oct-04 23:15
Lim Bio Liong16-Oct-04 23:15 
GeneralRe: catching events Pin
ThatsAlok29-Oct-04 21:06
ThatsAlok29-Oct-04 21:06 
dudic wrote:
I create ATL component with a number of methods. Some of them run perform long operations, and I need send to client application status of this. How do I have to add event to my ATL and listen it in a client application ?

yeah Buddy,
you have to implement IConnectionPoint Interface in you class to raise event.

Follow these step->
1.add a simpleATL object using Insert|newATlobject

chose Simple Object and press NEXT
you find the Property Sheet there
#1 property sheet for name
Give the name to you object say ObjectEvent.
#2 Attribute
Check the boc for IConnectionPoint interface.

then press ok.

you will see two interface for your class
interface ObjectEvent
dispinterface _IObjectEvent


add method in _IObjectEvent thorough class wizard.
like
void MyEvent();

and implement this Connection point in the iObjectEvnt Interface.

you can get option by right clicking on class of interface.

and for notifying other user about event
you got the Event in you Interface class like this
FIRE_MyEvent()
and by calling this function you can fire event that can be handle by clientapplication.



dudic wrote:
listen it in a client application

sorry i don't have any knowledge about how to handle event in VC++ based application ,because i used to test application with VB.

i hope any good programmer will help you in this matter





-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
QuestionActiveX Controls MFC or ATL? Pin
Andy H28-Sep-04 3:51
Andy H28-Sep-04 3:51 
AnswerRe: ActiveX Controls MFC or ATL? Pin
Kevin McFarlane29-Sep-04 2:13
Kevin McFarlane29-Sep-04 2:13 
GeneralPLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy27-Sep-04 13:43
SenPy27-Sep-04 13:43 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
Michael Dunn27-Sep-04 19:28
sitebuilderMichael Dunn27-Sep-04 19:28 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy28-Sep-04 7:21
SenPy28-Sep-04 7:21 
GeneralGet Object corresponding interface Pin
Tholkiem27-Sep-04 12:10
Tholkiem27-Sep-04 12:10 
Generalvalid CLSID Pin
Monty226-Sep-04 1:45
Monty226-Sep-04 1:45 
GeneralRe: valid CLSID Pin
Michael Dunn26-Sep-04 7:22
sitebuilderMichael Dunn26-Sep-04 7:22 
GeneralOportunidade de trabalho Pin
SolangeGomes25-Sep-04 9:39
sussSolangeGomes25-Sep-04 9:39 
GeneralRe: Oportunidade de trabalho Pin
Jörgen Sigvardsson25-Sep-04 11:50
Jörgen Sigvardsson25-Sep-04 11:50 
Generalusing MFC from c++/cli Pin
aaa_avraham25-Sep-04 9:16
aaa_avraham25-Sep-04 9:16 
GeneralLogon screen for Internet caf billing app Pin
prof.hell25-Sep-04 6:16
prof.hell25-Sep-04 6:16 
GeneralRe: Logon screen for Internet caf billing app Pin
Tomos28-Sep-04 15:53
Tomos28-Sep-04 15:53 
GeneralLearning ATL. Pin
Zero_One_ADO24-Sep-04 21:15
Zero_One_ADO24-Sep-04 21:15 
GeneralRe: Learning ATL. Pin
User 21559728-Sep-04 4:46
User 21559728-Sep-04 4:46 
GeneralOportunidade de trabalho Pin
luciramos24-Sep-04 10:33
luciramos24-Sep-04 10:33 
GeneralWeb services and events Pin
De Nardis Andrea24-Sep-04 3:29
De Nardis Andrea24-Sep-04 3:29 

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.