S
suddenexpire
For the life of me, I can't figure out what is wrong with this code and
why it is giving me an error.
DWORD size=256;
char CurrentComp[256];
GetComputerName(CurrentComp,&size);
The third line gives an error:
C2664: 'GetComputerNameW' : cannot convert parameter 1 from 'char
[256]' to 'LPWSTR'
Any suggestions on what to do?
why it is giving me an error.
DWORD size=256;
char CurrentComp[256];
GetComputerName(CurrentComp,&size);
The third line gives an error:
C2664: 'GetComputerNameW' : cannot convert parameter 1 from 'char
[256]' to 'LPWSTR'
Any suggestions on what to do?