Advertisement
Guest User

Microsoft Visual C++ 'Event' Extension

a guest
Oct 19th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class EventSource {
  4.  
  5.   public: __event void MouseMoved(int x, int y);
  6.  
  7.   public: void Fire() {
  8.     MouseMoved(12, 34);
  9.   }
  10.  
  11. };
  12.  
  13. int main() {
  14.   EventSource s;
  15.   s.Fire();
  16.  
  17.   return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement