I need some help with windows programs

This is a discussion on I need some help with windows programs within the Windows Programming forums, part of the Platform Specific Boards category; for some reason (and ill supply the code soon), whenever i try to add another function to a tool bar ...

  1. #1
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343

    I need some help with windows programs

    for some reason (and ill supply the code soon), whenever i try to add another function to a tool bar (ie. file, edit, and sub function under file and edit).

    my program doesn't have a help function. i need these two
    Help>Help Topics
    and
    Help>about

    and i dont even have Help on the bar.

    ill provide the code sometime soon. but maybe you can help me verbally.

    i have 2 files.
    main.h with all the #define files
    main.cpp with the actual program.

    please. help. (if you can)
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I presume your question is on adding an item to the menu bar. You can add an item via resource editor.

    Do you use MFC or Win32 API?

    Kuphryn

  3. #3
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    Originally posted by kuphryn
    I presume your question is on adding an item to the menu bar. You can add an item via resource editor.

    Do you use MFC or Win32 API?

    Kuphryn
    know what? i dont know what your asking.

    its a template for a new win32 window.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Okay. What is the Win32 template about?

    Post the lines of code you believe is buggy.

    Kuphryn

  5. #5
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    theres nothing buggy about it. its a plain window with no toolbar or anything. and when i have one (a template) that has a toolbar, when i add one, it dont appear anywhere.

    answer me this until i get the code:

    when i see something like
    #define HELP_NEW 1001

    whats that number right beside it mean?
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  6. #6
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    I don't understand how you have a windows app that you're working on (presumably in C/C++) and you don't know what he means by Win32 API / MFC.

    Additionally, how are at the level of understanding in C/C++ that you don't know what a define statement is and you think you're ready for Windows programming?

    #define HELP_NEW 1001

    ...is setting the constant label "HELP_NEW" to the value of 1001.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  7. #7
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    i frekin know that much!!!! but what does the value mean??? whats it for??? i noticed a cascading amopunt, like
    FILE_NEW 1001
    FILE_OPEN 1002

    and stuff, what does the value do?

    i just dont like programming in consoles. as i found out alot of windows programming is not alot like consoles. as in every windows api ive seen, i havent seen stuff like cout and ****, cuz it means console output and everything.

    so i like winbdows programming as its more desirable than console.

    look, im a beginner and have done console programming and i want to do windows. this is supposed to help new people at it. not chew them out.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  8. #8
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I recommend these books on Windows programming.

    MFC:

    Introduction to MFC Programming with Visual C++ by Richard M. Jones

    Programming Windows With MFC by Jeff Prosise.

    Windows Applications:

    Programming Applications for Microsoft Windows (Dv-Mps General)
    by Jeffrey Richter.

    Kuphryn

  9. #9
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    there are plenty of good books which i need to get. my local library is computer retarded. their newest book on programming languages is the new and improved Pascal. which is old! i had to order this one in!
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  10. #10
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    #define HELP_NEW 1001

    ... is nothing more than a constant to help you read your WM_COMMAND switch. HELP/NEW menu item most likely. It is the value that will be sent when you click that menu item. Menus send WM_COMMANDS when they are clicked. Didn't mean to be rude but it sounded like you were coming from a complete non-programmer perspective.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, well if you're new to Windows programming, I strongly reccomend taking a look at this site:
    http://sunlightd.virtualave.net/Windows/GUI/

    That's where I learned practically everything I know (other than the stuff I learned by trial and error ). It'll help you out a lot, and it spares you the trouble of going to a computer-retarded library
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    THATS EXACTLY WHERE I GO! www.sunlightd.com is the best at explainging this stuff. in 10 minutes i was on my way making popup message boxes already!

    (its low i know, but its a start)
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  13. #13
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Well then, you're on your way to making dialog boxes
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  14. #14
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    and itll show me how to put pictures in a window.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  15. #15
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, that's a start. Next, try making the pictures transparent Then, give them animations, and then make them 3D models, then give them all sorts of other stuff that's cool
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows Programs With MSVC++ 2005
    By Brad0407 in forum Windows Programming
    Replies: 12
    Last Post: 04-22-2007, 03:46 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 06:48 PM
  3. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  4. reducing global variables in windows programs
    By cozman in forum Windows Programming
    Replies: 38
    Last Post: 07-24-2002, 04:08 PM
  5. Folder Password Programs (Windows)?
    By johnc in forum C Programming
    Replies: 8
    Last Post: 07-18-2002, 07:39 AM

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