Here's an example for GetComputerName.
Code:
#include <windows.h>
#include <stdio.h>
int main()
{
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 );
getchar();
}
Shamest why do you think C++ > Java, that liek saying
apples > oranges, there not the same thing there no
comparing them.
Wait. You mean if they were the same, you would compare them? :|
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"...