It's just not good practice to make objects static, but it's about all you can do in this case.
Type: Posts; User: Rare177
It's just not good practice to make objects static, but it's about all you can do in this case.
sounds like you're referring to the wrong instance of form1, if you're using vc# 2005-2008 you will see the program starts the form like this..
static void Main()
{
...
hmmm maybe you should look over your AddToText function again, i dont see where you're using that text paramater.
nah i used the blue as an example, i want to get rid of the selection look for any theme
im trying to make a button look like a non focused button all the time, basicly what im doing is making the button stay the same the whole time, the problem is when the button is default it has the...
use
form2 myForm = new form2();
form2 is a class, not an object, you cannot access non static members without an object, Password is not static, so what you need to do is access Password via your form2 object, which in the case of...
I think alot of these reply's have been farely stupid, most are based of hobby programmer's like "I find c/win32 api more fun", maybe so for a hobby programmer .net may not be the best go, but if you...
default breaks to return DefFrameProc,
those 3 buttons process the WM_SIZE message also
I have a program which using MDI, i need the mdi client area to be resizable (not to the width and height of the parent window) so to do this i sized it in the parent window procedure and returned 0...
worked it out, for any one who may ever have this problem, size the window on the parent window procedure, and dont let it fall through to DefFrameProc()
Hi, i was wondering if there's a way to stop the MDI client area from auto resizing, thanks.
try
srand(GetTickCount());
and include windows.h
thats only on win32 machines
Vc++ 6.0
sorry my bad, your right, im just use to using windows.h alot, instead of using a BOOL you could just use an integer
int used;
and use 1 and 0 for true and false, that will also work
WM_CLOSE
this may be what you are after
the second param is a pointer to a structure, take a look at this
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/win32_file_attribute_data_str.asp
one thing you could do if you dont want to use a linked list is have a bool checking if it is used or not, something along these lines
struct player {
char name[80];
char *hand[10];
int...
yes im checking for \0 for example
if((buffer[i] ^ key) == '\0')
//do nothing
i have also places a messagebox for the strlen of buffer and its showing the correct length, thanks for the...
details in the top commenting of the code..
/* the problem is that after i call this function it crashes,
before i used the EmcryptText function it worked fine but
ever since i added that...
well the thing is..its allready done and i need to find a way to convince him mine is fine and his is not as hot as he thinks,
he thinks u need to read from the file first to set the posistion i...
it returned -1
i wouldnt have a clue why,
i have tried to crash both and failed to do so..
i cant really figure out why i lost 10 marks when mine seems more safe and does the same thing?
oh..and i should have mentioned, we had to use feof
thanks, but wat really is the difference between mine and his..other than the fact his will read in null if the file is empty which can cause problems, and why did he take off 10 marks?