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

C / C++ / MFC

 
GeneralInteraction betwwen CDialog and CDocument Pin
Puah3-Aug-04 21:29
Puah3-Aug-04 21:29 
GeneralRe: Interaction betwwen CDialog and CDocument Pin
Michael P Butler3-Aug-04 23:38
Michael P Butler3-Aug-04 23:38 
QuestionWhat menu item was selected? Pin
gokings3-Aug-04 21:14
gokings3-Aug-04 21:14 
AnswerRe: What menu item was selected? Pin
cmk4-Aug-04 0:28
cmk4-Aug-04 0:28 
AnswerRe: What menu item was selected? Pin
V.4-Aug-04 1:07
professionalV.4-Aug-04 1:07 
AnswerRe: What menu item was selected? Pin
cmk4-Aug-04 9:53
cmk4-Aug-04 9:53 
GeneralRe: What menu item was selected? Pin
gokings5-Aug-04 22:12
gokings5-Aug-04 22:12 
GeneralUrgent:malloc gives access violation for a C dll Pin
rana743-Aug-04 21:07
rana743-Aug-04 21:07 
QuestionHow to use MFC structure CMemory State in a Non-MFC application Pin
Prathima Prabhakar Rao3-Aug-04 20:51
Prathima Prabhakar Rao3-Aug-04 20:51 
AnswerRe: How to use MFC structure CMemory State in a Non-MFC application Pin
Anthony_Yio4-Aug-04 1:19
Anthony_Yio4-Aug-04 1:19 
QuestionHow to draw figures in MSFlexgrid Cell Pin
kjadhav3-Aug-04 20:18
kjadhav3-Aug-04 20:18 
Questiondebug mode fails to run?? Pin
xxhimanshu3-Aug-04 19:47
xxhimanshu3-Aug-04 19:47 
AnswerRe: debug mode fails to run?? Pin
Milton Karimbekallil3-Aug-04 20:23
Milton Karimbekallil3-Aug-04 20:23 
Generalsystem log-off/shut-down response from my application Pin
Anonymous3-Aug-04 19:20
Anonymous3-Aug-04 19:20 
GeneralPlease help me with the Arithmetic Coding base on Khalid Sayood Pin
huffmancoding3-Aug-04 18:48
huffmancoding3-Aug-04 18:48 
Generalstarting an application at startup, before logging in Pin
Anonymous3-Aug-04 18:22
Anonymous3-Aug-04 18:22 
GeneralRe: starting an application at startup, before logging in Pin
Antony M Kancidrowski4-Aug-04 1:09
Antony M Kancidrowski4-Aug-04 1:09 
GeneralRe: starting an application at startup, before logging in Pin
Anonymous4-Aug-04 1:27
Anonymous4-Aug-04 1:27 
GeneralRe: starting an application at startup, before logging in Pin
Antony M Kancidrowski4-Aug-04 2:49
Antony M Kancidrowski4-Aug-04 2:49 
GeneralRe: starting an application at startup, before logging in Pin
Anonymous4-Aug-04 1:24
Anonymous4-Aug-04 1:24 
QuestionSend Messages? Pin
Zero_One_ADO3-Aug-04 18:10
Zero_One_ADO3-Aug-04 18:10 
Answerno Pin
bikram singh3-Aug-04 18:44
bikram singh3-Aug-04 18:44 
GeneralVisual C++ WinSNMP API: Pin
Alan Lewis3-Aug-04 16:00
Alan Lewis3-Aug-04 16:00 
GeneralOptimization Pin
Sibilant3-Aug-04 14:54
Sibilant3-Aug-04 14:54 
GeneralVisual C++ static member initialization Pin
Indrawati3-Aug-04 14:25
Indrawati3-Aug-04 14:25 
Hi
Let's say I have a class A. A has a static member whose type is another class, let's call it class B. Usually in my C++ application I declare this static member at the top of A's .cpp file as follows:

B A::instanceofB(aString)

where aString is of std::string type and is the argument for B's constructor.

That works OK and I got the result I wanted. However, yesterday I use that file on a different project (it's a directshow filter project) and it seems that instanceofB is never initialized there! I tried to debug it by making B's constructor to write to a file, but when I checked, the file was never written into, it's as if B's constructor's never called at all. I did that for B's default constructor too, but with the same result. I checked in all the project settings but I couldn't find out what causes this discrepancy.

Could someone point me on what's the possible causes for this?

Thanks!

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.