473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

'Enable3dControls' : is not a member of 'CWinApp'

Hi All,

I'm in the middle of porting code to VS.NET from VS6.0. My code compiles
fine under DEBUG mode but under RELEASE mode I get a compile-time error:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039: 'Enable3dControls'
: is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

I have no direct reference to the depreciated 'Enable3dControls' function
call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge


Nov 16 '05 #1
5 5261
Hi All,
Its me again.

After further chasing this problem down I discovered if I make a new
solution with a single VC++ MFC Application and build it in DEBUG mode it
compiles fine. If I build the project in RELEASE mode, without editing any
of the files at all, I get the following error:

Compiling...
stdafx.cpp
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039: 'Enable3dControls'
: is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

(as descibed below). This is in a project that I did not edit any code. It
is giving me the errors "right out of the box" in RELEASE mode.
Is there something wrong with my VS.NET install?

Any body have any suggestions?

Dan

"Dan Trowbridge" <da************@hotmail.com> wrote in message
news:NZ**************@fe3.columbus.rr.com...
Hi All,

I'm in the middle of porting code to VS.NET from VS6.0. My code compiles
fine under DEBUG mode but under RELEASE mode I get a compile-time error:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039: 'Enable3dControls' : is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

I have no direct reference to the depreciated 'Enable3dControls' function
call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge

Nov 16 '05 #2
>After further chasing this problem down I discovered if I make a new
solution with a single VC++ MFC Application and build it in DEBUG mode it
compiles fine. If I build the project in RELEASE mode, without editing any
of the files at all, I get the following error:
Dan,

All I can say is that I've never come across this problem.

Did you choose any specific option when creating the MFC application?
Is there something wrong with my VS.NET install?


I can only assume there's something amiss, but quite how you've got
into this state I don't know.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #3
Hi Dan,
I found the answer to the in another newsgroup. It appears that you have to
comment out the following from afxwin2.inl (which is flawed in .net Studio
2003):
_AFXWIN_INLINE BOOL CWinApp::Enable3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable3dControlsStatic()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************@microsoft.com)
Subject: RE: Enable3dControls in MFC 7.0
View this article only
Newsgroups: microsoft.public.vc.mfc
Date: 2003-09-09 14:04:42 PST
Yes, this is due to a bug. You should be able to comment out
the Enable3dControl text lines in afxwin2.inl to get rid of the problem.
They are no longer used.

Thank you for using MSDN Managed Newsgroups!
Susan Huffaker [MSFT]
Microsoft DS Communities Team

"Dan Trowbridge" <da************@hotmail.com> wrote in message
news:NZ**************@fe3.columbus.rr.com...
Hi All,

I'm in the middle of porting code to VS.NET from VS6.0. My code compiles
fine under DEBUG mode but under RELEASE mode I get a compile-time error:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039: 'Enable3dControls' : is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

I have no direct reference to the depreciated 'Enable3dControls' function
call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge

Nov 16 '05 #4
Ken,

WOW Thanks. I search MSDN online and didn't see anything concernig
this. Where did you find the post you listed below?

Thanks Again
Dan

"Ken Ekberg" <ke********@streamserve.no.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
Hi Dan,
I found the answer to the in another newsgroup. It appears that you have to comment out the following from afxwin2.inl (which is flawed in .net Studio
2003):
_AFXWIN_INLINE BOOL CWinApp::Enable3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable3dControlsStatic()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************@microsoft.com)
Subject: RE: Enable3dControls in MFC 7.0
View this article only
Newsgroups: microsoft.public.vc.mfc
Date: 2003-09-09 14:04:42 PST
Yes, this is due to a bug. You should be able to comment out
the Enable3dControl text lines in afxwin2.inl to get rid of the problem.
They are no longer used.

Thank you for using MSDN Managed Newsgroups!
Susan Huffaker [MSFT]
Microsoft DS Communities Team

"Dan Trowbridge" <da************@hotmail.com> wrote in message
news:NZ**************@fe3.columbus.rr.com...
Hi All,

I'm in the middle of porting code to VS.NET from VS6.0. My code compiles fine under DEBUG mode but under RELEASE mode I get a compile-time error:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039:

'Enable3dControls'
: is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

I have no direct reference to the depreciated 'Enable3dControls' function call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge


Nov 16 '05 #5
Look in the message. :)

Newsgroups: microsoft.public.vc.mfc
Date: 2003-09-09 14:04:42 PST

Regards
Ken

"Dan Trowbridge" <da************@hotmail.com> wrote in message
news:Xh***************@fe3.columbus.rr.com...
Ken,

WOW Thanks. I search MSDN online and didn't see anything concernig
this. Where did you find the post you listed below?

Thanks Again
Dan

"Ken Ekberg" <ke********@streamserve.no.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
Hi Dan,
I found the answer to the in another newsgroup. It appears that you have

to
comment out the following from afxwin2.inl (which is flawed in .net Studio
2003):
_AFXWIN_INLINE BOOL CWinApp::Enable3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable3dControlsStatic()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************@microsoft.com)
Subject: RE: Enable3dControls in MFC 7.0
View this article only
Newsgroups: microsoft.public.vc.mfc
Date: 2003-09-09 14:04:42 PST
Yes, this is due to a bug. You should be able to comment out
the Enable3dControl text lines in afxwin2.inl to get rid of the problem.
They are no longer used.

Thank you for using MSDN Managed Newsgroups!
Susan Huffaker [MSFT]
Microsoft DS Communities Team

"Dan Trowbridge" <da************@hotmail.com> wrote in message
news:NZ**************@fe3.columbus.rr.com...
Hi All,

I'm in the middle of porting code to VS.NET from VS6.0. My code

compiles fine under DEBUG mode but under RELEASE mode I get a compile-time error:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039:

'Enable3dControls'
: is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'

I have no direct reference to the depreciated 'Enable3dControls' function call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge



Nov 16 '05 #6

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

Similar topics

2
by: Wenjie | last post by:
Hello, I read someone posted assertions that even the (public) member function is not static, there are probably only one copy of the code in the executable. Then except the...
3
by: Krish | last post by:
Hi There, I am having problem when I compile a code which I create to test a source file. The errors are : error C2144: syntax error : 'void' should be preceded by ';' error C2511: 'void...
0
by: bagnjm | last post by:
Hi, I have a huge VC6 MFC project that was converted to Visual Studio 2005 beta2. After the conversion, the application crashes because AfxGetThread() returns NULL and thus fail on...
7
by: Tony Maresca | last post by:
Hello. My C# based assembly is loaded into a commercial MFC based application as a 'plug-in' of sorts. The host app exposes limited API functionality, and one of the APIs it provides is a...
0
by: shiva | last post by:
I have developed a MDI application. In that I am had aproblem tried in another Application also same problem If i override the Application class's destruvtor it is giving this exception when i...
0
by: Milind Phadnis | last post by:
Hi, I have an application which was developed with Visual C++ 6.0 and MFC. In the application, the CWinApp::WinHelp method was overridden to support context sensitive help (F1 help). The...
3
by: bonk | last post by:
I have created an MFC project that links MFC MFC as shared dll and uses /MD . This MFC application loads another dll B via Loadlibrary that has /MD too and also links MFC as shared dll. Dll B again...
1
by: RiaanDP | last post by:
Hi, I'm currently working on integrating our company's management system into .NET. The system was originally created in Visual C++ 6.0, but new requirements point to that we may need to make use...
7
by: Immortal Nephi | last post by:
My project grows large when I put too many member functions into one class. The header file and source code file will have approximately 50,000 lines when one class contains thousand member...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.