|
String memory allocation
#365527
03/27/11 12:23
03/27/11 12:23
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Hi jcl, I have a question to the Lite-C compiler. Is this code allowed:
while(1)
{
STRING* TestStr = "#100";
//...
wait(1);
}
Or do I have to use str_create() instead of "#100"? Thanks for your help!
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: String memory allocation
[Re: jcl]
#365661
03/28/11 12:05
03/28/11 12:05
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ah ok, good to know! Thanks for your help! When you want to port your project later to phone APIs such as Android with a future Gamestudio version, you will have to use create functions for engine objects. Sounds promising
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|