I need help again

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2006
Posts: 90
Reputation: Brent.tc is an unknown quantity at this point 
Solved Threads: 1
Brent.tc Brent.tc is offline Offline
Junior Poster in Training

I need help again

 
0
  #1
Nov 26th, 2006
I have recently began programming in the windows api rather than the command prompt\ms-dos environment.
I am still using windows 98 and bloodshed dev-cpp 4.9.9.2.
I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application {Minimize, Restore, Maximize, and Close (1 at a time)} I also need to know how to make a password box rather than meere text\edit, how to set up tabs, how to center objects\elements(Buttons,text,checkboxes...) I will also need to know how to make my app fullscreen, but still have a title bar.
Another problem i have is comparing strings\character arrays...I have to compare the one char. at a time
Example:

  1.  
  2. //includes
  3.  
  4. char Compare1[] = "Yellow house";
  5. char Compare2[13];
  6.  
  7. //Still having trouble with cin.get
  8.  
  9. //This is what I want to do
  10. cin >> Compare2 //Type "Yellow house"
  11. if (Compare1 == Compare2)
  12. {
  13. cout << "Compare1 == Compare2";
  14. }
  15. else
  16. {
  17. cout << "Compare1 != Compare2";
  18. }
  19. //End of what I have to do
  20.  
  21. //Even when I type the text exactly the same it still says it isn't the
  22. //same... I know that the above cin would more than likely skip the
  23. //spaces\white space, but even when the string has no white spaces it
  24. //still does it.
  25.  
  26. //This is what I have to do
  27. if (Compare1[0] == Compare2[0])
  28. {
  29. if (Compare1[1] == Compare2[1])
  30. {
  31. if (Compare1[2] == Compare2[2])
  32. {
  33. //and so on until all characters are compared
  34. }
  35. }
  36. }
//The above is actually being done in a windows api program with text
//boxes and buttons, but that file was much to unorganized to put here

I appreciate any answers to any or all of my questions...Constructive criticism welcome.
Last edited by WaltP; Nov 27th, 2006 at 3:17 am. Reason: Added code tags
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: I need help again

 
0
  #2
Nov 26th, 2006
Before you jump into windows programming with both feet, you should read this intoductory tutorial.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: I need help again

 
0
  #3
Nov 27th, 2006
Originally Posted by Ancient Dragon View Post
Before you jump into windows programming with both feet, you should read this intoductory tutorial.
As well as this
and this, the Keep It Organized section at least.
Last edited by WaltP; Nov 27th, 2006 at 3:18 am.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: I need help again

 
0
  #4
Nov 27th, 2006
>>if (Compare1 == Compare2)

you can not compare C character arrays like that. All that is doing is comparing two addresses, not the strings. use strcmp() for that

  1. if( strcmp(Compare1, Compar2) == 0)
  2. {
  3. // the two strings are the same
  4. }
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 90
Reputation: Brent.tc is an unknown quantity at this point 
Solved Threads: 1
Brent.tc Brent.tc is offline Offline
Junior Poster in Training

Re: I need help again

 
0
  #5
Nov 27th, 2006
I had downloaded that tutorial as I was typing my question.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 90
Reputation: Brent.tc is an unknown quantity at this point 
Solved Threads: 1
Brent.tc Brent.tc is offline Offline
Junior Poster in Training

Re: I need help again

 
0
  #6
Nov 27th, 2006
I am sorry for my mistake...I had no idea I HAD to encase the code in tags...I thought it was optional.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: I need help again

 
0
  #7
Nov 27th, 2006
Originally Posted by Brent.tc View Post
I am sorry for my mistake...I had no idea I HAD to encase the code in tags...I thought it was optional.

It is optional, DaniWeb does not enforce that rule, but moderators do. -- If you don't follow the rules then you will greatly decrease the probability that anyone will take you very seriously and answer the question. Many people see unformatted code and just ignore the whole thread.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 90
Reputation: Brent.tc is an unknown quantity at this point 
Solved Threads: 1
Brent.tc Brent.tc is offline Offline
Junior Poster in Training

Re: I need help again

 
0
  #8
Nov 27th, 2006
I have looked and looked for a good tutorial covering c++ api programming and the only downloadable one that is even remotely close (Yet still so far away) to what I am looking for is the one by theForger...If anyone can recommend a good tutorial that is for both experienced and very inexperienced programmers, I would be very grateful!
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 90
Reputation: Brent.tc is an unknown quantity at this point 
Solved Threads: 1
Brent.tc Brent.tc is offline Offline
Junior Poster in Training

Re: I need help again

 
0
  #9
Nov 28th, 2006
No one has even said ANYTHING about disabling the start menu...In the mean time I have found out how to not allow a user to click it, but they can still use the windows key (on the keyboard to access it...I have already been accused of trying to make viruses on other sites, but I am actually trying to lock my computer from unwanted access (little brothers, sisters) So if anyone could tell me how to do it that would be wonderful.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: I need help again

 
0
  #10
Nov 28th, 2006
Originally Posted by Brent.tc View Post
No one has even said ANYTHING about disabling the start menu...In the mean time I have found out how to not allow a user to click it, but they can still use the windows key (on the keyboard to access it...I have already been accused of trying to make viruses on other sites, but I am actually trying to lock my computer from unwanted access (little brothers, sisters) So if anyone could tell me how to do it that would be wonderful.
The first place to begin your research is at Microsoft. There appears to be several threads about that.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC