BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hint of TOleControl not UNICODE (AnsiString)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
jp
Guest





PostPosted: Wed Oct 27, 2004 2:37 pm    Post subject: Hint of TOleControl not UNICODE (AnsiString) Reply with 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.


Back to top
Sebastian
Guest





PostPosted: Fri Oct 29, 2004 9:35 am    Post subject: Re: Hint of TOleControl not UNICODE (AnsiString) Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.