473,406 Members | 2,698 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,406 software developers and data experts.

Getting Started w/ Standard C++ in Microsoft VC++ 6.0?

Hi,

I have a few years of experience using MFC and Microsoft Visual C++
6.0. As my company gets further into the software business they now
want to start moving away from MFC, and use pure Standard C++. I have a
code project created in Microsoft Visual C++ that needs MFC stripped out
of it. Not a huge project - only about 10 or so files.

I've been reading a bit about Standard C++, and I was wondering if
anyone could point me to some documents or help as to how to start using
Standard C++ from within Microsoft Visual C++ 6.0. For starters, I
realize all my "CStrings" will have to become
"string" File by file I will have to remove CStrings, makes sense.

I understand about using the #include <xyz>. And I see that I will have
to use: "using namespace std" But I am not sure what else I have to set
up in the Microsoft Developer Studio. Perhaps I have to start a new
project/workspace that is just a W32 Application? What do I need to
link to in the Project Settings > Link tab? What else do I need to do
to so that it recognizes the namespace "std" ?

I realize this is probably a very basic question, but I am confused as
to where to start. Anything to get me started will help.

Thanks,
Bill

bh**@eaw.com
Jul 22 '05 #1
3 1616

"Bill Hoy" <bh**@eaw.com> wrote in message news:41***************@eaw.com...
Hi,

I have a few years of experience using MFC and Microsoft Visual C++
6.0. As my company gets further into the software business they now
want to start moving away from MFC, and use pure Standard C++. I have a
code project created in Microsoft Visual C++ that needs MFC stripped out
of it. Not a huge project - only about 10 or so files.

I've been reading a bit about Standard C++, and I was wondering if
anyone could point me to some documents or help as to how to start using
Standard C++ from within Microsoft Visual C++ 6.0. For starters, I
realize all my "CStrings" will have to become
"string" File by file I will have to remove CStrings, makes sense.

I understand about using the #include <xyz>. And I see that I will have
to use: "using namespace std" But I am not sure what else I have to set
up in the Microsoft Developer Studio. Perhaps I have to start a new
project/workspace that is just a W32 Application? What do I need to
link to in the Project Settings > Link tab? What else do I need to do
to so that it recognizes the namespace "std" ?

I realize this is probably a very basic question, but I am confused as
to where to start. Anything to get me started will help.

Thanks,
Bill


First, let me strongly suggest that you upgrade to a later VC++ version!
Version 6 is know to be non-conforming in many respects (that is, it doesn't
correctly follow the standard to which you say you're going to be adhering).

Next, you'd be best off asking this in a vc++ newsgroup, (which are
available on the news.microsoft.com newserver).

I do think that you're correct that starting a new project is in order, but
as to the type, that will depend on your requirements. For example, if
you're *really* sticking to the standard, and not having any Windows GUI
code, then a console (or even an empty) project would be better, most
likely. If you use a Win32 project, I think that means you're using some of
the WIndows GUI code, which is *not* part of the standard, since the
standard has no GUI concepts. BUt as I said, a Microsoft newsgroup is a
better place for such info.

-Howard


Jul 22 '05 #2
Howard is right, before you can even begin to write "standards
compliant" C++ you need the latest MS compiler.

Jul 22 '05 #3
Bill Hoy wrote:
Hi,

I have a few years of experience using MFC and Microsoft Visual C++
6.0. As my company gets further into the software business they now
want to start moving away from MFC, and use pure Standard C++. I have a
code project created in Microsoft Visual C++ that needs MFC stripped out
of it. Not a huge project - only about 10 or so files.

I've been reading a bit about Standard C++, and I was wondering if
anyone could point me to some documents or help as to how to start using
Standard C++ from within Microsoft Visual C++ 6.0. For starters, I
realize all my "CStrings" will have to become
"string" File by file I will have to remove CStrings, makes sense.

I understand about using the #include <xyz>. And I see that I will have
to use: "using namespace std" But I am not sure what else I have to set
up in the Microsoft Developer Studio. Perhaps I have to start a new
project/workspace that is just a W32 Application? What do I need to
link to in the Project Settings > Link tab? What else do I need to do
to so that it recognizes the namespace "std" ?

I realize this is probably a very basic question, but I am confused as
to where to start. Anything to get me started will help.


You can wedge in another compiler ( say Comeau's which is very
conforming ) as a 'tool', and keep the VC++ IDE etc. But as that's OT
here, I suggest http://www.comeaucomputing.com/ , or email me.

If it's 'only about 10 or so files' then the other alternative is to
keep the design ideas and rewrite de-novo.

--

Cheers
--
Hewson::Mike
"This letter is longer than usual because I lack the time to make it
shorter" - Blaise Pascal
Jul 22 '05 #4

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

Similar topics

8
by: Eric | last post by:
I have a book Learn C in 21 days. But I'm using visual C++ as the compiler. Here is my code. What do I need to change to make it work with Visual C++. // list_it.cpp : Defines the entry point...
80
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
2
by: Brian | last post by:
In particular, this question goes out to the Microsoft C++ development team. Back in June, Ronald Laeremans posted the following message. Has the optimizing compiler been included with the...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
7
by: Scamjunk | last post by:
Hi, I am basically a linux person being made to work on windows. and i have been given a limited version of the windows i guess - for it doesn't provide a proper help option :(. I sorely miss...
5
by: christian | last post by:
Hi! I have a problem with a template function im MSVC6 the template function is defined as: template <__Type1, __Type2> int MyFunc(int param1, double param2) {__Type1 var1; __Type2 var2; ...
7
by: Mihajlo Cvetanović | last post by:
Hi all, I've been trying to find some info on Visual C++ 2005 Standard on Microsoft's site, but wasn't able to find any. There's only VC++ 2005 Express Edition, and Visual Studio 2005 Standard,...
9
by: Edward Diener | last post by:
Are there any differences between the version of C++/CLI as implemented in Visual C++ 2005 and the ECMA-372 C++/CLI Language Specification of December 2005 freely downloaded from ECMA ? Asking...
12
by: Premal | last post by:
Hi, I tried to make delete operator private for my class. Strangely it is giving me error if I compile that code in VC++.NET. But it compiles successfully on VC++6.o. Can anybody give me inputs...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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,...

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.