Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Persisting MFC dialog's object properties Pin
Ryan Binns6-Jul-03 22:24
Ryan Binns6-Jul-03 22:24 
GeneralProgress bar for shell extension Pin
DJ Unreal5-Jul-03 16:59
DJ Unreal5-Jul-03 16:59 
Questiondesign-time license??? Pin
Mardigin5-Jul-03 16:24
Mardigin5-Jul-03 16:24 
AnswerRe: design-time license??? Pin
Mardigin5-Jul-03 16:29
Mardigin5-Jul-03 16:29 
AnswerRe: design-time license??? Pin
Mardigin5-Jul-03 16:47
Mardigin5-Jul-03 16:47 
QuestionPointing a function pointer to a variable? Pin
Anonymous5-Jul-03 14:53
Anonymous5-Jul-03 14:53 
AnswerSorry I was logged out Pin
Aidman5-Jul-03 14:55
Aidman5-Jul-03 14:55 
GeneralRe: Sorry I was logged out Pin
Rick York5-Jul-03 21:54
mveRick York5-Jul-03 21:54 
I have done this in the past and it has worked very well. As previously noted, it is very risky.

In my case, I used this technique to invoke bits of machine code generated at run time by compiling a script language on the fly.

BYTE CodeBuf[] = { ... };  // your machine code goes here
typedef int (*CodeFunc)();
CodeFunc func = (CodeFunc)CodeBuf;
int returnvalue = (*func)( arg1, arg2 );




The Ten Commandments For C Programmers
GeneralRe: Sorry I was logged out Pin
Aidman6-Jul-03 7:12
Aidman6-Jul-03 7:12 
AnswerRe: Pointing a function pointer to a variable? Pin
Ryan Binns5-Jul-03 20:29
Ryan Binns5-Jul-03 20:29 
GeneralRe: Pointing a function pointer to a variable? Pin
Aidman6-Jul-03 7:05
Aidman6-Jul-03 7:05 
GeneralRe: Pointing a function pointer to a variable? Pin
Ryan Binns6-Jul-03 17:50
Ryan Binns6-Jul-03 17:50 
AnswerRe: Pointing a function pointer to a variable? Pin
peterchen5-Jul-03 21:51
peterchen5-Jul-03 21:51 
GeneralRe: Pointing a function pointer to a variable? Pin
Aidman6-Jul-03 7:08
Aidman6-Jul-03 7:08 
GeneralRe: Pointing a function pointer to a variable? Pin
peterchen6-Jul-03 22:17
peterchen6-Jul-03 22:17 
GeneralProtected member access, that's not protected Pin
pdunn5-Jul-03 14:39
pdunn5-Jul-03 14:39 
GeneralUnknown message Pin
Xakep5-Jul-03 12:54
Xakep5-Jul-03 12:54 
GeneralRe: Unknown message Pin
Ryan Binns5-Jul-03 20:36
Ryan Binns5-Jul-03 20:36 
QuestionMS Office 97 ActiveX Control? Pin
Mardigin5-Jul-03 12:15
Mardigin5-Jul-03 12:15 
QuestionHow do I stop a do/while loop using a toolbar Pin
Rno355-Jul-03 10:58
Rno355-Jul-03 10:58 
AnswerRe: How do I stop a do/while loop using a toolbar Pin
jhaga5-Jul-03 11:37
professionaljhaga5-Jul-03 11:37 
AnswerRe: How do I stop a do/while loop using a toolbar Pin
MAAK6-Jul-03 13:31
MAAK6-Jul-03 13:31 
GeneralUpdating dialogue Pin
andyg.1015-Jul-03 4:01
andyg.1015-Jul-03 4:01 
GeneralRe: Updating dialogue Pin
valikac5-Jul-03 7:09
valikac5-Jul-03 7:09 
Questionhow I can know which character can output? Pin
Alice805-Jul-03 3:58
Alice805-Jul-03 3:58 

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.