PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Platform independence and symbian conventions

Hi!

I am currently working on my first game using gapidraw. I want to use one single source for all platforms.
But Symbian uses some coding conventions like ELeave, ConstructL,...

Which way do you choose when making a platform independent application (or converting an application to symbian) ?
Are you trying to adjust your source to fit for symbian, and work around to make it compileable for the other platforms ?
Or is it not thus important to use the rules for symbian programming (naming conventions, object creation,...) ?
Is the Gapidraw VFS the best option for all platforms to store graphics,... - in the samples only the palm version uses the VFS ?

Thanks
McMc
To reduce the amount of code that needs to be changed when developing multiplatform, the Symbian version uses the same variable and function names as on the other platforms. In other words, it does not use the Symbian naming conventions. The exception would be CGapiApplication::ConstructL().

GapiDraw uses error codes when something goes wrong. For example, if a surface creation fails, it will tell you by giving an error code instead of leaving. This isn't exactly the Symbian way of doing things, but it's used in GapiDraw for increased portability.
Hi!

Thanks for reply!

Can you tell me which way you handle other parts of your applications (e.g. levels, ...) ?
Are you trying to use symbians way to allocate memory,... or are you making it the same way as for pocket pc,.... ?
My opinion is that if you always clean up memory there is no need for using all the symbian conventions like cleanup stack,...
Is this a right way to program symbian OS, our should i try to use the cleanup stack,... ?

Thanks
McMc