Click here to Skip to main content
15,904,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setup Project Pin
rwestgraham25-Jan-05 23:24
rwestgraham25-Jan-05 23:24 
GeneralMFC and web-site Pin
includeh1025-Jan-05 5:14
includeh1025-Jan-05 5:14 
GeneralRe: MFC and web-site Pin
Tom Wright25-Jan-05 5:37
Tom Wright25-Jan-05 5:37 
GeneralSave/Restore appearance scheme Pin
Member 166110225-Jan-05 4:49
Member 166110225-Jan-05 4:49 
GeneralRe: Save/Restore appearance scheme Pin
David Crow26-Jan-05 3:43
David Crow26-Jan-05 3:43 
Questioninf file??? Pin
charleslau285525-Jan-05 4:40
charleslau285525-Jan-05 4:40 
GeneralDrawDragRect Pin
poiut25-Jan-05 4:17
poiut25-Jan-05 4:17 
QuestionDLL -basic and AFX_MANAGE_STATE macro ??? Pin
GDavy25-Jan-05 2:51
GDavy25-Jan-05 2:51 
Hello,

I am creating a dll in which I simply want to export a class.
When creating the dll I noticed in the .cpp file that is default created by VC and which has the InitInstance inside, the following comment:
// Note!
//
// If this DLL is dynamically linked against the MFC
// DLLs, any functions exported from this DLL which
// call into MFC must have the AFX_MANAGE_STATE macro
// added at the very beginning of the function.
// ......
etc...

Does that mean that in each member function of the class which I want to export I`ll need to add that macro?
Why isn^t it present in the default InitInstance function?

And what`s the use of that InitInstance function anyway? I created the dll and debugged it and put a breakpoint in tthe InitInstance function, but it was never called. The theApp object of the dll was never instantiated either, but none the less I used an exported class from that dll in another app.

Thx for any help you might give.

Friendly regards,
Davy
AnswerRe: DLL -basic and AFX_MANAGE_STATE macro ??? Pin
David Crow25-Jan-05 3:26
David Crow25-Jan-05 3:26 
GeneralCallback Function VC++ --> VB Pin
racing5725-Jan-05 2:03
racing5725-Jan-05 2:03 
Generalsending data from VC++ to Excel Sheet Pin
neelima_1525-Jan-05 0:12
neelima_1525-Jan-05 0:12 
GeneralRe: sending data from VC++ to Excel Sheet Pin
David Crow25-Jan-05 2:29
David Crow25-Jan-05 2:29 
Questionhow to display integers Pin
doneirik24-Jan-05 23:29
doneirik24-Jan-05 23:29 
AnswerRe: how to display integers Pin
Chris Losinger25-Jan-05 4:36
professionalChris Losinger25-Jan-05 4:36 
GeneralLinker error - looks like message map not getting exported from an extension DLL Pin
Nish Nishant24-Jan-05 22:28
sitebuilderNish Nishant24-Jan-05 22:28 
GeneralRe: Linker error - looks like message map not getting exported from an extension DLL Pin
22491724-Jan-05 23:30
22491724-Jan-05 23:30 
Generalmake AddIn to Visual Studio .net Pin
JabraJabra24-Jan-05 21:46
JabraJabra24-Jan-05 21:46 
Generalstd::out_of_range Pin
Anonymous24-Jan-05 19:38
Anonymous24-Jan-05 19:38 
GeneralRe: std::out_of_range Pin
Christian Graus24-Jan-05 20:06
protectorChristian Graus24-Jan-05 20:06 
GeneralRe: std::out_of_range Pin
markkuk25-Jan-05 2:08
markkuk25-Jan-05 2:08 
QuestionHow to disable minimized, maximized and restore button of my window? Pin
Anonymous24-Jan-05 18:12
Anonymous24-Jan-05 18:12 
AnswerRe: How to disable minimized, maximized and restore button of my window? Pin
toxcct24-Jan-05 21:25
toxcct24-Jan-05 21:25 
AnswerRe: How to disable minimized, maximized and restore button of my window? Pin
Cedric Moonen24-Jan-05 22:55
Cedric Moonen24-Jan-05 22:55 
GeneralExtract text from Ms -office documents Pin
mjvalan24-Jan-05 17:48
mjvalan24-Jan-05 17:48 
GeneralRe: Extract text from Ms -office documents Pin
Member 30761224-Jan-05 20:39
Member 30761224-Jan-05 20:39 

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.