It is currently Mon Sep 16, 2019 9:32 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: MultiLib Compile Mode
PostPosted: Mon Jul 16, 2012 9:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Sep 16, 2004 9:50 pm
Posts: 658
Location: France
Hello everybody,

i don't know how to return value as unicode when necessary

_________________
DroopyLib/PBFastLib/HMod


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiLib Compile Mode
PostPosted: Mon Jul 16, 2012 11:03 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
Do you mean a string value ?

Code:
String.s

Or
Code:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiLib Compile Mode
PostPosted: Tue Jul 17, 2012 10:43 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Sep 16, 2004 9:50 pm
Posts: 658
Location: France
Yes i talk about returning string value.
I want to return ascii or unicode string according to compiler options.

_________________
DroopyLib/PBFastLib/HMod


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiLib Compile Mode
PostPosted: Tue Jul 17, 2012 11:43 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
a function like this
Code:
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: MultiLib Compile Mode
PostPosted: Tue Jul 17, 2012 9:14 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Sep 16, 2004 9:50 pm
Posts: 658
Location: France
Thanks a lot lexvictory,

_________________
DroopyLib/PBFastLib/HMod


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye