Here's an example for GetComputerName.
char buffer[MAX_COMPUTERNAME_LENGTH + 1];
DWORD size = MAX_COMPUTERNAME_LENGTH + 1 ;
GetComputerName( buffer, &size );
printf( "Computer name = %s\n", buffer );
printf( "Characters copied = %d\n", size );
Wait. You mean if they were the same, you would compare them? :|
Shamest why do you think C++ > Java, that liek saying
apples > oranges, there not the same thing there no
And it's true that apples taste better than oranges. For a given value of true.
To be honest, I put "C++ > Java" in my title a long long time ago, and haven't thought of a new title. Hmm, maybe "Apples > Oranges"...