AND don't forget to put inside Headers some code like this one :
#if defined (MAKEDLL)
#define _APPLI __export
#elif defined (USEDLL)
#define _APPLI __import
#else
#define _APPLI
#endif
and in IDE : Options/Compiler/Defines
put MAKEDLL for the DLL
put USEDLL for the EXE
Jean-Paul
Main Topics
Browse All Topics





by: AlexVirochovskyPosted on 2000-03-30 at 08:05:43ID: 2669658
It is same mechainique, but little other.
1. Make lib file with help of impdef/
implib : if this Borland DLL,
use direct implib, if MS: make beforehand def file with impdef and after that implib.
2. Include you lib file in you project.
3. Make h file with prototypes of
DLL function and add in you cpp file.
4. Simple use MyDllFunction(..)
I hope, it helps. Alex