GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2011-Jun-02

Title: hard iphone question
Post by: djtoon on 2011-Jun-02
hi!
im adding some cusome lib to my game and i need to add a pice of code after this line:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

where is it or..
how can i call it with glbasic ?

10x
Title: Re: hard iphone question
Post by: djtoon on 2011-Jun-02
i need to call a function on external "C" as soon as the app launches
is there a way?

10x
Title: Re: hard iphone question
Post by: Moebius on 2011-Jun-02
IMPORT command:
Code (glbasic) Select
IMPORT "C" void MyFunction()
IMPORT "C" int MyFunction2(int)

Search the forums and look in help for more examples.

Edit:  NVM if you need to call it before GLBasic has started up....
Title: Re: hard iphone question
Post by: Kitty Hello on 2011-Jun-03
There's no way to do that. Send me a PM about the details.