C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

legacy code compatability mode

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Mark
Guest





PostPosted: Sun Sep 26, 2004 2:59 pm    Post subject: legacy code compatability mode Reply with quote



[sorry for the compiler specific question]

In the Visual C++ 7.1 compiler is there a legacy code mode? This is
for non-GUI code. Its easy enough to bring the project in but of
course I get a lot of clashes with ISO std C++ conventions.

example) old style std library includes such as iostream.h

thanks
Back to top
Phlip
Guest





PostPosted: Sun Sep 26, 2004 3:11 pm    Post subject: Re: legacy code compatability mode Reply with quote



Mark wrote:

Quote:
[sorry for the compiler specific question]

In the Visual C++ 7.1 compiler is there a legacy code mode? This is
for non-GUI code. Its easy enough to bring the project in but of
course I get a lot of clashes with ISO std C++ conventions.

example) old style std library includes such as iostream.h

VC++ has no "legacy mode". Think about it - the compiler's environment would
need to somehow track every possible combination of SGI and pre-Standard
STL, just to hit the exact mix you got.

Fix the actual code. If you hesitate, this is a sign your code has no unit
tests. To fix your real problem, write what it does again, bit by bit, into
a new project. Make sure that project goes one feature at a time, and add a
test each feature before pulling in the next feature.

Use the legacy code only as a cheat sheet, to show you things like how to
call SetPriorityClass() or RasEnumConnections().

Along the way, write the cleanest code you can, following rules such as
found in style guidelines like /Code Complete 2nd Ed/ by Steve McConnell.
And _frequently_ review your current progress and your code's state with
your boss and colleagues.

--
Phlip
http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces



Back to top
Mike Wahler
Guest





PostPosted: Sun Sep 26, 2004 3:14 pm    Post subject: Re: [OT, redir, link] legacy code compatability mode Reply with quote



"Mark" <prenom_nomus (AT) yahoo (DOT) com> wrote

Quote:
[sorry for the compiler specific question]

Compiler-specifics are not topical here. Don't
apologize, just don't post material about it here.
Since this group is not about such material, there's
no reason to expect that any answers will be correct
or useful.

Quote:
In the Visual C++ 7.1 compiler is there a legacy code mode?

Were I needing to know the answer to this, I'd ask in
a group where Visual C++ is topical. (See www.msdn.microsoft.com
for technical info about MS products, and a list of newsgroups
about them.

-Mike



Back to top
John Harrison
Guest





PostPosted: Sun Sep 26, 2004 7:06 pm    Post subject: Re: legacy code compatability mode Reply with quote


"Mark" <prenom_nomus (AT) yahoo (DOT) com> wrote

Quote:
[sorry for the compiler specific question]

In the Visual C++ 7.1 compiler is there a legacy code mode? This is
for non-GUI code. Its easy enough to bring the project in but of
course I get a lot of clashes with ISO std C++ conventions.

example) old style std library includes such as iostream.h

thanks

Fix the code. Unless your code is really really bad it should be a fairly
painless process. Ask here if you need any help on this.

john



Back to top
Sachin Garg
Guest





PostPosted: Mon Sep 27, 2004 3:52 am    Post subject: Re: legacy code compatability mode Reply with quote

If your only concern is getting "depriciated" warnings (C4995), you
can probably go to project properties > C++ > Advanced, and disable
this warning.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.