Click here to Skip to main content
15,900,258 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Generalstatic constant string Pin
VizOne12-Feb-03 2:24
VizOne12-Feb-03 2:24 
GeneralRe: static constant string Pin
VizOne13-Feb-03 8:33
VizOne13-Feb-03 8:33 
GeneralentryPoint of a PE file Pin
blacksun_damn4-Feb-03 19:44
blacksun_damn4-Feb-03 19:44 
GeneralConverting byte[] to System::Byte[] and vice versa Pin
Martin Haesemeyer2-Feb-03 7:45
Martin Haesemeyer2-Feb-03 7:45 
GeneralRe: Converting byte[] to System::Byte[] and vice versa Pin
Paul Selormey2-Feb-03 19:21
Paul Selormey2-Feb-03 19:21 
GeneralRe: Converting byte[] to System::Byte[] and vice versa Pin
Martin Haesemeyer3-Feb-03 4:33
Martin Haesemeyer3-Feb-03 4:33 
GeneralRe: Converting byte[] to System::Byte[] and vice versa Pin
Paul Selormey3-Feb-03 13:29
Paul Selormey3-Feb-03 13:29 
GeneralOptimizing Event Implementation in MC++ Pin
Paul Selormey30-Jan-03 14:59
Paul Selormey30-Jan-03 14:59 
Hello All,
What is the MC++ version of the "Optimizing Event Implementation"
described in the MSDN?

The C# version was implemented as:
-----------------------------------------------------------------
      // Defines a key for storing the delegate for the Click event
      // in the Events list.
      private static readonly object ClickEvent = new object();
      
      // Defines the Click event using the event property syntax.
      // The Events property stores all the event delegates of
      // a control as name/value pairs. 
      public event EventHandler Click 
      {
         // When a user attaches an event handler to the Click event 
         // ( Click += myHandler; ), the Add method 
         // adds the handler to the 
         // delegate for the Click event (keyed by ClickEvent 
         // in the Events list).
         add 
         {
            Events.AddHandler(ClickEvent, value);
         }
         // When a user removes an event handler from the Click event 
         // ( Click -= myHandler; ), the Remove method 
         // removes the handler from the 
         // delegate for the Click event (keyed by ClickEvent 
         // in the Events list).
         remove 
         {
            Events.RemoveHandler(ClickEvent, value);
         }
      }
      
      // Invokes delegates registered with the Click event.
      //
      protected virtual void OnClick(EventArgs e) 
      {
         // Retrieves the event delegate for the Click event
         // from the Events property (which stores
         // the control's event delegates). You must
         // cast the retrieved delegate to the type of your 
         // event delegate.
         EventHandler clickEventDelegate = (EventHandler)Events[ClickEvent];
         if (clickEventDelegate != null) {
            clickEventDelegate(this, e);
         }  
      }
-----------------------------------------------------------------------

Frankly, is there no MC++ programmer on the MSDN documentation team?

Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.
GeneralRe: Optimizing Event Implementation in MC++ Pin
Jeff J31-Jan-03 12:00
Jeff J31-Jan-03 12:00 
GeneralRe: Optimizing Event Implementation in MC++ Pin
Paul Selormey31-Jan-03 23:59
Paul Selormey31-Jan-03 23:59 
GeneralSerial Communication threw .NET C++ Pin
megadith28-Jan-03 3:50
megadith28-Jan-03 3:50 
QuestionHow to call the ::MessageBox ? Pin
roy_a24-Jan-03 23:13
roy_a24-Jan-03 23:13 
AnswerRe: How to call the ::MessageBox ? Pin
Jeff J25-Jan-03 10:29
Jeff J25-Jan-03 10:29 
GeneralManaged C++ to PDA Pin
pjm31323-Jan-03 6:30
pjm31323-Jan-03 6:30 
GeneralRe: Managed C++ to PDA Pin
Jeff J25-Jan-03 10:08
Jeff J25-Jan-03 10:08 
Generalvisual designing of the forms Pin
suka23-Jan-03 5:19
suka23-Jan-03 5:19 
GeneralRe: visual designing of the forms Pin
Jeff J25-Jan-03 9:55
Jeff J25-Jan-03 9:55 
GeneralCrystal Report Pin
Exceter20-Jan-03 18:58
Exceter20-Jan-03 18:58 
GeneralCursors in .NET Assembly DLL Pin
Paul Selormey19-Jan-03 13:19
Paul Selormey19-Jan-03 13:19 
Generalarm animation Pin
Anonymous17-Jan-03 14:58
Anonymous17-Jan-03 14:58 
GeneralNo output from << operator in console app Pin
malmi17-Jan-03 10:51
malmi17-Jan-03 10:51 
GeneralRe: No output from << operator in console app - code correction Pin
malmi17-Jan-03 11:08
malmi17-Jan-03 11:08 
GeneralRe: No output from << operator in console app - code correction Pin
Jeff J18-Jan-03 0:17
Jeff J18-Jan-03 0:17 
GeneralRe: No output from << operator in console app - code correction Pin
malmi18-Jan-03 6:02
malmi18-Jan-03 6:02 
GeneralStupid question about VC6 to VC.Net migration reason Pin
Member 13901616-Jan-03 0:23
Member 13901616-Jan-03 0:23 

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.