C++ Event

Discussion in 'Programmer's Corner' started by Eric007, Oct 17, 2014.

  1. Eric007

    Thread Starter Senior Member

    Aug 5, 2011
    1,041
    33
    Hi again

    I deleted the previous post...

    Can anyone provide with an example, a link or whatever that shows how to raise an event in C++ Windows Form (NOT Console!) where the Event sender is a Class and the Event receiver is the Form.

    Pretty simple in VB.Net and C# but C++ Aaargg (C++/CLI)...

    Well maybe in my sleep I'll figure it out as I dream in codes these days...:D:p
     
    Last edited: Oct 18, 2014
  2. Eric007

    Thread Starter Senior Member

    Aug 5, 2011
    1,041
    33
    Looks like there's no C++ experts around here...

    Anyway it's ok! Will eventually figure this out as usual! but there's no more rush! busy with something else now.
     
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    That seems a little passive aggressive...

    Have you seen the MSDN article: How to: Use Events in C++/CLI?

    If that doesn't help, perhaps you need to offer some more details...
     
  4. Eric007

    Thread Starter Senior Member

    Aug 5, 2011
    1,041
    33
    Hahahah... I had to shake you guyz a little bit so I could get a reply and it worked!:D

    Yes, I've seen that article but did not really help because those are *Console* examples and I need *Windows Form* examples or steps as specified in the first post. Maybe I have to look at it in more depth as the principles are the same.

    If you want I can write a quick VB.Net code and upload it here so you can see what I am trying to achieve in C++. Basically all I'm trying to do is accessing the elements of the Form from an external file (Class) either by raising an event from the Class or by modifying the elements of the Form directly from a Class.

    Hope it's clear enough

    And thanks for your reply!
     
Loading...