home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / srcos2 / vstartup.cpp < prev    next >
C/C++ Source or Header  |  1999-03-03  |  604b  |  19 lines

  1. #include <v/vos2.h>             // for OS/2 stuff
  2. #include <v/vapp.h>             // my header file
  3. #include <v/vwindow.h>          // Win header
  4. #include <v/vfont.h>            // for font stuff
  5.  
  6. int AppMain(int, char**);
  7. int CMain(int argc, char** argv);
  8. void vRegisterAppMain( int (*)(int, char**) );
  9.  
  10. //======================>>> Main <<<======================================
  11.   int main(int argc, char** argv)
  12.   {
  13.     // pass the address of your AppMain to the V library.
  14.     vRegisterAppMain(AppMain);
  15.  
  16.     // call CMain as in the static library.
  17.     return CMain(argc, argv);
  18.   }
  19.