WxWidgets in C?

This is a discussion on WxWidgets in C? within the C Programming forums, part of the General Programming Boards category; Hi, I've been learning C for a while now and have been writing some maths/calculator programs (but ones that come ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    47

    WxWidgets in C?

    Hi,

    I've been learning C for a while now and have been writing some maths/calculator programs (but ones that come up in the little black box - command prompt/command line?). I've decided that I want to try and write them in a "proper application" style with a user interface - with buttons and text boxes etc.

    So I looked at WxWidgets and it seems to fit what I was looking for, but then I noticed it said about C++, but not C. Now seeing as it is C I have been learning, will WxWidgets work with C or is it C++ only?

    Thanks,

    Jake

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    I'm fairly certain wxwidgets doesn't have a C binding. But of course there are other things you can use for gui applications. Try gtk+ or another library but whatever you do don't get sucked into the windows api. Good luck!

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,622
    It's C++, because typically frameworks are C++, since frameworks benefit more from being written in C++, since software often benefit more from being written in C++.
    In all seriousness, though, if you want to write computer software, you should really look into C++ someday. C just wasn't designed for today's requirements and needs in mind.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > C just wasn't designed for today's requirements and needs in mind.
    Poppy cock. Define "today's requirements", because if you can do that -- then you can do what many companies have failed to do.

    > It's C++, because typically frameworks are C++
    No they're not. The mix is pretty even, if not slightly weighted towards the other.
    I'd say writing the frameworks in C is far better than C++, because you don't exclude those who want to use C (nor do you exclude those who want to use C++). Or at least you don't have to write a binding.

    It depends what you like, GUIs often work best when they're object oriented. However, many, many, many (x 10^99999) frameworks follow the procedural paradigm.

  5. #5
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,622
    Quote Originally Posted by zacs7 View Post
    > C just wasn't designed for today's requirements and needs in mind.
    Poppy cock.
    You mean to say that that is untrue then?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > You mean to say that that is untrue then?
    Yes.

    C has a purpose. You don't go and use a screw driver for everthing and ignore the hammer, just because screws were invented do you?

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,622
    Quote Originally Posted by zacs7 View Post
    > You mean to say that that is untrue then?
    Yes.
    Oh! That's very amusing.

    C has a purpose. You don't go and use a screw driver for everthing and ignore the hammer, just because screws were invented do you?
    I don't deny that. It has a purpose because no other alternative exists yet, but it isn't computer software.
    C belongs to embedded systems. And that's where neither assembly nor C++ is used.
    And frankly, C++ being close to the hardware too, embedded systems could really use C++ instead of C, but unfortunately, people today doesn't seem to acknowledge that (in a sense that they develop the systems for programming with C instead of C++).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    C++ is riddled with things that make it clumsy and a lot less useful. Thinking it has somehow superseded C is just wrong on so many levels.
    http://yosefk.com/c++fqa/defective.html

  9. #9
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,622
    Every language has its flaws. You don't think C# is free of defects, do you? There are plenty of people complaining on that language, too.
    And a lot of these "flaws" can be circumvented. For example, use a vector and its .at function, and you avoid the "accessing the 7th element of a 5-element array."

    C++ continues to evolve, too. Although there doesn't seem to be that many changes to the language itself (mostly additions to the standard library), there is progress being made. There was a time when smart pointers were unheard of. Now they're becoming all the more common and are being added to the standard library.

    And it makes sense that C++ doesn't run in a managed environment. If it would, then it wouldn't be the successor of C, because it would break what made it an evolution of C--the proximity to the hardware and the raw speed of C.
    There is C# if you like managed environments. Myself, I don't like the overhead.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wxWidgets and capturing EN_SELCHANGE
    By anon in forum Windows Programming
    Replies: 1
    Last Post: 03-08-2009, 07:48 AM
  2. wxWidgets Reduce Rilesize
    By parad0x13 in forum C++ Programming
    Replies: 4
    Last Post: 07-25-2008, 08:15 PM
  3. wxWidgets DLL Help
    By Matt3000 in forum C++ Programming
    Replies: 0
    Last Post: 08-19-2006, 05:56 PM
  4. Borland & wxWidgets!!! Help!!!
    By Matt3000 in forum C++ Programming
    Replies: 5
    Last Post: 07-31-2006, 09:17 PM
  5. wxWidgets cross platform GUI problem
    By BobS0327 in forum Linux Programming
    Replies: 2
    Last Post: 05-31-2006, 06:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21