|
MessageBox 부분에 L 넣어서 구현하는 것이 차이가 있나요
(정상적으로 컴파일 됩니다.)
const char* / const wchar_t * 사용이 미숙해서
사용법과 차이점을 알고 싶습니다
박진수 님이 쓰신 글 :
: 저도 아직 미숙하지만
:
: int result = Application->MessageBox(L"This should be on top.", L"Look", MB_OK);
:
: 요렇게 해보세요;;;;
:
: 설명은 고수님들께서 ㅎㅎ;;;
:
:
: 초보자 님이 쓰신 글 :
: : int __fastcall MessageBox(const char * Text, const char * Caption, int Flags = MB_OK);
: : 찾아서 Example 내용을
: :
: : Application->NormalizeTopMosts();
: : int result = Application->MessageBox("This should be on top.", "Look", MB_OK);
: : Application->RestoreTopMosts();
: :
: : 아래 내용을 c++builder 2009 넣으면
: :
: :
: :
: : Cannot convert' const char * to 'const wchar_t *
: : Type mismatch in parameter Text (wanted' const wchar_t* , got 'const char *)
: : 에러가 표시 됩니다.
: :
: :
: :
: : 제가 const char* / const wchar_t * 사용이 미숙해서
: : 둘의 사용법과 차이점을 알고 싶습니다.
: :
: :
: : 위의 내용이 c++builder 2009 에서 에러 나는 이유를 알고 싶습니다.
|