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

C / C++ / MFC

 
GeneralRe: Persisting MFC dialog's object properties Pin
Ryan Binns5-Jul-03 20:22
Ryan Binns5-Jul-03 20:22 
GeneralRe: Persisting MFC dialog's object properties Pin
Rage6-Jul-03 21:01
professionalRage6-Jul-03 21:01 
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 
Hi, all Smile | :)

How do you “point” a function pointer to an array of byte code? I have converted a series of assembly instructions to byte codes (I don’t want to use inline assembly), and want my function pointer to point to that array of byte codes. The problem is that the VC++ compiler won’t cast from chars to the defined function pointer. The following code might explain better:

<br />
int (* FuncPtr)(int x, int y); // the function pointer<br />
char ByteCode[] = {...}; // the byte code array<br />
<br />
FuncPtr = ByteCode; // point the function pointer to the byte code array<br />


The problem is that VC++ won’t covert from char array to the function definition. I tried adding “(void *)” when pointing but it still wouldn’t convert. Frown | :(
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 
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 

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.