Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 11 Monaten
Letzter Beitrag:
vor 11 Monaten
Beteiligte Autoren:
Peter Holemans, Fabrice Harari

[WX2x] Is there a function to know if the current configuration is in Unicode mode?

Startbeitrag von Peter Holemans am 24.11.2016 09:22

Hi Forum,

I've been looking around a bit to identify if there is a function to know if the current configuration/build is in unicode format or not.
Surely it must be there, but I can't find anything resembling a statement like IF InUnicodeMode() to do this identification.

Although all my projects are unicode only since V18, I know have a little dual mode project and will need to call different API's depending if I am running in unicode mode or ansi mode. Therefore I need to identify the mode the execution is in.

Who can point me in the right direction?

Thanks,

Peter Holemans

Antworten:

Hi Peter,


I don't think there is. However, it shouldn't be too hard to make one, something along the lines of (not tested):

Procedure IsUnicodeMode()
sString is string //ANSI or UNICODE depending on the configuration
bufBuffer is buffer
sString="Test"
bufBUffer = sString
if Lenght(bufBuffer)>4 then
result true
else
result false
end

Best regards

von Fabrice Harari - am 24.11.2016 14:40
Thanks Fab for your reply (and excellent idea of course)!
I was thinking about something like that but would have expected to have it available as an introspection function.
Maybe in V23 ;-)

Cheers,

Peter Holemans

von Peter Holemans - am 24.11.2016 20:07
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.