Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
this can occur if u donot define the nValue in ur DLL, but ur code shows u defined the variable,

I see two possibility,

1) u may be linking to wrong export library, that can happen if u r moving projects, but given fixed path.

2) ur error message shows it is not dllimport, it is normal class declaration,
if dllimport then following can be the error message

error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int CMyClass::nValue" (__imp_?nValue@CMyClass@@2HA)

not this

error LNK2001: unresolved external symbol "public: static int CMyClass::nValue" (?nValue@CMyClass@@2HA)


this can happen if ur using different header file, other than that used in DLL project which doesnot have the dllimport keyword

modified on Tuesday, February 19, 2008 7:23 AM

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 
QuestionRe: Saving a bitmap image in visual C++ 2003 Pin
Rajkumar R18-Feb-08 22:12
Rajkumar R18-Feb-08 22:12 
GeneralGINA Pin
MozhdehQeraati18-Feb-08 20:28
MozhdehQeraati18-Feb-08 20:28 
Generaltypedef Pin
George_George18-Feb-08 20:25
George_George18-Feb-08 20:25 
AnswerRe: typedef Pin
Rajkumar R18-Feb-08 20:45
Rajkumar R18-Feb-08 20:45 
GeneralRe: typedef Pin
George_George18-Feb-08 20:50
George_George18-Feb-08 20:50 
GeneralRe: typedef Pin
Prasanth M V18-Feb-08 21:38
Prasanth M V18-Feb-08 21:38 
GeneralRe: typedef Pin
George_George18-Feb-08 21:43
George_George18-Feb-08 21:43 
GeneralRe: typedef Pin
Rajkumar R18-Feb-08 22:28
Rajkumar R18-Feb-08 22:28 
GeneralRe: typedef Pin
George_George19-Feb-08 14:14
George_George19-Feb-08 14:14 

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.