Thread: regular C++ code in a windows application

  1. #31
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by tinder View Post
    Nice phrase.

    Well, initially finding something hard is one thing, but being slapped across the face with a haddock formed of sheer befuddlement is another. I don't know, maybe I just enjoy slipping random metaphors into my sentences for the hell of it.
    LOL... ok.

    So (hoping this will be left alone...) what exactly did you have problems with in WinAPI?
    I trust you were able to create the "minimum" program as outlined in the forger's tutorial... "Hello Windows" so to speak.
    But from there... ???

  2. #32
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    This has gone as far as it's gonna - closed.
    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.

  3. #33
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by tinder
    Well, initially finding something hard is one thing, but being slapped across the face with a haddock formed of sheer befuddlement is another. I don't know, maybe I just enjoy slipping random metaphors into my sentences for the hell of it.
    No matter what GUI library you choose, you'll probably find it hard at the start, though I'd say your mileage may vary when it comes to "being slapped across the face with a haddock formed of sheer befuddlement".

    In view that you are using C++, there are advantages in using a C++ library, or a C++ wrapper around a C library. Yet, it is also true that with the Law of Leaky Abstractions, you will need to meddle with or at least understand the underlying layer at some point.

    Whether you choose to start with an underlying layer or with a higher level of abstraction first is up to you. Personally, I think that starting with a higher level of abstraction is a better approach, so long as you remain open to other ways the abstraction could be done.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help in transfoming C++ code into regular ansi C..
    By transgalactic2 in forum C Programming
    Replies: 18
    Last Post: 12-08-2008, 04:50 AM
  2. Windows application
    By andypandy in forum Windows Programming
    Replies: 6
    Last Post: 07-10-2007, 10:39 AM
  3. Windows application
    By andypandy in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2007, 02:09 PM
  4. Windows form application and Windows application
    By |Wiz| in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2005, 04:14 PM
  5. Replies: 1
    Last Post: 09-18-2005, 09:06 PM