#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    227
    Rep Power
    0

    [Windows/ Linux] Deciding upon languages/ tools/ libs/


    Hi,
    Im trying to code a circuit simulator. I need to draw symbols of resistors, capacitors etc on screen.

    I want the software to be available on linux and windows both.

    I am looking at Win32 with GDI as a possible option, but it only works with Windows. I do not need too abstract a library. I want to code at the very basic level possible. For this reason, I was planning to code the app in Win32, not using MFC or anything, until I felt the need to make it available in linux as well.

    Also, I have seen applications whose source is available for windows as well as linux. Is it possible to code once and have the application available on multiplatforms?

    I'm guessing, do I need to compile the same source using gcc for different platforms?

    Also, in which languages/ platforms are most professional Windows applications written in? (Please exclude Java)

    Many thanks!
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    If you use wxwidgets (see these screenshots for an idea of capability) as your GUI library, then in theory you just copy the code to the platform in question, download the wxwidgets library for that platform, compile and you're up and running.

    You should obviously keep testing on both systems as you go, so you can iron out any small wrinkles before they develop into something serious.

    There are other cross-platform GUI toolkits as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    227
    Rep Power
    0
    thanks, that seems better than Qt.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    227
    Rep Power
    0
    looks like i'd hav to learn Qt anyway.....
    Last edited by speedbooster; September 2nd, 2013 at 01:55 PM.

IMN logo majestic logo threadwatch logo seochat tools logo