Hi there, I use the windows SDK fuction:
MessageBox(0, "Test Message","Test",MB_OK)
in VC++6. Obviously, it should work. But Vc compiler tells me I should use it like:
MessageBox(0, unsigned short * ,unsigned short *, int ) .
Can anybody tell me why?
Thanks a lot.
Error info:
TestRecord.cpp(256) :
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [27]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
MessageBox(0, "Test Message","Test",MB_OK)
in VC++6. Obviously, it should work. But Vc compiler tells me I should use it like:
MessageBox(0, unsigned short * ,unsigned short *, int ) .
Can anybody tell me why?
Thanks a lot.
Error info:
TestRecord.cpp(256) :
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [27]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast