Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Microsoft RAS server Pin
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj11-Oct-02 5:01
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj11-Oct-02 5:01 
GeneralResources in EXE Pin
candan11-Oct-02 0:09
professionalcandan11-Oct-02 0:09 
GeneralRe: Resources in EXE Pin
Pavel Klocek11-Oct-02 0:55
Pavel Klocek11-Oct-02 0:55 
GeneralRe: Resources in EXE Pin
candan13-Oct-02 14:31
professionalcandan13-Oct-02 14:31 
GeneralRe: Resources in EXE Pin
Gary R. Wheeler11-Oct-02 16:26
Gary R. Wheeler11-Oct-02 16:26 
Generalstatic member in dll Pin
Kainy11-Oct-02 0:05
Kainy11-Oct-02 0:05 
GeneralRe: static member in dll Pin
Stephane Rodriguez.11-Oct-02 0:19
Stephane Rodriguez.11-Oct-02 0:19 
GeneralRe: static member in dll Pin
Paul M Watt11-Oct-02 5:54
mentorPaul M Watt11-Oct-02 5:54 
Usually how people solve this problem is by making a define that gets changed depending on how the DLL is used. Something like this:

<br />
#ifdef CIO_EXPORTS<br />
#define CIO_API __declspec(dllexport)<br />
#else<br />
#define CIO_API __declspec(dllimport)<br />
#endif<br />


So in your project where you compile your DLL, besure to define CIO_EXPORTS, and your class and static members will be exported. In all other cases (like the project where you want to import the DLL) the setting will be set to import those parameters.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralDialog box Pin
suresh_sathya10-Oct-02 23:50
suresh_sathya10-Oct-02 23:50 
GeneralRe: Dialog box Pin
Rickard Andersson2010-Oct-02 23:59
Rickard Andersson2010-Oct-02 23:59 
GeneralRe: Dialog box Pin
suresh_sathya11-Oct-02 0:24
suresh_sathya11-Oct-02 0:24 
GeneralRe: Dialog box Pin
Jon Hulatt11-Oct-02 0:56
Jon Hulatt11-Oct-02 0:56 
GeneralRe: Dialog box Pin
Pavel Klocek11-Oct-02 0:57
Pavel Klocek11-Oct-02 0:57 
GeneralRe: Dialog box Pin
suresh_sathya11-Oct-02 1:29
suresh_sathya11-Oct-02 1:29 
Questionhow to realize a fuction of Gdi+ "DrawCurve" Pin
zhangyifei10-Oct-02 23:28
zhangyifei10-Oct-02 23:28 
AnswerRe: how to realize a fuction of Gdi+ "DrawCurve" Pin
Rickard Andersson2010-Oct-02 23:54
Rickard Andersson2010-Oct-02 23:54 
AnswerRe: how to realize a fuction of Gdi+ "DrawCurve" Pin
Anonymous13-Oct-02 15:22
Anonymous13-Oct-02 15:22 
GeneralCallback/Handle Pin
stevenson10-Oct-02 21:36
stevenson10-Oct-02 21:36 
GeneralRe: Callback/Handle Pin
User 665811-Oct-02 1:24
User 665811-Oct-02 1:24 
GeneralExport functions in an exe Pin
DarrollWalsh10-Oct-02 20:56
DarrollWalsh10-Oct-02 20:56 
GeneralRe: Export functions in an exe Pin
Rickard Andersson2010-Oct-02 21:21
Rickard Andersson2010-Oct-02 21:21 
GeneralRe: Export functions in an exe Pin
DarrollWalsh10-Oct-02 21:55
DarrollWalsh10-Oct-02 21:55 
GeneralRe: Export functions in an exe Pin
Rickard Andersson2010-Oct-02 22:35
Rickard Andersson2010-Oct-02 22:35 
GeneralRe: Export functions in an exe Pin
Joel Lucsy11-Oct-02 3:52
Joel Lucsy11-Oct-02 3:52 
GeneralRe: Export functions in an exe Pin
Stephane Rodriguez.10-Oct-02 23:25
Stephane Rodriguez.10-Oct-02 23:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.