PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Coding for Windows and Linux
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Coding for Windows and Linux

Réponse
 
LinkBack Outils de la discussion
Vieux 26/12/2007, 22h58   #1
Alex
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Coding for Windows and Linux

Hi,

About 5 months ago I changed professions and moved from being a web
programmer (ColdFusion mainly) to a Visual Basic.Net app coder, and
though this is my first time to do application coding in a decade or
more, I'm loving it! It's also my first time to really use OOP, which
I'm slowly but surely getting the hang of.

Though I've started coding in VB during the day, my home systems are
all Linux. If I wanted to start developing apps for both Linux and
Windows, I assume C++ is the best choice. So a number of questions
related to this:

1) I assume code can not be copied verbatim between GCC and VC++, but
just how compatible are they?
2) For GCC under Linux I know I'll need a graphical toolkit/framework
like tkl/tk or QT, but do these port to Windows?
3) Are there any open source apps anyone can direct me to that do
this? I'd love to peak under the hood.

Thanks --

Alex
  Réponse avec citation
Vieux 26/12/2007, 23h08   #2
Ron AF Greve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Coding for Windows and Linux



Hi,

"Alex" <samalex@gmail.com> wrote in message
news:32c7e991-00bc-4501-8634-bfcac5a951cd@c4g2000hsg.googlegroups.com...
> Hi,
>
> About 5 months ago I changed professions and moved from being a web
> programmer (ColdFusion mainly) to a Visual Basic.Net app coder, and
> though this is my first time to do application coding in a decade or
> more, I'm loving it! It's also my first time to really use OOP, which
> I'm slowly but surely getting the hang of.
>
> Though I've started coding in VB during the day, my home systems are
> all Linux. If I wanted to start developing apps for both Linux and
> Windows, I assume C++ is the best choice. So a number of questions
> related to this:
>
> 1) I assume code can not be copied verbatim between GCC and VC++, but
> just how compatible are they?

As long as you stick to pure C++ they are very compatible. I keep a library
of functions around using sockets, archives, png wrapper etc. that I can
compile on linux/unix as well as on microsoft. Most unix/linux function
calls are also available on MS-Windows.

> 2) For GCC under Linux I know I'll need a graphical toolkit/framework
> like tkl/tk or QT, but do these port to Windows?

I never wrote graphical stuff that was supposed to work on MS-Windows and
X-Windows (I did however wrote things in Motiff and lots of things in
MS-Windows (it is pretty UNportable :-( ).

You might want to look at
http://www.wxwindows.org/

> 3) Are there any open source apps anyone can direct me to that do
> this? I'd love to peak under the hood.

gtk (gimp toolkit) seems to provide a layer that can be used on both. You
might want to look at gimp (a great free photo manipulating program).

http://developer.gimp.org/


> Thanks --
>
> Alex



Regards, Ron AF Greve

http://www.InformationSuperHighway.eu


  Réponse avec citation
Vieux 26/12/2007, 23h59   #3
Default User
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Coding for Windows and Linux

Alex wrote:


> 1) I assume code can not be copied verbatim between GCC and VC++, but
> just how compatible are they?


What do you mean by "code". The topic of this group is ISO standard
C++. Code written in standard C++ should compile under both, barring
compiler deficencies (older versions don't always implement the
standard correctly).

> 2) For GCC under Linux I know I'll need a graphical toolkit/framework
> like tkl/tk or QT, but do these port to Windows?


Not topical for this group. Discuss this in a newsgroup dealing with
your target system.

I recommend reading the newsgroup FAQ, especially the "how to post"
section.



Brian
  Réponse avec citation
Vieux 27/12/2007, 03h03   #4
Kenneth Porter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Coding for Windows and Linux

"Default User" <defaultuserbr@yahoo.com> wrote in news:5tg87bF1d96dpU1
@mid.individual.net:

>> 2) For GCC under Linux I know I'll need a graphical toolkit/framework
>> like tkl/tk or QT, but do these port to Windows?

>
> Not topical for this group. Discuss this in a newsgroup dealing with
> your target system.


Is there a newsgroup for "portable frameworks", that covers things like Qt
and wxWidgets and perhaps similar libraries for other languages? I don't
know of any. I think you have to know ahead of time which language and
framework you're going to use ahead of time, and then go find support for
the specific one.
  Réponse avec citation
Vieux 27/12/2007, 12h04   #5
Erik Wikström
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Coding for Windows and Linux

On 2007-12-26 23:58, Alex wrote:
> Hi,
>
> About 5 months ago I changed professions and moved from being a web
> programmer (ColdFusion mainly) to a Visual Basic.Net app coder, and
> though this is my first time to do application coding in a decade or
> more, I'm loving it! It's also my first time to really use OOP, which
> I'm slowly but surely getting the hang of.
>
> Though I've started coding in VB during the day, my home systems are
> all Linux. If I wanted to start developing apps for both Linux and
> Windows, I assume C++ is the best choice. So a number of questions
> related to this:
>
> 1) I assume code can not be copied verbatim between GCC and VC++, but
> just how compatible are they?


As portable as the code you write, if you do not do anything platform
specific in your code you should be able to just copy, compile, and run.

> 2) For GCC under Linux I know I'll need a graphical toolkit/framework
> like tkl/tk or QT, but do these port to Windows?


Do not know about tkl/tk, but Qt works find on both, as does wxWidgets.


--
Erik Wikström
  Réponse avec citation
Vieux 27/12/2007, 20h05   #6
Alex
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Coding for Windows and Linux

On Dec 26, 5:59pm, "Default User" <defaultuse...@yahoo.com> wrote:
> Alexwrote:
> > 1) I assume code can not be copied verbatim between GCC and VC++, but
> > just how compatible are they?

>
> What do you mean by "code". The topic of this group is ISO standard
> C++. Code written in standard C++ should compile under both, barring
> compiler deficencies (older versions don't always implement the
> standard correctly).
>
> > 2) For GCC under Linux I know I'll need a graphical toolkit/framework
> > like tkl/tk or QT, but do these port to Windows?

>
> Not topical for this group. Discuss this in a newsgroup dealing with
> your target system.
>
> I recommend reading the newsgroup FAQ, especially the "how to post"
> section.
>
> Brian



Hi Brian,

My apologies... I did read the FAQ before posting, and I thought my
post was within the scope of this group. If not, I stand corrected.
I assumed those in microsoft.public.vc.language would be familiar with
only VC++ and gnu.gcc seems to not be very active now'days.
comp.lang.c++ came-up most often when searching for comparisons, but I
never saw my specific question, which prompted the post.

Thanks for all the to everyone who applied... I will probably
start reading-up on wxWigits and Qt.

Alex

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15478 seconds with 14 queries