Re: writing platform-portable code in vc++
- From: "Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx>
- Date: Wed, 14 Dec 2005 08:08:54 -0800
How portable your code is depends on how machine independent the application
will be. This of course depends on the purpose and goals of the application.
For example, if your application is very graphic intensive, then you will
want to give great consideration in separating the graphic code from the
logic code. Typically, only logic code tends to port well.
As for VS.NET. If you stick to the C++ standard VS C++.NET supports it. But
be careful about getting persuaded by conveniences that this particular
compiler and/or development environment has to offer. For example, you might
be tempted to code in C# instead of C++, since it does have some nice
syntactical features. But know that C# only runs on the Windows platform.
This applies to almost anything in the .NET Framework classes.
That being said, you could still potentially use VS.NET and all it has to
offer, just realize that every feature you use that in not part of the C++
standard will likely need to be re-written or emulated on other platforms
when you port...
[==P==]
"Abubakar" <abubakarm@xxxxxxxxx> wrote in message
news:ewdd68KAGHA.4004@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> we are finding out ways in which we could develop libraries that could be
> written in c++ in a way that we can use them in windows, linux, and mac
> os.
> We want to write portable code, so that it could be build on mac os,
> linux,
> and windows. The code would involve lots of multi-threading and
> network/socket programming. Since I have read that vc++ 2k5 supports a lot
> of standard c++ stuff, can it help me to acheive what I want or I will
> have
> to use something like gnu c++ compiler like gcc I guess. We wanna start
> with
> writing application on windows os, and than when its completed, port the
> code to run on linux and than on mac os. Need a lot of guidance. Also
> please
> mention any books of c++ that would allow us to do socket and
> multi-threading programming for multiple platforms. Thanks.
>
> Abubakar.
>
>
.
- Follow-Ups:
- Re: writing platform-portable code in vc++
- From: Abubakar
- Re: writing platform-portable code in vc++
- From: Rodrigo Corral [MVP]
- Re: writing platform-portable code in vc++
- References:
- writing platform-portable code in vc++
- From: Abubakar
- writing platform-portable code in vc++
- Prev by Date: Re: .NET version of INI files ?
- Next by Date: Re: Install VC6 after VC7 ?
- Previous by thread: writing platform-portable code in vc++
- Next by thread: Re: writing platform-portable code in vc++
- Index(es):
Relevant Pages
|