Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHandling shell command line Pin
Member 230136023-Oct-05 10:56
Member 230136023-Oct-05 10:56 
AnswerRe: Handling shell command line Pin
David Crow24-Oct-05 3:43
David Crow24-Oct-05 3:43 
GeneralRe: Handling shell command line Pin
Allad24-Oct-05 6:51
Allad24-Oct-05 6:51 
GeneralRe: Handling shell command line Pin
David Crow24-Oct-05 7:07
David Crow24-Oct-05 7:07 
GeneralRe: Handling shell command line Pin
Allad26-Oct-05 9:04
Allad26-Oct-05 9:04 
GeneralRe: Handling shell command line Pin
Allad24-Oct-05 6:51
Allad24-Oct-05 6:51 
GeneralRe: Handling shell command line Pin
Allad24-Oct-05 6:51
Allad24-Oct-05 6:51 
Questionpointers to functions Pin
Mohammad A Gdeisat23-Oct-05 10:52
Mohammad A Gdeisat23-Oct-05 10:52 
Hi all,

I need to know that when i create a function, say:

int add(int,int);

then I create a pointer to that function:
int(*fp)(int,int); //I think this is the syntax...

the big question is that:

since this pointer points to data in memory, can I copy these data (the actual function code in memory) and copy it to a new location in memory?

I want to have to copies of the function in memory, and use them both.

if I can, how can I deteremine the length(in bytes) of that function? what are the explicit steps do I need to do?????????

Thanx all,
Mohammad Gdeisat




And ever has it been that love knows not its own depth until the hour of separation
AnswerRe: pointers to functions Pin
Chris Losinger23-Oct-05 14:53
professionalChris Losinger23-Oct-05 14:53 
GeneralRe: pointers to functions Pin
Mohammad A Gdeisat24-Oct-05 7:09
Mohammad A Gdeisat24-Oct-05 7:09 
QuestionCombo Box, SetCurSel ( 0 ) Pin
kevincwong23-Oct-05 10:01
kevincwong23-Oct-05 10:01 
AnswerRe: Combo Box, SetCurSel ( 0 ) Pin
Graham Bradshaw23-Oct-05 10:22
Graham Bradshaw23-Oct-05 10:22 
AnswerRe: Combo Box, SetCurSel ( 0 ) Pin
Mohammad A Gdeisat23-Oct-05 10:43
Mohammad A Gdeisat23-Oct-05 10:43 
GeneralRe: Combo Box, SetCurSel ( 0 ) Pin
kevincwong23-Oct-05 21:14
kevincwong23-Oct-05 21:14 
GeneralRe: Combo Box, SetCurSel ( 0 ) Pin
S Douglas24-Oct-05 0:17
professionalS Douglas24-Oct-05 0:17 
GeneralRe: Combo Box, SetCurSel ( 0 ) Pin
kevincwong24-Oct-05 6:07
kevincwong24-Oct-05 6:07 
GeneralRe: Combo Box, SetCurSel ( 0 ) Pin
S Douglas24-Oct-05 12:24
professionalS Douglas24-Oct-05 12:24 
QuestionCListCtrl hook error Pin
Member 230136023-Oct-05 6:45
Member 230136023-Oct-05 6:45 
AnswerRe: CListCtrl hook error Pin
steven_wsy23-Oct-05 23:38
steven_wsy23-Oct-05 23:38 
QuestionCTreeView Form Pin
Gamil Mohamad23-Oct-05 4:21
Gamil Mohamad23-Oct-05 4:21 
AnswerRe: CTreeView Form Pin
Member 230136023-Oct-05 6:51
Member 230136023-Oct-05 6:51 
AnswerRe: CTreeView Form Pin
Mohammad A Gdeisat23-Oct-05 10:46
Mohammad A Gdeisat23-Oct-05 10:46 
Question16 Byte alignment support Pin
Remco Hoogenboezem23-Oct-05 4:15
Remco Hoogenboezem23-Oct-05 4:15 
QuestionCGridCtrl Resizing Columns Pin
markdanielmaltby23-Oct-05 3:00
markdanielmaltby23-Oct-05 3:00 
QuestionProblems with DirectX 8 SDK Pin
dudeua23-Oct-05 1:20
dudeua23-Oct-05 1:20 

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.