Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Support for return values other than vars #71001
04/15/06 17:56
04/15/06 17:56
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline OP
Developer
Gho5tFac3K1llah  Offline OP
Developer

Joined: Sep 2005
Posts: 514
USA
Hello. I am in development of a plugin at the moment. It would be very nice to have functions such as:

DLLFUNC STRING* md5(STRING *str)

Unless you can already do this, it would be helpful to be able to use these types of functions like this:

dllfunction md5(string*);
...
string md5_hash = md5("md5test");

Now, would something such as this ever be available? This would be useful for people who are making functions that return a string to actually return a string and not copy a string to another using str_cpy.

Re: Support for return values other than vars [Re: Gho5tFac3K1llah] #71002
04/15/06 18:38
04/15/06 18:38
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
return a string:

c++
DLLFUNC STRING* Create_String(STRING* content)
{
return((STRING*)str_create(content->chars));
}
c-script
dllfunction Create_String(str);
string* str_str;
//..
str_str = Create_String("#32");


same for entities, vectors, sounds etc. etc.

TripleX


Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1