home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / API / SAMPLES / HELLO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-26  |  425 b   |  19 lines

  1. // include the library construction header file
  2. #include <pro_ext.h>
  3.  
  4. void hello(ParamBlk  *parm) // the function definition
  5.     {
  6.     _PutStr("\nHello, World!\n"); //print the message
  7.     }
  8.  
  9. // the FoxInfo structure registers the function
  10. FoxInfo myFoxInfo[] = {
  11.     {"HELLO",(FPFI) hello, 0, ""},
  12. };
  13.  
  14. // the FoxTable structure
  15. FoxTable _FoxTable = {
  16.     (FoxTable  *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
  17. };
  18.  
  19.