Some kind of unicode support, most MS COM objects work with unicode strings, maybe something like in C+, puting L before the string is passed as unicode,
func(L"TEXT")
and maybe an unicode type .ws to do
st.ws = L"a" + L"B"
and even a WSpace(), to translate unicode results to string
text$ = WSpace(100)
func(@text$) , text$ is filled with the unicode result of func() but translated to ansi
[Implemented] Unicode support
You could download COMLIB at http://home.planet.nl/~aXend/purebasic/COMLIB_demo.zip.
COMLIB is a small library that contains 4 procedures:
- CreateObject(ProgID.s) - creates an object from a ProgID, just like VB does
- ReleaseObject(Object.l) - release the object
- Uni2Ansi(Unicode.l) - converts a Unicode string to Ansi
- Ansi2Uni(Ansistr.s) - converts an Ansi string to Unicode
You can find an example at viewtopic.php?t=11018
COMLIB is a small library that contains 4 procedures:
- CreateObject(ProgID.s) - creates an object from a ProgID, just like VB does
- ReleaseObject(Object.l) - release the object
- Uni2Ansi(Unicode.l) - converts a Unicode string to Ansi
- Ansi2Uni(Ansistr.s) - converts an Ansi string to Unicode
You can find an example at viewtopic.php?t=11018
you can't use unicode properly due to pb's string type (zero terminated)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )