Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
That's still not exactly right. You don't initialize global variables in the header file, but in the .cpp file where they are defined.

appconsts.h:
extern TCHAR* FOO;

appconsts.cpp:
TCHAR* FOO = _T("Hello");

The Windows headers use #define because the API is still a C interface, and const is not supported by all C compilers (it was officially added to C rather recently).

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

----
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
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 
AnswerRe: How to get HWND of VC++ OCX from VB Client Pin
Member 42102514-May-04 14:27
Member 42102514-May-04 14:27 
GeneralRe: How to get HWND of VC++ OCX from VB Client Pin
Nirav Doshi14-May-04 21:37
Nirav Doshi14-May-04 21:37 
GeneralHelp for a New programmer Pin
Anonymous14-May-04 9:42
Anonymous14-May-04 9:42 
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 10:03
Anonymous14-May-04 10:03 
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 18:50
Anonymous14-May-04 18:50 
GeneralRe: Help for a New programmer Pin
J. Eric Vaughan14-May-04 10:47
J. Eric Vaughan14-May-04 10:47 

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.