Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please Help me !! Pin
Le@rner22-Oct-08 22:25
Le@rner22-Oct-08 22:25 
AnswerRe: Please Help me !! Pin
Roger Stoltz22-Oct-08 22:32
Roger Stoltz22-Oct-08 22:32 
GeneralRe: Please Help me !! Pin
Le@rner22-Oct-08 23:03
Le@rner22-Oct-08 23:03 
AnswerRe: Please Help me !! Pin
Roger Stoltz22-Oct-08 23:14
Roger Stoltz22-Oct-08 23:14 
AnswerRe: Please Help me !! Pin
king'ori23-Oct-08 3:14
king'ori23-Oct-08 3:14 
AnswerRe: Please Help me !! Pin
Roger Stoltz23-Oct-08 6:27
Roger Stoltz23-Oct-08 6:27 
Questionerror: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
VCProgrammer22-Oct-08 21:45
VCProgrammer22-Oct-08 21:45 
AnswerRe: error: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
CPallini22-Oct-08 22:17
mveCPallini22-Oct-08 22:17 
(1) You should declare global variables as extern in a (shared) header (.h) file.
(2) You should define global variables inside one source (.cpp) file.

For instance:
(MyCommonHeader.h)
extern int goo; // global variable declaration



(MyMainSource.cpp)
#include "MyCommonHeader.h"

int goo; // global variable definition

// freely use 'goo' here



(MyOtherSource.cpp)
#include "MyCommonHeader.h"

// freely use 'goo' here
//...


BTW: You shouldn't use global variables.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: error: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
Nishad S22-Oct-08 22:18
Nishad S22-Oct-08 22:18 
Questionhow to show dialog box in maximized mode(size) after running the dailog based application? Pin
puppya22-Oct-08 21:07
puppya22-Oct-08 21:07 
AnswerRe: how to show dialog box in maximized mode(size) after running the dailog based application? Pin
SandipG 22-Oct-08 21:09
SandipG 22-Oct-08 21:09 
QuestionCant delete files from current ditectory.. [modified] Pin
m_mun22-Oct-08 20:24
m_mun22-Oct-08 20:24 
AnswerRe: Cant delete files from current ditectory.. Pin
KarstenK22-Oct-08 20:49
mveKarstenK22-Oct-08 20:49 
GeneralRe: Cant delete files from current ditectory.. Pin
m_mun22-Oct-08 20:55
m_mun22-Oct-08 20:55 
GeneralRe: Cant delete files from current ditectory.. Pin
KarstenK22-Oct-08 21:51
mveKarstenK22-Oct-08 21:51 
AnswerRe: Cant delete files from current ditectory.. Pin
SandipG 22-Oct-08 21:06
SandipG 22-Oct-08 21:06 
Questionconvert CString to SQLCHAR* Pin
anna mathew22-Oct-08 19:34
anna mathew22-Oct-08 19:34 
AnswerRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 20:05
professionalRajesh R Subramanian22-Oct-08 20:05 
GeneralRe: convert CString to SQLCHAR* Pin
CPallini22-Oct-08 21:50
mveCPallini22-Oct-08 21:50 
GeneralRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 22:58
professionalRajesh R Subramanian22-Oct-08 22:58 
JokeRe: convert CString to SQLCHAR* Pin
CPallini22-Oct-08 23:04
mveCPallini22-Oct-08 23:04 
GeneralRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 23:11
professionalRajesh R Subramanian22-Oct-08 23:11 
GeneralRe: convert CString to SQLCHAR* Pin
anna mathew22-Oct-08 23:17
anna mathew22-Oct-08 23:17 
GeneralRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 23:20
professionalRajesh R Subramanian22-Oct-08 23:20 
JokeRe: convert CString to SQLCHAR* Pin
CPallini22-Oct-08 23:46
mveCPallini22-Oct-08 23:46 

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.