Click here to Skip to main content
16,010,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: System Wide Keyboard Hooking Pin
joshfl10-Jan-03 11:19
joshfl10-Jan-03 11:19 
GeneralRe: System Wide Keyboard Hooking Pin
joshfl10-Jan-03 12:47
joshfl10-Jan-03 12:47 
GeneralRe: System Wide Keyboard Hooking Pin
Joan M12-Jan-03 21:41
professionalJoan M12-Jan-03 21:41 
GeneralRe: System Wide Keyboard Hooking Pin
joshfl13-Jan-03 5:35
joshfl13-Jan-03 5:35 
Generalsetting/reading values of vars whe I have only the name of the var. Pin
Joan M10-Jan-03 9:38
professionalJoan M10-Jan-03 9:38 
GeneralRe: setting/reading values of vars whe I have only the name of the var. Pin
Maximilien10-Jan-03 9:58
Maximilien10-Jan-03 9:58 
GeneralRe: setting/reading values of vars whe I have only the name of the var. Pin
Joan M10-Jan-03 10:37
professionalJoan M10-Jan-03 10:37 
GeneralRe: setting/reading values of vars whe I have only the name of the var. Pin
Navin10-Jan-03 10:18
Navin10-Jan-03 10:18 
Not gonna happen in C++.

You need some sort of map/associative array, that can map a string value to an integer value. Then you can get the same effect.

If you are using stl,check out the "map" or "multimap" class. Or the MFC container version is CMap I believe.

Example using map:
map<CString, int> myVariables;

.. then you can insert/extract stuff from the map and use them like variables.
(I'd give more concrete code, but somebody is borrowing my STL book at the momeny. Blush | :O )


Even a broken clock is right twice a day.
GeneralRe: setting/reading values of vars whe I have only the name of the var. Pin
Joan M10-Jan-03 10:37
professionalJoan M10-Jan-03 10:37 
GeneralRe: setting/reading values of vars whe I have only the name of the var. Pin
Todd Smith10-Jan-03 12:55
Todd Smith10-Jan-03 12:55 
GeneralVisual C++ debugging options Pin
Ivor S10-Jan-03 9:30
Ivor S10-Jan-03 9:30 
GeneralRe: Visual C++ debugging options Pin
AlexO10-Jan-03 11:38
AlexO10-Jan-03 11:38 
GeneralRe: Visual C++ debugging options Pin
Ivor S10-Jan-03 13:17
Ivor S10-Jan-03 13:17 
GeneralNeed an example Pin
BORICUA10-Jan-03 9:28
BORICUA10-Jan-03 9:28 
GeneralWarnings in VS.NET Pin
Navin10-Jan-03 9:05
Navin10-Jan-03 9:05 
GeneralRe: Warnings in VS.NET Pin
AlexO10-Jan-03 11:01
AlexO10-Jan-03 11:01 
GeneralRe: Warnings in VS.NET Pin
Navin10-Jan-03 14:53
Navin10-Jan-03 14:53 
Generalcompile error Pin
ns10-Jan-03 9:01
ns10-Jan-03 9:01 
GeneralRe: compile error Pin
Tim Smith10-Jan-03 9:08
Tim Smith10-Jan-03 9:08 
GeneralThanks! Pin
ns10-Jan-03 9:12
ns10-Jan-03 9:12 
GeneralRe: compile error Pin
Carlos Antollini10-Jan-03 9:09
Carlos Antollini10-Jan-03 9:09 
GeneralRe: compile error Pin
ns10-Jan-03 9:15
ns10-Jan-03 9:15 
GeneralRe: compile error Pin
AlexO10-Jan-03 11:40
AlexO10-Jan-03 11:40 
GeneralRe: compile error Pin
Carlos Antollini10-Jan-03 15:45
Carlos Antollini10-Jan-03 15:45 
Questionhow to get size of dialog? Pin
ns10-Jan-03 8:51
ns10-Jan-03 8:51 

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.