home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / advos2 / ch19 / testcdll.c < prev   
Encoding:
C/C++ Source or Header  |  1988-12-12  |  432 b   |  28 lines

  1. /*
  2.     TESTCDLL.C
  3.  
  4.     A simple test program for the CDLL.DLL dynlink library.
  5.  
  6.     Compile with:  C> cl testcdll.c /link cdll.lib
  7.  
  8.     Usage is:  C> testcdll
  9.  
  10.     Copyright (C) 1988 Ray Duncan
  11. */
  12.  
  13. #include <stdio.h>
  14.  
  15. int extern far pascal MYFUNC(int, int);
  16.  
  17. main()
  18. {
  19.     int x;          /* temporary storage */
  20.  
  21.     printf("\nCalling CDLL.MYFUNC\n");
  22.  
  23.     x = MYFUNC(1, 2);
  24.  
  25.     printf("\nMYFUNC(1, 2) = %d\n", x);
  26. }
  27. 
  28.