Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: saving and loading application settings Pin
John M. Drescher7-Jul-03 13:31
John M. Drescher7-Jul-03 13:31 
Generalgetting the value of an int in a cpp file into another Pin
keegan7-Jul-03 9:51
keegan7-Jul-03 9:51 
GeneralRe: getting the value of an int in a cpp file into another Pin
Navin7-Jul-03 9:59
Navin7-Jul-03 9:59 
GeneralRe: getting the value of an int in a cpp file into another Pin
keegan7-Jul-03 10:11
keegan7-Jul-03 10:11 
GeneralRe: getting the value of an int in a cpp file into another Pin
John R. Shaw7-Jul-03 10:05
John R. Shaw7-Jul-03 10:05 
GeneralRe: getting the value of an int in a cpp file into another Pin
keegan7-Jul-03 10:16
keegan7-Jul-03 10:16 
GeneralRe: getting the value of an int in a cpp file into another Pin
John R. Shaw7-Jul-03 10:41
John R. Shaw7-Jul-03 10:41 
GeneralRe: Simpler answer Pin
John R. Shaw7-Jul-03 10:59
John R. Shaw7-Jul-03 10:59 
1) Create a header file for the module (.cpp file) containing the global variable.
2) Declare the variable as follows in the header file for your module (.cpp file) as follows:
extern int g_iMyCurSel;
3) Include the header file for your module (.cpp file) before any other header files that needed to have access to your global variable.

Now any file that includes you modules (.cpp files) header file will have access to you global variable.

Trust in the code Luke. Yea right!
GeneralRe: getting the value of an int in a cpp file into another Pin
Michael Dunn7-Jul-03 17:19
sitebuilderMichael Dunn7-Jul-03 17:19 
GeneralRe: getting the value of an int in a cpp file into another Pin
Terry O'Nolley10-Jul-03 9:13
Terry O'Nolley10-Jul-03 9:13 
Questionhow to know if the VB function is part of COM object? Pin
mr20037-Jul-03 9:47
mr20037-Jul-03 9:47 
Generalfirewall project Pin
ub817-Jul-03 9:10
ub817-Jul-03 9:10 
GeneralRe: firewall project Pin
Dave Kreskowiak7-Jul-03 9:12
mveDave Kreskowiak7-Jul-03 9:12 
GeneralRe: firewall project Pin
basementman7-Jul-03 15:56
basementman7-Jul-03 15:56 
QuestionHow to use VB functions in VC program Pin
mr20037-Jul-03 9:10
mr20037-Jul-03 9:10 
AnswerRe: How to use VB functions in VC program Pin
AlexO7-Jul-03 9:11
AlexO7-Jul-03 9:11 
GeneralRe: How to use VB functions in VC program Pin
mr20037-Jul-03 9:14
mr20037-Jul-03 9:14 
GeneralRe: How to use VB functions in VC program Pin
Shaffiq7-Jul-03 18:26
Shaffiq7-Jul-03 18:26 
GeneralRe: How to use VB functions in VC program Pin
mr20038-Jul-03 7:32
mr20038-Jul-03 7:32 
GeneralRe: How to use VB functions in VC program Pin
Shaffiq8-Jul-03 20:34
Shaffiq8-Jul-03 20:34 
QuestionHow to get a HINSTANCE Pin
RvD20027-Jul-03 8:06
sussRvD20027-Jul-03 8:06 
AnswerRe: How to get a HINSTANCE Pin
AlexO7-Jul-03 8:39
AlexO7-Jul-03 8:39 
GeneralRe: How to get a HINSTANCE Pin
RvD20027-Jul-03 9:50
sussRvD20027-Jul-03 9:50 
AnswerRe: How to get a HINSTANCE Pin
John R. Shaw7-Jul-03 9:09
John R. Shaw7-Jul-03 9:09 
GeneralEasy question about passing by refrence to another function Pin
johnstonsk7-Jul-03 8:05
johnstonsk7-Jul-03 8:05 

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.