 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
jp Guest
|
Posted: Wed Oct 27, 2004 2:37 pm Post subject: Hint of TOleControl not UNICODE (AnsiString) |
|
|
Hi, I'm using c++ builder 6 pro,
I'm make an OCX and imported in builder
but the Hint called by the application is the Hint of TOleControl Class
(TOleControl->Hint) , this property is not unicode (AnsiString).
How to obtient a hint in UNICODE (WideString) ?
Jp.
|
|
| Back to top |
|
 |
Sebastian Guest
|
Posted: Fri Oct 29, 2004 9:35 am Post subject: Re: Hint of TOleControl not UNICODE (AnsiString) |
|
|
jp schrieb:
| Quote: | Hi, I'm using c++ builder 6 pro,
I'm make an OCX and imported in builder
but the Hint called by the application is the Hint of TOleControl Class
(TOleControl->Hint) , this property is not unicode (AnsiString).
How to obtient a hint in UNICODE (WideString) ?
Jp.
you can test this code to convert an AnsiString or Char to a unicode |
widestring
wchar_t *rechner = 0;
int len = Edit1->Text.Length()+1;
rechner = new WCHAR[len];
MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,Edit1->Text.c_str(),len,rechner,len*sizeof(WCHAR));
nice greetings
seb...
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|