On 9 Dic, 22:11, "Doug Harrison [MVP]" <d...@mvps.org> wrote:
On Tue, 9 Dec 2008 13:04:10 -0800 (PST), GiuseppeDini <vv...@libero.it>
wrote:
I created a dll project named "test" and I've found this code:
#ifdef TEST_EXPORTS
#define TEST_API __declspec(dllexport)
#else
#define TEST_API __declspec(dllimport)
#endif
There is one thing i can't understand.
Where is TEST_EXPORTS defined when the code is compiled in the dll to
be exported?
I can't find a line where it is defined.
Look in your preprocessor options (/D).
Thank you.
I understand that it is a basic knowledge, but I'm new to c++.
I've noticed several names for that option:
WIN32;_DEBUG;_WINDOWS;_USRDLL;CCCC_EXPORTS.
So my application is also defined for win32. If I select a win64
project, the same code will run under a 64bit processor and one of the
above options will become WIN64?
(but I have vc++ express and I can't try it)