home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnat / examples / cpp_main.C < prev    next >
C/C++ Source or Header  |  2000-07-19  |  224b  |  22 lines

  1. #include "ex7.h"
  2.  
  3. extern "C" {
  4.   void adainit (void); 
  5.   void adafinal (void);
  6.   void method1 (A *t);
  7. }
  8.  
  9. void method1 (A *t)
  10. {
  11.   t->method1 ();
  12. }
  13.  
  14. int main ()
  15. {
  16.   A obj;
  17.  
  18.   adainit ();
  19.   obj.method2 (3030);
  20.   adafinal ();
  21. }
  22.