I just started Visual C++

This is a discussion on I just started Visual C++ within the Windows Programming forums, part of the Platform Specific Boards category; I've created a basic window using only API in visual C++. Now I'm trying to do some crap. How would ...

  1. #1
    Neandrake
    Guest

    I just started Visual C++

    I've created a basic window using only API in visual C++. Now I'm trying to do some crap.

    How would you do something like change the caption of the title bar at runtime?

    I have the WinMain function and a WindowProc function. Where do you add buttons, check boxes and stuff to your window?

    Where do you add code???

    Thanks for any help. I'm understanding how the window works and all but I'm confused with how I code with it now.

  2. #2
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    Posts
    101
    try here http://www.winprog.org/tutorial/ and http://www.winprog.org/tutorial-old/, first. it should help. they're good tutorials for beginners.
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

  3. #3
    Neandrake
    Guest
    One step ahead of you, I'm there, gimme a couple days to look there again.

  4. #4
    Neandrake
    Guest
    Ok, so I'm trying to add an ICON to my program
    in "options.rc"
    ---beginning----
    #include "resource.h"

    IDI_KEYLOGGER_ICON ICON "key04.ico"
    ----end-----------

    in "resource.h"
    ---beginning----
    #define IDI_KEYLOGGER_ICON 1001
    ----end-----------

    in "options.cpp"
    ---beginning----
    #include "resource.h"
    ----end-----------

    I get an error:
    fatal error RC1004: unexpected end of file found

    it's found in resource.h and I don't know what it means. Help?

  5. #5
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    If I remember correctly (I haven't used VC++ in a while) that means that you have a bracket that doesn't close...Hmm...If it doesn't have brackets, then I must be wrong...That sounds kind of strange...
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  6. #6
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    523
    fatal error RC1004: unexpected end of file found
    I get that and it is never a problem in the header file, its always a syntax error in the .cpp file
    All spelling mistakes, syntatical errors and stupid comments are intentional.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console Font Size
    By bradszy in forum Windows Programming
    Replies: 34
    Last Post: 04-26-2008, 07:09 AM
  2. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  3. header file bringing errors?
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2003, 12:51 PM
  4. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM
  5. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 12:06 AM

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