But will this only work for string variables??
Type: Posts; User: paulogrady
But will this only work for string variables??
Just a quick Q,
Using Visual C++, Windows Forms, how can I bring up a message box to show a variable value?
Thanks for the fast answer !
In trying to check that R, G, B gives white then would this statement suffice:
if (R == G == B == 255)
{
....
}
What are these statements doing?
Any Ideas????
Hey, thanks for the suggestion!!!
Is it necessary for me to go to this lengths just to convert the RGB to HLS?
All I want to do is set the saturation to zero for a smooth gryscale gradient
Thanks for your reply!
The reason I want to convert to COLORREF is to be able to convert from RGB to HLS using:
ColorRGBToHLS() ColorRGBToHLS Function ()
How else can I go about this?
...
Any Ideas?
Is more info required of my problem?
Hi,
Im Using Visual C++ Windows Forms in Visual studio 2008
I am trying to use ToCOLORREF (ToCOLORREF Method (ColorColor))
However, I keep getting error...
'ToCOLORREF' : is not a member of...
if possible
I want to add pointers to objects to a list to keep track of them.
void GameEngine::AddSprite(Sprite* pSprite)
{
// Add a sprite to the sprite list
if (pSprite != NULL)
{
// See...
Hi,
I am using #include <list>
Is there a command whereby I can reserve capacity for the list I am seeking to create?
Thanks
Hi Guys!
I would calss my C++ skills as an advanced beginner.
Can anyone recommend a good Windows-Gaming Programme Tutorial CD or DVD???
Alternatively a book but I find that I learn best...
Thanks
Hi
In C++ using the cout statement...
How can I display a value only to a specified number of decimal places?
Thanks
ne 1 else? :)
Point taken with the tolower function.
But I really want the best method for catching a user input error. Can you offer some advice or an example piece of code?
you should be able to write code. ;)
p.s. you cant return an int to void... can you?
I dont know.
Can someone just answer my original question pls? :)
so tell me what to do then
the link you gave dont mention this
Isnt that what I did above?
What would be the best, most efficient way to do this.
With for, while or switch
thanks for reply.
i can do clear screen ... system("cls");
Ive had a go this is what I get:
for (;;)
{