473,471 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[MFC] CDataExchange::Fail() fails

When I try to call CDataExchange::Fail() function in my member I get the
following list of errors.

<ERRORS>
error C2059: syntax error : 'constant'
error C2039: 'func1' : is not a member of 'CDataExchange'
error C2039: 'func2' : is not a member of 'CDataExchange'
error C2039: 'AfxMessageBox' : is not a member of 'CDataExchange'
error C2039: 'pDX' : is not a member of 'CDataExchange'
</ERRORS>

The problematic code is below.

<CODE>
CFoo::MyDDV( CDataExchange* pDX )
{
if( pDX->m_bSaveAndValidate )
{
if( ! func1() )
{
AfxMessageBox( "ERROR.", MB_ICONEXCLAMATION );
pDX->Fail();
}

}

}
</CODE>

What is wrong?

Thanks

Jan 29 '06 #1
1 2747
hokus wrote:
When I try to call CDataExchange::Fail() function in my member I get
the following list of errors.

[..]

What is wrong?


Wrong newsgroup. Try comp.os.ms-windows.programmer.tools.mfc or
microsoft.public.vc.mfc

V
Jan 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bill Cumming | last post by:
Is there something about C++ / C# interop that initializes the threading model to MTA so that OleInitialize will fail? I have a mostly C++ app that calls a single C# class DLL. Only one source...
0
by: ndessai | last post by:
Hi, CdataExchange member m_hWndLastControl is not present in new VC .NET compiler. I got suggestions to replace this with newly added member...
0
by: jbmeeh | last post by:
I have defined a managed C++ project to call into an unmanaged MFC project. The MFC project builds successfully. However, the build of the managed project fails because the linker cannot resolve the...
4
by: Werner | last post by:
Hello I have a VC7 App consisting of "old" MFC-Source and new Manged Source that uses an OC in one of its MFC-based dialogs When started, AfxOleInit (called in InitInstance) fails with a message...
6
by: William F. Kinsley | last post by:
I am thinking of porting an existing MFC application to MC++ and I have created a simple MFC application to test the environment. My sample MFC application is compilied with the /clr switch. I...
4
by: marco.nl | last post by:
it fails to retrieve newly intruduced data by the user. i tried this ... AfxGetApp()->WriteProfileString("Settings", "email", EDIT1); UpdateData(FALSE); and this.....
3
by: Sushil Srivastava | last post by:
Hi Guys, Would you be able to help me using C# GUI (with user interface component) in my MFC application. I have used managed extension, COM-interops, etc but problem is this C# component has...
0
by: Kostya | last post by:
Hello. We need to use UserControl-derived components written in C# in our existing MFC application. The components need to be inserted into existing ActiveX controls (written using MFC and ATL...
4
by: Ronny | last post by:
I have a mixed solution -most of its projects are in C# and some are in C++?MFC. Problem is that when I compile the solution with batch build the MFC files end up wit compilation errors, but if I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.