Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns7-Jul-03 23:16
Ryan Binns7-Jul-03 23:16 
GeneralRe: Disable Right Click Context menu!!! Pin
Rage8-Jul-03 0:44
professionalRage8-Jul-03 0:44 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns8-Jul-03 0:47
Ryan Binns8-Jul-03 0:47 
GeneralRe: Disable Right Click Context menu!!! Pin
Iain Clarke, Warrior Programmer7-Jul-03 23:48
Iain Clarke, Warrior Programmer7-Jul-03 23:48 
GeneralAbout IOCTL_DISK_VERIFY Pin
FlyingDancer7-Jul-03 19:31
FlyingDancer7-Jul-03 19:31 
GeneralRe: About IOCTL_DISK_VERIFY Pin
David Crow8-Jul-03 3:16
David Crow8-Jul-03 3:16 
GeneralRe: About IOCTL_DISK_VERIFY Pin
FlyingDancer8-Jul-03 3:34
FlyingDancer8-Jul-03 3:34 
GeneralRe: About IOCTL_DISK_VERIFY Pin
FlyingDancer8-Jul-03 3:41
FlyingDancer8-Jul-03 3:41 
GeneralRe: About IOCTL_DISK_VERIFY Pin
David Crow8-Jul-03 4:47
David Crow8-Jul-03 4:47 
GeneralWant to get an ActiveX control for displaying picture Pin
Xilin7-Jul-03 18:20
Xilin7-Jul-03 18:20 
QuestionDirectShow ...How do i overlay a bitmap pic over a video source? Pin
Member 4048137-Jul-03 17:36
Member 4048137-Jul-03 17:36 
AnswerRe: DirectShow ...How do i overlay a bitmap pic over a video source? Pin
Andrew Walker7-Jul-03 19:27
Andrew Walker7-Jul-03 19:27 
GeneralManipulating Systray icons Pin
haritadala7-Jul-03 14:15
haritadala7-Jul-03 14:15 
GeneralRe: Manipulating Systray icons Pin
Ryan Binns7-Jul-03 15:45
Ryan Binns7-Jul-03 15:45 
Generalsaving and loading application settings Pin
crapfacejoe7-Jul-03 12:44
crapfacejoe7-Jul-03 12:44 
GeneralRe: saving and loading application settings Pin
valikac7-Jul-03 12:54
valikac7-Jul-03 12:54 
GeneralRe: saving and loading application settings Pin
John R. Shaw7-Jul-03 13:12
John R. Shaw7-Jul-03 13:12 
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!

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.