English
Forum

recognition BalloonTip provided Strings

 

Georg
Hovenbitzer
Hello together,

Perhaps can someone a hint give.
I get a function The address one Strings back.
now can it unfortunately his, that this one Unicode or one normal String is.
How can I this detect circa properly hereon react to.
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
06/15/08  
 




Frank
Abbing
for such Cases there probably the API IsTextUnicode(). have you got tappt im dunkeln already tested?
 
06/15/08  
 




Georg
Hovenbitzer
Hello Frank,

with the API I had already try made, it comes not plenty sinnvolles out.
The problem is, The API desires The length the Strings, these ermittle I with WideCharToMultiByte.
LenA& = WideCharToMultiByte(0,0,ptrUnicode&,-1,0,0,0,0)
IsTextUnicode(ptrUnicode&,LenA&,0)
thereby comes but with not Unicode strings a incorrect length out.
me missing yet so The right idea to Solution.
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
06/15/08  
 




Sebastian
König
Georg Hovenbitzer
Perhaps can someone a hint give.
I get a function The address one Strings back.
now can it unfortunately his, that this one Unicode or one normal String is.
How can I this detect circa properly hereon react to.


i'd say, that to the alone through viewing the Strings not at all sure say can... If you in the Grunde only ANSI-characters expect, can You naturally bad, whether each second byte zero is. but to that a is Unicode not same absolutely, that The characters 16bit big are (see [...] ) and to that others could the String Yes characters outside the ANSI-Fensters include.

in the Documentation the function ought to though somewhere stand, take off a String tappt im dunkeln zurückgibt...

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
06/15/08  
 




Jörg
Sellmeyer
have You Schonmal the probiert?
CompileMarkSeparation
IsTextUnicode(Text#,LenA&,0)
>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/15/08  
 




Dieter
Zornow
Versuchs time so
CompileMarkSeparation
Def IsTextUnicode(3) ! advapi32,IsTextUnicode

Proc Isunicode

    parameters text$
    var size& = len(text$) *2+1
    var lpi& = 8   IS_TEXT_UNICODE_SIGNATURE
    declare buf#
    dim buf#,size&
    string buf#,0 = text$
    var result& = IsTextUnicode(buf#,size&,addr(lpi&))
    dispose buf#
    return result&

Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
06/15/08  
 




Frank
Abbing
Jaja, very. having today tommorrow none Source parat, but the Tipp fitting Yes.
 
06/15/08  
 




Georg
Hovenbitzer
Hello together,

many Thanks for whole hints.
I have only a problem with the API IsTextUnicode.
Since I only a address have where the String hinterlegt is, komm I do not on The length ran and accordingly it can API not use.
i'll too time whom Stefan Töngi, the developer the audiogenie.dll, moreover question.
there its function dependent upon MP3 File time Unicode or normalen String zurückgibt.
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
06/15/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.479 Views

Untitledvor 0 min.
E.T.01/14/24
Sven Bader02/25/21
Manfred Barei02/23/20
Walter02/16/20
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie