473,804 Members | 3,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'Enable3dContro ls' : 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\afxwin 2.inl(1034) : error C2039: 'Enable3dContro ls'
: 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 'Enable3dContro ls' function
call. Am I referencing an old header file under RELEASE mode only?

Any ideas?

Thanks
Dan Trowbridge


Nov 16 '05 #1
5 5306
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\afxwin 2.inl(1034) : error C2039: 'Enable3dContro ls'
: 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.colu mbus.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\afxwin 2.inl(1034) : error C2039: 'Enable3dContro ls' : 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 'Enable3dContro ls' 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::Enable 3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable 3dControlsStati c()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************ @microsoft.com)
Subject: RE: Enable3dControl s in MFC 7.0
View this article only
Newsgroups: microsoft.publi c.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.colu mbus.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\afxwin 2.inl(1034) : error C2039: 'Enable3dContro ls' : 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 'Enable3dContro ls' 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********@str eamserve.no.com > wrote in message
news:eg******** ******@tk2msftn gp13.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::Enable 3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable 3dControlsStati c()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************ @microsoft.com)
Subject: RE: Enable3dControl s in MFC 7.0
View this article only
Newsgroups: microsoft.publi c.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.colu mbus.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\afxwin 2.inl(1034) : error C2039:

'Enable3dContro ls'
: 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 'Enable3dContro ls' 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.publi c.vc.mfc
Date: 2003-09-09 14:04:42 PST

Regards
Ken

"Dan Trowbridge" <da************ @hotmail.com> wrote in message
news:Xh******** *******@fe3.col umbus.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********@str eamserve.no.com > wrote in message
news:eg******** ******@tk2msftn gp13.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::Enable 3dControls()
{ return TRUE; }
#ifndef _AFXDLL
_AFXWIN_INLINE BOOL CWinApp::Enable 3dControlsStati c()
{ return TRUE; }
#endif

The answer from Microsoft is pasted below.

Good luck,
Ken Ekberg

From: Susan Huffaker (su************ @microsoft.com)
Subject: RE: Enable3dControl s in MFC 7.0
View this article only
Newsgroups: microsoft.publi c.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.colu mbus.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\afxwin 2.inl(1034) : error C2039:

'Enable3dContro ls'
: 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 'Enable3dContro ls' 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
2845
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 dependency/independency on the lifecycle of the object, what is the significant differences between public member functions and public static member functions?
3
2683
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 CNewServiceApp::function(SER,DWORD,LPVOID)' : overloaded member function not found in 'CNewServiceApp' Can someone help me to solve this? Thanks,
0
3369
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 pThread->InitInstance() inside AfxWinMain(). I have a CWinApp derived class (e.g. CBaseWinApp) exported from a DLL. This derived class is inherited inside the main app (e.g. CDerivedWinApp : public CBaseApp) and serves as the global app.
7
3815
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 static exported unmanaged C++ function that returns a pointer to its CWinApp object. From my assembly, I need to P/Invoke the following member on the instance of the CWinApp:
0
1059
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 close my application it is throwing an exception. The exception is like as follows The Instruction at "0x002f25c9" referenced memory at "0x08000000". The memory could not be "written" The instuction at "0x77f87c53" referenced memory at...
0
2070
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 application was recently upgraded to Visual Studio .Net 2003. The help links no longer work. The WinHelp method in my derived application class no longer gets called, when the user presses F1 in the application as before. The application instead looks...
3
12633
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 loads dll C that also uses MFC as a shared DLL dll and also has /MD. Also the MFC app statically links to a .lib that has MFC linked as shared dll and has /MD Now for some odd reason when the constructor of my MFC app is called...
1
1939
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 of .NET Web Services. I've already succeeded in getting all our system code to compile into a new C++ web service. The problem is that I need to "start" a the system from within the Web Service (I'm currently implementing this code in the...
7
3977
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 functions. Is it normal how C++ Compiler can compile large class without any problem? Didn't C++ Compiler have rules to limit the number of member functions? One big object has complex operations how member variables and member functions can be...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10315
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.