Error in tutorial?

This is a discussion on Error in tutorial? within the Game Programming forums, part of the General Programming Boards category; I've been looking at the tutorials at http://www.32bits.co.uk/ and i tried to compile the first program and i get errors: ...

  1. #1
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32

    Error in tutorial?

    I've been looking at the tutorials at http://www.32bits.co.uk/ and i tried to compile the first program and i get errors:

    41 c:\windows\desktop\window.cpp
    ANSI C++ forbids implicit conversion from `void *' in argument passing

    63 c:\windows\desktop\window.cpp
    ANSI C++ forbids implicit conversion from `void *' in argument passing

    The actual lines of code are here:

    41:
    Code:
    HWMD hWnd = CreateWindow(strAppname, strAppname, WS_OVERLAPPEDWINDOW, 100, 100, 640, 480, NULL, NULL, wc.hInstance, NULL );
    63:
    Code:
    UnregisterClass( strAppname, wc.hInstance );
    I think it has to do with strAppname, I get what the error is, but I don't know how to fix it. Any Help?
    Those who live by the sword get shot by those who don't.

    I can C.

    Compiler: gcc

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    It's not an error in the tutorial. You need to read it before you try to compile it. He clearly points out that none of the code is complete and ready to compile until tutorial 4.

    This is the note from tutorial #1 (in bold red on his site)
    Important! Don't expect to be able to compile or use ANY of the sample code until chapter 4. To save throwing far too much information at one time at you, the code is broken down into un-usable sections until chapter 4, which brings it all together. The download for chapter 4 is a complete MS Visual C++ 6 workspace in a .zip, containing the final skeleton code which will compile correctly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 06:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 01:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM

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