Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reference Counting problem Pin
Anonymous8-Aug-02 0:40
Anonymous8-Aug-02 0:40 
GeneralRe: Reference Counting problem Pin
Paul M Watt9-Aug-02 8:55
mentorPaul M Watt9-Aug-02 8:55 
GeneralDll Registration Pin
abhinarulkar7-Aug-02 20:09
abhinarulkar7-Aug-02 20:09 
GeneralRe: Dll Registration Pin
Paul M Watt7-Aug-02 21:04
mentorPaul M Watt7-Aug-02 21:04 
Questionhow can i get current PC's ip? Pin
zecodela7-Aug-02 19:56
zecodela7-Aug-02 19:56 
AnswerRe: how can i get current PC's ip? Pin
Dudi Avramov7-Aug-02 21:07
Dudi Avramov7-Aug-02 21:07 
Generaladding named item to script engine Pin
Anonymous7-Aug-02 19:38
Anonymous7-Aug-02 19:38 
GeneralRe: adding named item to script engine Pin
Stuart Dootson7-Aug-02 19:56
professionalStuart Dootson7-Aug-02 19:56 
The second level is accessible via the first levels IDispatch interface - i.e. if you have a Documents property, you could use Application.Documents in script. The script engine uses your IActiveScriptSite interface to get Application, then calls into Application to get Documents.

As for events...I believe the following should work (I'm assuming VBScript and an event called DoSomething)
Dim event_raiser
Sub event_raiser_DoSomething
some code
End Sub

Set event_raiser = Application.Documents
some more code, which causes DoSomething to be raised


I think you can handle events from any object you can reference like that. I'm not sure how you hook up events in JScript, but I guess the same is true.
<after looking @ MSDN>
It appears you can use a function of the form object_variable_name::event_name (which is like the VB example above) or something like object.event = function pointer, which I've never used, but sounds like it doesn't use
IConnectionPoint et. al. I'm not sure - does anyone know for sure?<br />
<code></after looking @ MSDN>


Stuart Dootson

'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
GeneralADO connection String Pin
unknown soldier7-Aug-02 19:33
unknown soldier7-Aug-02 19:33 
GeneralRe: ADO connection String Pin
Michael P Butler7-Aug-02 22:01
Michael P Butler7-Aug-02 22:01 
GeneralWindows Fonts problem Pin
Shamoon7-Aug-02 18:34
Shamoon7-Aug-02 18:34 
GeneralBitMapInfoHeader question. Pin
nss7-Aug-02 18:34
nss7-Aug-02 18:34 
GeneralRe: BitMapInfoHeader question. Pin
Chris Losinger7-Aug-02 18:39
professionalChris Losinger7-Aug-02 18:39 
Generaldynamic popup menu Pin
bryce7-Aug-02 18:32
bryce7-Aug-02 18:32 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 18:45
professionalChris Losinger7-Aug-02 18:45 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 18:49
bryce7-Aug-02 18:49 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 18:56
professionalChris Losinger7-Aug-02 18:56 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 19:00
bryce7-Aug-02 19:00 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 19:03
professionalChris Losinger7-Aug-02 19:03 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:29
bryce7-Aug-02 21:29 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 21:31
professionalChris Losinger7-Aug-02 21:31 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:33
bryce7-Aug-02 21:33 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 21:35
professionalChris Losinger7-Aug-02 21:35 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:37
bryce7-Aug-02 21:37 
GeneralRe: dynamic popup menu Pin
Bill S7-Aug-02 19:28
professionalBill S7-Aug-02 19:28 

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.