Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UPDATE - One final suggestion Pin
David Nash22-Feb-05 2:31
David Nash22-Feb-05 2:31 
GeneralInsert a dialog in MDI!! Pin
20-Feb-05 18:12
suss20-Feb-05 18:12 
GeneralRe: Insert a dialog in MDI!! Pin
Aamir Butt20-Feb-05 22:06
Aamir Butt20-Feb-05 22:06 
GeneralRe: Insert a dialog in MDI!! Pin
Maximilien21-Feb-05 0:30
Maximilien21-Feb-05 0:30 
GeneralEnabling HotKeys in an MFC based application Pin
PrashantJ20-Feb-05 17:47
PrashantJ20-Feb-05 17:47 
GeneralRe: Enabling HotKeys in an MFC based application Pin
ThatsAlok20-Feb-05 19:10
ThatsAlok20-Feb-05 19:10 
GeneralRe: Enabling HotKeys in an MFC based application Pin
22491720-Feb-05 19:37
22491720-Feb-05 19:37 
GeneralA Simple Problem Pin
SeanSheehan20-Feb-05 17:46
SeanSheehan20-Feb-05 17:46 
Here is the scenario. I'm wondering why it won't work and how to fix it. Ms Visual C++.net. Create dialog based MFC Application called MyProject. Add function called MyFunction declared at top of ProjectDlg.cpp as follows:

int MyFunction(int num1, int num2);

Add defintion to bottom of ProjectDlg.cpp file:

int MyFunction(int a, int b)
{
UpDateData(TRUE);
return a+b;
}

Use as follows inside a button:

sum = MyFunction(int num1, int num2);

This doesn't work. I get the following message:
error C3861: 'UpDateData': identifier not found, even with argument-dependent lookup

Is there some way I should declare or define MyFunction in order that it can use the UpdateData function within my function?
GeneralRe: A Simple Problem Pin
22491720-Feb-05 18:32
22491720-Feb-05 18:32 
GeneralRe: A Simple Problem Pin
SeanSheehan20-Feb-05 20:26
SeanSheehan20-Feb-05 20:26 
GeneralRe: A Simple Problem Pin
Jetli Jerry20-Feb-05 20:59
Jetli Jerry20-Feb-05 20:59 
GeneralRe: A Simple Problem Pin
SeanSheehan20-Feb-05 21:08
SeanSheehan20-Feb-05 21:08 
GeneralRe: A Simple Problem Pin
22491720-Feb-05 21:05
22491720-Feb-05 21:05 
GeneralRe: A Simple Problem Pin
SeanSheehan20-Feb-05 21:23
SeanSheehan20-Feb-05 21:23 
GeneralRe: A Simple Problem Pin
22491720-Feb-05 21:41
22491720-Feb-05 21:41 
GeneralRe: A Simple Problem Pin
Jetli Jerry21-Feb-05 3:36
Jetli Jerry21-Feb-05 3:36 
GeneralRe: A Simple Problem Pin
22491721-Feb-05 4:55
22491721-Feb-05 4:55 
GeneralRe: A Simple Problem Pin
Wes Aday21-Feb-05 4:59
professionalWes Aday21-Feb-05 4:59 
GeneralRe: A Simple Problem Pin
eli1502197922-Feb-05 3:46
eli1502197922-Feb-05 3:46 
GeneralActiveX control and Document/view architecture Pin
Anand for every one20-Feb-05 17:15
Anand for every one20-Feb-05 17:15 
GeneralVisual C++, mysql, from scratch Pin
Devanchya20-Feb-05 15:37
Devanchya20-Feb-05 15:37 
Generalregsvr32.exe Pin
includeh1020-Feb-05 15:16
includeh1020-Feb-05 15:16 
GeneralRe: regsvr32.exe Pin
Igor Vigdorchik20-Feb-05 15:30
Igor Vigdorchik20-Feb-05 15:30 
GeneralRe: regsvr32.exe Pin
includeh1020-Feb-05 15:55
includeh1020-Feb-05 15:55 
GeneralRe: regsvr32.exe Pin
Igor Vigdorchik20-Feb-05 16:38
Igor Vigdorchik20-Feb-05 16:38 

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.