MultiLib Compile Mode

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

MultiLib Compile Mode

Post by Droopy »

Hello everybody,

i don't know how to return value as unicode when necessary
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Re: MultiLib Compile Mode

Post by ABBKlaus »

Do you mean a string value ?

Code: Select all

String.s
Or

Code: Select all

String$
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
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Re: MultiLib Compile Mode

Post by Droopy »

Yes i talk about returning string value.
I want to return ascii or unicode string according to compiler options.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: MultiLib Compile Mode

Post by lexvictory »

a function like this

Code: Select all

ProcedureDLL.s blah()
    ProcedureReturn "something"
EndProcedure
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.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Re: MultiLib Compile Mode

Post by Droopy »

Thanks a lot lexvictory,
Post Reply