Matthew Busche wrote: You never mentioned anything about dllimport you asked how to export ;) You guessed well. Generally, the technique is the following: use one header file for both your DLL and your application. In it, define something like #if _MY_DLL #define MYDDL_WHATEVER _declspec(dllexport) #else #define MYDDL_WHATEVER _declspec(dllimport) Then, in the header, use: extern MYDDL_WHATEVER int x; In the settings of the DLL project, define the preprocessor definition MYDDL_WHATEVER. Et hop, it's done :) You could also take a look to this article[^], it may contain useful info. Matthew Busche wrote: Thanks again for your help. It was most helpful. My pleasure, and welcome on Codeproject! :-D K.
Le temps se perd, "Si" n'existe pas Tous les remords n'y changeront rien Le temps se perd, "Si" n'existe pas Donc à présent le choix reste mien