C++ Inquiry

Sharky Forums


Results 1 to 12 of 12

Thread: C++ Inquiry

  1. #1
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463

    C++ Inquiry

    I'm thinking about starting back again with C++ (wow, does that ever sound cliched) and I'd like to know what an easy/popular widget API is for Windows programming that isn't MFC. I tried to learn MFC a number of years ago and just about threw myself and my computer out the window. I want to write (anything!) a program with a windows-like interface. You know, check boxes, text boxes, drop down menus, toolbars, the whole bit. If you have a good suggestion, perhaps you could also post some links to some tutorial sites so I can get a feel for how difficult it is before I slit my wrists over it.
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  2. #2
    Catfish Flip's Avatar
    Join Date
    Oct 2000
    Location
    College Station, Texas, U.S.A.
    Posts
    132

    Wondering the same thing myself...sorta

    I want to have the windows look and feel, but I want to do it in Java, are there any APIs that resemble windows for Java?

    -Robert

    p.s. or Perl, or any other free language...
    Last edited by Flip; 08-09-2003 at 12:39 AM.

  3. #3
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    Java has an interface controller that allows you to either explicitly or dynamically choose between a windows interface, a java interface, or some other kind of interface. Look in the java class listing on java.sun.com
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  4. #4
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364
    I'm not sure if there's anything besides MFC that you can use.

    Java has a Windows Look and Feel, a Java L&F, and a Motif L&F. The Windows one however, I don't think it looks up the system's look and feel but rather automatically assumes it's the "classic" gray look (default on everything but XP).

    http://java.sun.com/docs/books/tutor...ml#lookandfeel

    http://developer.java.sun.com/develo...e.html#JFCLook
    Stay cool
    and be somebody's fool this year

  5. #5
    . ksuohio's Avatar
    Join Date
    Oct 2001
    Location
    Atlanta, GA
    Posts
    2,721
    This may not be the suggestion that you are looking for, but you might want to try VB.Net or C#. A lot easier than using MFC from what I've seen and it keeps that Windows look and feel.
    ---------------------------------------------------------------
    - Asus M50 Laptop - C2D T9300 - 4 gig RAM - Radeon HD 3650 - Vista x64 Ultimate

    - Intel i7-3770K - Asus P8Z77-V DELUXE - 32gig RAM - Radeon HD7970 Ghz - Plextor M3 256GB/120GB OCZ Vertex3
    - LG BluRay - Razor Blackwidow Ultimate Keyboard - Logitech G9x
    - HP ZR2740w/Asus LCD - W7 Ultimate

    ---------------------------------------------------------------

  6. #6
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    I know there are other widget libraries out there, I'm just not sure what exactly they're called, and more importantly, which are any good. I thank you guys for your suggestions, but I think I just need to spend more time researching in other places I'm so lazy. Also, part of the point of not using MFC was to get away from Microsoft if I could. VB.NET and C# would only get me closer instead of further away. Thanks anyways.

  7. #7
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    Another GUI interface to think about is Tk. We've wrapped a number of C applications incide a Tk interface to have some level of platform independence. Everything C still needs to be compiled on separate platforms, but the interface is portable.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  8. #8
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    K, I found TK (GTK), wxWindows, Amulet, Motif, Qt, etc. Now to figure which is easy enough for me and still retains some usefullness. They all must, I found a whole lot of info on all of these... Ah yes, the wonders of programming.

  9. #9
    Tiger Shark Remington's Avatar
    Join Date
    Apr 2001
    Location
    Calgary, Alberta, Canada
    Posts
    702
    Give borland delphi or c++ builder a try, they both use a library called the visual component library, which is much more object oriented than MFC and a whole lot easier to use. Once you're done that, you can learn borland's other library that vcl is partially based on, CLX. This is system independant for the most part so you can compile the vast majority of it's code (and therefore, your code) on linux.

  10. #10
    Catfish gameboy1234's Avatar
    Join Date
    Aug 2002
    Posts
    238
    Qt is popular becuase it's used by KDE, a GUI toolkit for Linux. I don't know how much of Qt KDE exposes, but you can look at the tutorials on their website. http://kde.org , iirc.

    Or you can just use the Win32 API and interface that to C++ directly, which is what I do. Make your own objects and inheritance trees. Not hard, and kinda fun I would think if you're learning. Petzold is the source everyone quotes for the basic Win32 API, but I found his book to be somewhat incomplete. Lotta $$ for little API. You can get decent tutorials on line if you google for "win32 api tutorial".

  11. #11
    Reef Shark
    Join Date
    Nov 2001
    Posts
    361
    MFC is easy when used with its helper - the MSDN library

    Start with a real simple textbook style application - get it to work once and you will begin to understand the feeling of MFC

    Do one again - and with a little help from google and MSDN you can program anything

    If you really need to avoid MFC use JAVA or VB
    Last edited by god_shiva; 08-24-2003 at 11:08 AM.

  12. #12
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    Originally posted by gameboy1234


    Or you can just use the Win32 API and interface that to C++ directly, which is what I do. Make your own objects and inheritance trees. Not hard, and kinda fun I would think if you're learning. Petzold is the source everyone quotes for the basic Win32 API, but I found his book to be somewhat incomplete. Lotta $$ for little API. You can get decent tutorials on line if you google for "win32 api tutorial".
    learning Win32 API will also make MFC easier to grasp
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •