Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchar* byte* DLL-VC++ and Delphi Please help ! Pin
mimi10-Dec-01 7:36
mimi10-Dec-01 7:36 
GeneralCreate a CBitmap object, draw in it, save in (.bmp file) Pin
Remi Morin10-Dec-01 7:34
Remi Morin10-Dec-01 7:34 
GeneralRe: Create a CBitmap object, draw in it, save in (.bmp file) Pin
Bill Wilson10-Dec-01 7:42
Bill Wilson10-Dec-01 7:42 
QuestionHow to insert characters in a CRichEditViewed application? Pin
davilism10-Dec-01 7:33
davilism10-Dec-01 7:33 
QuestionHow to move the caret in CRichEditViewed application? Pin
davilism10-Dec-01 7:32
davilism10-Dec-01 7:32 
AnswerRe: How to move the caret in CRichEditViewed application? Pin
squizz10-Dec-01 10:05
squizz10-Dec-01 10:05 
GeneralRe: How to move the caret in CRichEditViewed application? Pin
davilism10-Dec-01 17:19
davilism10-Dec-01 17:19 
GeneralCan't use RTTI Pin
Chen Jiadong10-Dec-01 7:05
Chen Jiadong10-Dec-01 7:05 
hi, all
i derived a class from CObject, and also let it support "runtime type information"(RTTI), so i did these:
// Derived.h
class CDerived : public CObject{
DECLARE_DYNAMIC(CDerived)
public:
CDerived(){};
~CDerived(){};
}
// Derived.cpp
IMPLEMENT_DYNAMIC(CObject, CDerived)

but there are a warning and a error:
Derived.cpp(19) : warning C4273: 'public: static struct CRuntimeClass const CObject::classCObject' : inconsistent dll linkage. dllexport assumed.
Derived.cpp(19) : error C2491: 'CObject::classCObject' : definition of dllimport static data member not allowed

can you tell me why?
thank you!
Confused | :confused:
GeneralRe: Can't use RTTI Pin
Ernest Laurentin10-Dec-01 8:04
Ernest Laurentin10-Dec-01 8:04 
GeneralRe: Can't use RTTI Pin
Chen Jiadong10-Dec-01 19:10
Chen Jiadong10-Dec-01 19:10 
GeneralRe: Can't use RTTI Pin
Christian Graus10-Dec-01 10:00
protectorChristian Graus10-Dec-01 10:00 
GeneralMySQL help!!! Pin
Bill Gates Antimatter Particle10-Dec-01 6:35
Bill Gates Antimatter Particle10-Dec-01 6:35 
GeneralRe: MySQL help!!! Pin
Jon Hulatt10-Dec-01 6:42
Jon Hulatt10-Dec-01 6:42 
GeneralRe: MySQL help!!! Pin
Bill Gates Antimatter Particle10-Dec-01 6:55
Bill Gates Antimatter Particle10-Dec-01 6:55 
GeneralRe: MySQL help!!! Pin
markkuk10-Dec-01 19:55
markkuk10-Dec-01 19:55 
GeneralRe: MySQL help!!! Pin
Bill Gates Antimatter Particle12-Dec-01 7:25
Bill Gates Antimatter Particle12-Dec-01 7:25 
GeneralRe: MySQL help!!! Pin
Nish Nishant10-Dec-01 20:16
sitebuilderNish Nishant10-Dec-01 20:16 
GeneralXML Schema (xmlspy<=>msxml) Pin
10-Dec-01 4:53
suss10-Dec-01 4:53 
GeneralTab order Pin
andysolman10-Dec-01 4:48
andysolman10-Dec-01 4:48 
GeneralRe: Tab order Pin
Ravi Bhavnani10-Dec-01 4:52
professionalRavi Bhavnani10-Dec-01 4:52 
GeneralRe: Tab order Pin
andysolman10-Dec-01 23:54
andysolman10-Dec-01 23:54 
GeneralRe: Tab order Pin
Ravi Bhavnani11-Dec-01 1:53
professionalRavi Bhavnani11-Dec-01 1:53 
GeneralCreateProcess Pin
HF10-Dec-01 4:30
HF10-Dec-01 4:30 
GeneralRe: CreateProcess Pin
Jon Hulatt10-Dec-01 5:18
Jon Hulatt10-Dec-01 5:18 
GeneralRe: CreateProcess Pin
HF12-Dec-01 0:06
HF12-Dec-01 0:06 

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.