Re: writing platform-portable code in vc++

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
>
>


.



Relevant Pages

  • Re: Initial experiences moving to Mac
    ... 2Ghz Intel Core Duo processor a few weeks ago. ... Mac platform is to replace both my Linux boxes ... and my Windows boxes (for music and occasionally other stuff Linux ...
    (comp.sys.mac.advocacy)
  • Re: The Palladium (NGSCB) rollout has begun!!!
    ... >>willing to make the phones with Windows CE. ... Can you imagine a WindowsCE based cellphone? ... In most ways Linux ... Look at Mac Office and IE. ...
    (comp.os.linux.misc)
  • Re: Hacked again
    ... ruled out a Mac, but want to know if I'm overlooking something. ... many Windows games do not have Mac or Linux ports. ...
    (alt.games.warcraft)
  • Re: OT: Lets welcome Apple to the 80s
    ... When I used Mac OS, I found it to be a terrible resource hog, unable ... to play modest video full-screen on a mac mini ... you're working in multiple windows, ... linux, but did come across a whole mass of disadvantages, so why ...
    (rec.autos.sport.f1)
  • Re: Should Apple do away with OS X?
    ... good enough for the majority of Photoshop users to be using Windows, ... then clearly it would be good enough for the Mac users. ... Where You perceive Windows or Linux to be better, ... at Apple because they will not port OS X to Linux. ...
    (comp.sys.mac.advocacy)