Re: writing platform-portable code in vc++



Thanks for the reply.
I dont want to use C#. The only option for this project is C++.

Ab.

"Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx> wrote in message
news:O%23YbwiMAGHA.2912@xxxxxxxxxxxxxxxxxxxxxxx
> 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: Capturing USB data?
    ... I already know how to do this for MS Windows. ... platforms, especially Mac OS X, and Linux. ... to a USB port is a mouse or a keyboard. ...
    (microsoft.public.vc.mfc)
  • Re: Capturing USB data?
    ... I already know how to do this for MS Windows. ... platforms, especially Mac OS X, and Linux. ... to a USB port is a mouse or a keyboard. ... they wouldn't release until they had the Mac port, ...
    (microsoft.public.vc.mfc)
  • Re: .Net on Linux vs .Net on Windows
    ... I wouldn't bet on .NET with platforms other than Windows. ... it was siad then that it was designed to be port to multiple ...
    (microsoft.public.dotnet.framework)
  • Re: keeping ports open
    ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
    (microsoft.public.security)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)