Newbee question

This is a discussion on Newbee question within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm trying to learn some Win programming but I got stuck directly... I've downloaded a toturial and a sample ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    13

    Newbee question

    Hi,

    I'm trying to learn some Win programming but I got stuck directly...

    I've downloaded a toturial and a sample source code for a very simple program, but when I try to run it I get an error message box stating: "You have accidently used the dummy version of OwlMain" .. ??

    What is this? Is it the program, the compiler or the fact that I run Win ME?

    The source to the simple progam is found at:
    http://www.relisoft.com/win32/source/winnie.zip

    I would greatly appreciate any help..

    - Anders
    Last edited by d00-asu; 08-29-2001 at 02:19 PM.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Hi, fellow newbie!

    And the fun has JUST BEGUN.

    Yes, be prepared for LOTS of hand-wringing as you venture ever so deeper into the quagmire of Windows programming...

    I too had the same difficulty, and, although I STILL can't make neither heads nor tails of code like you posted (So I can't answer your original question), I would be glad to share what working code I have so that you may too enjoy a completely useless Windows app--chockful of all the bells and whistles you're hankering for:

    Namely,
    a window,
    a title-bar,
    a line of text,
    and an oval.

    No, don't thank me--please, the pleasure is all mine

    But you'll have to wait till tomorrow. Sucker.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User Esss's Avatar
    Join Date
    Aug 2001
    Posts
    133
    You have accidently used the dummy version of OwlMain
    It sounds as if your compiler options are wrong. Make sure you have not selected the 'Object Windows Library'.

    To be perfectly honest, the sourcecode looks far too complicated to begin with. Why not try one of the tutorials linked to in this board's FAQ?
    Ess
    Like a rat in a maze who says,
    "Watch me choose my own direction"
    Are you under the illusion
    The path is winding your way?
    - Rush

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Well, I'm afraid my offering will be less generous than expected (couldn't find the one I was referring to) , but this should work, and is much more readable than the one you provided.

    Oh yeah, and if it doesn't compile correctly, you need to adjust your "linkers" settings on your compiler, and/or be sure you are compiling it as a "GUI"(windows) app and not a "console" app.

    Happy Confusing-er Coding...
    Attached Files Attached Files
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    13
    Oki.. thanx for all your help, I'll get stareted on those tutorials right away..

    - Anders

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 12:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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