Click here to Skip to main content
15,915,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: open up a file as read-only Pin
elephantstar27-May-05 8:30
elephantstar27-May-05 8:30 
GeneralRe: open up a file as read-only Pin
David Crow27-May-05 8:55
David Crow27-May-05 8:55 
GeneralRe: open up a file as read-only Pin
elephantstar27-May-05 9:50
elephantstar27-May-05 9:50 
GeneralRe: open up a file as read-only Pin
rocky_pulley27-May-05 16:38
rocky_pulley27-May-05 16:38 
GeneralRe: open up a file as read-only Pin
elephantstar31-May-05 10:09
elephantstar31-May-05 10:09 
GeneralRe: open up a file as read-only Pin
rocky_pulley27-May-05 7:59
rocky_pulley27-May-05 7:59 
GeneralCFile::modeRead Pin
bghuang28-May-05 2:40
bghuang28-May-05 2:40 
GeneralRe: CFile::modeRead Pin
elephantstar31-May-05 6:33
elephantstar31-May-05 6:33 
Generalmianframe pointer Pin
Anonymous27-May-05 6:44
Anonymous27-May-05 6:44 
GeneralRe: mianframe pointer Pin
toxcct27-May-05 6:51
toxcct27-May-05 6:51 
GeneralRe: mianframe pointer Pin
David Crow27-May-05 8:05
David Crow27-May-05 8:05 
Generalint (*loop)(); Pin
zuschauer198027-May-05 5:57
zuschauer198027-May-05 5:57 
GeneralRe: int (*loop)(); Pin
Chris Losinger27-May-05 6:28
professionalChris Losinger27-May-05 6:28 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 6:30
toxcct27-May-05 6:30 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 6:38
zuschauer198027-May-05 6:38 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 6:48
toxcct27-May-05 6:48 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 6:57
zuschauer198027-May-05 6:57 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 7:07
toxcct27-May-05 7:07 
zuschauer1980 wrote:
hm... thx for your time.

no problem, i'm here your servant sire :->

i'd like to add a detail however.

we use such function to have a "changing behavior".
if you know a little about virtual functions on C++, or Delegates in VB, it is quite the same.

it permits you for a same call to use different functions.

for example :
<font color=blue>int</font> iVal = 0;
<font color=blue>int</font> Func1() {
    <font color=blue>return</font> 1;
}
<font color=blue>int</font> Func2() {
    <font color=blue>return</font> 2;
}
 
abc TmpAbc;
 
TmpAbc.Loop = &Func1;
iVal = TmpAbc.Loop();    <font color=green>// Loop() returns 1</font>
 
TmpAbc.Loop = &Func2;
iVal = TmpAbc.Loop();    <font color=green>// Loop() returns 2</font>

hope this help more now...


TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 7:37
zuschauer198027-May-05 7:37 
GeneralRe: int (*loop)(); Pin
Chris Losinger27-May-05 8:44
professionalChris Losinger27-May-05 8:44 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 9:13
zuschauer198027-May-05 9:13 
GeneralSurvey of Technique Questions.. Pin
Brian R27-May-05 5:45
Brian R27-May-05 5:45 
GeneralRe: Survey of Technique Questions.. Pin
toxcct27-May-05 6:35
toxcct27-May-05 6:35 
GeneralRe: Survey of Technique Questions.. Pin
Brian R27-May-05 9:12
Brian R27-May-05 9:12 
GeneralRe: Survey of Technique Questions.. Pin
Ravi Bhavnani27-May-05 13:53
professionalRavi Bhavnani27-May-05 13:53 

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.