Coding for Windows and Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex

    #1

    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
  • Ron AF Greve

    #2
    Re: Coding for Windows and Linux



    Hi,

    "Alex" <samalex@gmail. comwrote in message
    news:32c7e991-00bc-4501-8634-bfcac5a951cd@c4 g2000hsg.google groups.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

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

    Online Resources for GIMP Developers


    Thanks --
    >
    Alex

    Regards, Ron AF Greve




    Comment

    • Default User

      #3
      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

      Comment

      • Kenneth Porter

        #4
        Re: Coding for Windows and Linux

        "Default User" <defaultuserbr@ yahoo.comwrote in news:5tg87bF1d9 6dpU1
        @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.

        Comment

        • =?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=

          #5
          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

          Comment

          • Alex

            #6
            Re: Coding for Windows and Linux

            On Dec 26, 5:59 pm, "Default User" <defaultuse...@ yahoo.comwrote:
            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.publi c.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 help to everyone who applied... I will probably
            start reading-up on wxWigits and Qt.

            Alex

            Comment

            Working...