Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralScanner TWAIN Pin
ivax3-Nov-04 4:05
ivax3-Nov-04 4:05 
GeneralCListCtrl and the common control Pin
hcatech3-Nov-04 3:24
hcatech3-Nov-04 3:24 
GeneralRe: CListCtrl and the common control Pin
Rage3-Nov-04 4:33
professionalRage3-Nov-04 4:33 
GeneralPlaying online .ASX files (streaming radio) Pin
Bail Organa3-Nov-04 3:24
Bail Organa3-Nov-04 3:24 
Generaluse string instead of commands Pin
dSolariuM3-Nov-04 2:35
dSolariuM3-Nov-04 2:35 
GeneralRe: use string instead of commands Pin
Maximilien3-Nov-04 3:08
Maximilien3-Nov-04 3:08 
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 3:09
David Crow3-Nov-04 3:09 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 4:08
BlackDice3-Nov-04 4:08 
I think he wants to be able to convert text to code. In Visual FoxPro, you can do this. A friend of mine brags about being able to do this in VFP, and not in C++. In FoxPro you can write code like this:


lcString = text1.Value  &&user input text into an edit control that equals "MessageBox('hello')"
&lcString && will actually execute the string as code


the '&' in front of the string denotes something in foxpro called 'macro expansion' and will actually use the string as if it were code, so that if you wanted to use it for something like teaching purposes, you could have the student type in a line of code, and execute it at runtime. This is one of the ONLY things I like about vfp. It might not have any very common uses, but I think it's cool to allow the user to execute code (or yourself for debugging purposes, maybe).

Anyway, I've also wondered if there was a way to do this in C++ and it kind of frustrates me to think that a rinky dink language like FoxPro can do something like that, and C++ can't.

Bugs?! What do you mean, 'bugs'? We purposely put those 'Undocumented Features' in the program.

My articles

www.stillwaterexpress.com
BlackDice
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 4:30
David Crow3-Nov-04 4:30 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 7:10
BlackDice3-Nov-04 7:10 
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 7:48
David Crow3-Nov-04 7:48 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 8:00
BlackDice3-Nov-04 8:00 
GeneralHave a custom titlebar Pin
dSolariuM3-Nov-04 2:26
dSolariuM3-Nov-04 2:26 
GeneralCreateFile ... error C2065 Pin
gunnar663-Nov-04 2:13
gunnar663-Nov-04 2:13 
GeneralRe: CreateFile ... error C2065 Pin
P-Rex3-Nov-04 2:55
P-Rex3-Nov-04 2:55 
GeneralRe: CreateFile ... error C2065 Pin
gunnar663-Nov-04 3:22
gunnar663-Nov-04 3:22 
GeneralRe: CreateFile ... error C2065 Pin
Antony M Kancidrowski3-Nov-04 4:26
Antony M Kancidrowski3-Nov-04 4:26 
QuestionAny help for memory leak ? Pin
Amarelia3-Nov-04 1:43
Amarelia3-Nov-04 1:43 
AnswerRe: Any help for memory leak ? Pin
Selvam R3-Nov-04 2:31
professionalSelvam R3-Nov-04 2:31 
AnswerRe: Any help for memory leak ? Pin
Henry miller3-Nov-04 2:45
Henry miller3-Nov-04 2:45 
GeneralHardware programming help Pin
Pothirajan C3-Nov-04 1:18
Pothirajan C3-Nov-04 1:18 
GeneralColoring static group box Pin
balajeedurai3-Nov-04 0:29
balajeedurai3-Nov-04 0:29 
GeneralRe: Coloring static group box Pin
Ravi Bhavnani3-Nov-04 2:40
professionalRavi Bhavnani3-Nov-04 2:40 
GeneralRe: Coloring static group box Pin
Selvam R3-Nov-04 2:44
professionalSelvam R3-Nov-04 2:44 
GeneralHelp Files In a MFC Application Pin
sweep1232-Nov-04 23:31
sweep1232-Nov-04 23:31 

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.