Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: when to call auto_ptr release? [modified] Pin
Rajkumar R18-Feb-08 23:36
Rajkumar R18-Feb-08 23:36 
GeneralRe: when to call auto_ptr release? Pin
George_George19-Feb-08 14:12
George_George19-Feb-08 14:12 
AnswerRe: when to call auto_ptr release? Pin
Rajkumar R19-Feb-08 17:34
Rajkumar R19-Feb-08 17:34 
GeneralRe: when to call auto_ptr release? Pin
George_George19-Feb-08 23:31
George_George19-Feb-08 23:31 
AnswerRe: when to call auto_ptr release? Pin
jhwurmbach19-Feb-08 4:35
jhwurmbach19-Feb-08 4:35 
GeneralRe: when to call auto_ptr release? Pin
George_George19-Feb-08 14:05
George_George19-Feb-08 14:05 
Generalerror while importing the static class member from dll Pin
Prasanth M V18-Feb-08 21:23
Prasanth M V18-Feb-08 21:23 
Generalerror while importing the static class member from dll Pin
Prasanth M V18-Feb-08 21:23
Prasanth M V18-Feb-08 21:23 
Smile | :)
Friends,

In my appln i am using an exported member(static memebr of a clasas) from a dll.
But i am getting a link error on that static member valrible.

In my Dll Project i have set the __EXPORT defenition in the project settings
Im my application i have given lib name in the project settings.


Does any one have any idea. why this happends...?



The class implemenntation is as follows;


//MyClass.h

#ifdef __EXPORT
#define EXPORT _declspec(dllexport)
#else
#define EXPORT _declspec(dllimport)
#endif

class EXPORT CMyClass
{

public:
CMyClass();
virtual ~CMyClass();

public:
static int nValue;

};




//MyClass.h.cpp

#include "MyClass.h"

int CMyClass::nValue = 0;


CMyClass::CMyClass()
{

}

CMyClass::~CMyClass()
{

}





Does any one have any idea why this happend?????
GeneralRe: error while importing the static class member from dll Pin
Iain Clarke, Warrior Programmer18-Feb-08 21:50
Iain Clarke, Warrior Programmer18-Feb-08 21:50 
GeneralRe: error while importing the static class member from dll Pin
Prasanth M V18-Feb-08 22:00
Prasanth M V18-Feb-08 22:00 
QuestionRe: error while importing the static class member from dll Pin
CPallini18-Feb-08 22:08
mveCPallini18-Feb-08 22:08 
GeneralRe: error while importing the static class member from dll Pin
Prasanth M V18-Feb-08 22:24
Prasanth M V18-Feb-08 22:24 
GeneralRe: error while importing the static class member from dll Pin
Rajesh R Subramanian18-Feb-08 22:35
professionalRajesh R Subramanian18-Feb-08 22:35 
GeneralRe: error while importing the static class member from dll Pin
Prasanth M V18-Feb-08 23:42
Prasanth M V18-Feb-08 23:42 
QuestionRe: error while importing the static class member from dll Pin
CPallini18-Feb-08 22:38
mveCPallini18-Feb-08 22:38 
GeneralRe: error while importing the static class member from dll Pin
Prasanth M V19-Feb-08 0:07
Prasanth M V19-Feb-08 0:07 
AnswerRe: error while importing the static class member from dll [modified] Pin
Rajkumar R19-Feb-08 0:15
Rajkumar R19-Feb-08 0:15 
Questionvfw.h and capDlgVideoDisplay Pin
Tomice18-Feb-08 21:05
Tomice18-Feb-08 21:05 
GeneralRe: vfw.h and capDlgVideoDisplay Pin
Mark Salsbery19-Feb-08 8:18
Mark Salsbery19-Feb-08 8:18 
GeneralSaving a bitmap image in visual C++ 2003 Pin
MozhdehQeraati18-Feb-08 20:34
MozhdehQeraati18-Feb-08 20:34 
GeneralRe: Saving a bitmap image in visual C++ 2003 Pin
Hamid_RT18-Feb-08 20:43
Hamid_RT18-Feb-08 20:43 
GeneralRe: Saving a bitmap image in visual C++ 2003 Pin
MozhdehQeraati18-Feb-08 21:01
MozhdehQeraati18-Feb-08 21:01 
AnswerRe: Saving a bitmap image in visual C++ 2003 Pin
Rajkumar R18-Feb-08 21:03
Rajkumar R18-Feb-08 21:03 
GeneralRe: Saving a bitmap image in visual C++ 2003 Pin
MozhdehQeraati18-Feb-08 21:22
MozhdehQeraati18-Feb-08 21:22 
GeneralRe: Saving a bitmap image in visual C++ 2003 Pin
Prasanth M V18-Feb-08 21:56
Prasanth M V18-Feb-08 21:56 

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.