Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,670 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,180 people online right now. Registration is fast and FREE... Join Now!




Bugs in RadStudio?

 
Reply to this topicStart new topic

Bugs in RadStudio?, C++ buttons problem

Skinner
post 20 Jul, 2007 - 05:28 AM
Post #1


New D.I.C Head

*
Joined: 13 Aug, 2006
Posts: 20


My Contributions


Hi I have a tiny ball/bat game and it works fine except... when the ball goes past the bat (game over) I then display a button saying "Restart". The user clicks this and has another go. Trouble is, this non-visible button appears at the start randomly when there is a Start button-the restart button appears and disappears randomly!! I am wondering if it is a bug in CodeGear RadStudio, as there is nothing complex in my code. Anyone have a clue?

Thanks.
User is offlineProfile CardPM

Go to the top of the page

PennyBoki
post 20 Jul, 2007 - 08:35 AM
Post #2


system("revolution");

Group Icon
Joined: 11 Dec, 2006
Posts: 2,009



Thanked 5 times

Dream Kudos: 500

Expert In: Java,C++,C

My Contributions


Hi, I haven't work in RadStudio and since this is a visual prog. I have only suggestion to make. That would be the use of the same Start button as a Restart.
Just after it is clicked as a "Start" then change the caption as a "Restart", and according to the caption value do the code that needs to be done. I say this since you didn't mention you have a problem with the Start button.
As for why it is appearing randomly I have to see the code or something.
User is offlineProfile CardPM

Go to the top of the page

Skinner
post 20 Jul, 2007 - 12:19 PM
Post #3


New D.I.C Head

*
Joined: 13 Aug, 2006
Posts: 20


My Contributions


QUOTE(PennyBoki @ 20 Jul, 2007 - 09:35 AM) *

Hi, I haven't work in RadStudio and since this is a visual prog. I have only suggestion to make. That would be the use of the same Start button as a Restart.
Just after it is clicked as a "Start" then change the caption as a "Restart", and according to the caption value do the code that needs to be done. I say this since you didn't mention you have a problem with the Start button.
As for why it is appearing randomly I have to see the code or something.

Yes excellent idea, thanks.
As for the code there is nothing complex, simply a restart button which has a visible property of false and I use RestartButton->Show(); to make it visible when the game ends...
I have another query which may sound pathetic to experienced people but... here goes:
I want to start using WinAPI to take control of my system and documents on this subject I have all use Visual C++ not Borland. I have tried a simple dialog box program and this works fine but when I try a full window the compiler throws up strange errors like unrecognized character '" which I can't understand and also unrecognized variable when it is defined in the precompile directives. What do I use in BorlandC++ to use WinAPI or am I better using VisualC++?

Cheers,
Carl.

This post has been edited by Skinner: 20 Jul, 2007 - 12:21 PM
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 06:00AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month