Hello everybody,
i don't know how to return value as unicode when necessary
MultiLib Compile Mode
Moderators: gnozal, ABBKlaus, lexvictory
Re: MultiLib Compile Mode
Do you mean a string value ?
Or
but its not possible to return unicode-strings when in ascii mode. For that i prefer some memory allocation in combination with pokes() and or peeks() where necessary.
BR Klaus
Code: Select all
String.s
Code: Select all
String$
BR Klaus
Re: MultiLib Compile Mode
Yes i talk about returning string value.
I want to return ascii or unicode string according to compiler options.
I want to return ascii or unicode string according to compiler options.
-
- Addict
- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
Re: MultiLib Compile Mode
a function like this
Will work as expected when multilib mode is used.
It compiles your code in all combinations of compiler options and combines it like PBCompiler expects.
If you are looking to return some other format of string, you can use CompilerIf statements based on the #PB_Compiler_Unicode constant.
Code: Select all
ProcedureDLL.s blah()
ProcedureReturn "something"
EndProcedure
It compiles your code in all combinations of compiler options and combines it like PBCompiler expects.
If you are looking to return some other format of string, you can use CompilerIf statements based on the #PB_Compiler_Unicode constant.
Demonio Ardente
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!