Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loan calculator Pin
toxcct15-May-04 0:37
toxcct15-May-04 0:37 
Generalblocking processes Pin
kanetheterrible114-May-04 18:41
kanetheterrible114-May-04 18:41 
GeneralRe: blocking processes Pin
Alexander M.,16-May-04 1:23
Alexander M.,16-May-04 1:23 
Generalblocking processes Pin
kanetheterrible114-May-04 18:39
kanetheterrible114-May-04 18:39 
GeneralConstrol bar and splitters Pin
alex.barylski14-May-04 18:37
alex.barylski14-May-04 18:37 
GeneralAssigning a value to a static char array Pin
monrobot1314-May-04 17:50
monrobot1314-May-04 17:50 
GeneralRe: Assigning a value to a static char array Pin
nguyenvhn14-May-04 18:00
nguyenvhn14-May-04 18:00 
GeneralRe: Assigning a value to a static char array Pin
Michael Dunn14-May-04 20:13
sitebuilderMichael Dunn14-May-04 20:13 
You normally don't put a static global variable in a header file; the purpose of using such a global is to restrict its visibility to one .CPP file.
You can give it an initial value in the .CPP file like so:
static char var[4] = "abc";


--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ

----
I even hear the Windows "OMG I booted up fine" sound.
  -- Paul Watson diagnosing hardware problems.

QuestionAccessing distant database from a program? Pin
__Cerb14-May-04 15:42
__Cerb14-May-04 15:42 
AnswerRe: Accessing distant database from a program? Pin
nguyenvhn14-May-04 18:04
nguyenvhn14-May-04 18:04 
General#include nightmare Pin
Ernesto D.14-May-04 13:39
Ernesto D.14-May-04 13:39 
GeneralRe: #include nightmare Pin
Michael Dunn14-May-04 13:44
sitebuilderMichael Dunn14-May-04 13:44 
GeneralRe: #include nightmare Pin
Ernesto D.14-May-04 13:50
Ernesto D.14-May-04 13:50 
GeneralRe: #include nightmare Pin
Michael Dunn14-May-04 14:04
sitebuilderMichael Dunn14-May-04 14:04 
GeneralRe: #include nightmare Pin
Ernesto D.14-May-04 15:23
Ernesto D.14-May-04 15:23 
Generali need help with CopyFile Pin
Ryan McDermott14-May-04 12:50
Ryan McDermott14-May-04 12:50 
GeneralRe: i need help with CopyFile Pin
Anonymous14-May-04 13:46
Anonymous14-May-04 13:46 
QuestionHow to response WM_LBUTTONDBLCLK in the MDIClient area? Pin
huyoo14-May-04 11:56
huyoo14-May-04 11:56 
AnswerRe: How to response WM_LBUTTONDBLCLK in the MDIClient area? Pin
huyoo15-May-04 6:49
huyoo15-May-04 6:49 
GeneralConsole runtime null variables Pin
Cpudood14-May-04 11:53
Cpudood14-May-04 11:53 
GeneralRe: Console runtime null variables Pin
Maarten Kools14-May-04 12:00
professionalMaarten Kools14-May-04 12:00 
QuestionNeed to retrieve data from a dialog into my class(not MFC class) How? Pin
Larry A Mills14-May-04 11:53
Larry A Mills14-May-04 11:53 
GeneralCasting into a short from a byte array Pin
Wheatbread14-May-04 11:45
Wheatbread14-May-04 11:45 
GeneralRe: Casting into a short from a byte array Pin
Wheatbread14-May-04 11:58
Wheatbread14-May-04 11:58 
QuestionHow to get HWND of VC++ OCX from VB Client Pin
Nirav Doshi14-May-04 11:23
Nirav Doshi14-May-04 11:23 

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.