PocketMatrix forums

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

symbian exe

Hi,

is there any simple framework with pocketHAL being used from EXE files instead of apps?

can all features of PH be used in EXE files (I mean access to the screen, timer, getting keystrokes, ...)?


TIA
Kak
I haven't tried this myself, but I see no reason why PocketHAL wouldn't run in a Symbian .exe.

The question I have for you though, is why do you want to do that? If the reason is tons of globals, then move them all in a structure in the TLS (Thread Local Storage).

But I really think you should stay away from .exe, it brings more problems then it solves.
Thierry wrote:I haven't tried this myself, but I see no reason why PocketHAL wouldn't run in a Symbian .exe.

The question I have for you though, is why do you want to do that? If the reason is tons of globals, then move them all in a structure in the TLS (Thread Local Storage).

But I really think you should stay away from .exe, it brings more problems then it solves.


Yes, problem, as you stated, are the global variables. I'm too bad coder to design my apps without globals, and too lazy (and obstinate) to use the TLS approach ;)

Also I don't like the "symbian way" to do things, with all those "end with that letter to do that", etc...
I tried to work the "symbian way" some years ago and I almost got crazy;) so I'm a bit biased when judging symbian ;)

I feel that the exes will be more friendly to me, if not I probably won't be releasing any symbian stuff :(

I'll tell you something about pocketHAL and exe files, as soon as I get back my symbian device ;)
I also not a big fan of "Symbian ways". They do make sense though, and I can understand their rationals. It makes a lot of sense for the OS and Shell, but I don't want to use it for my app (and you don't have to).

Only remaining issue is... globals. Although I do not use globals per-se, I use a lot of static members and that's the same thing on Symbian =(.
Pejo Software - Per · 20 Sep 2004, 05:50 UTC
I Agree! I costantly find myself working against Symbian and not with it.
I also had a lot of static members in my game and thought it was going to be hard to remove them all but it really did not take that much time. The code got a little bit more ugly (in my opinion) but that does not matter too much.
Pejo Software - Per wrote:I Agree! I costantly find myself working against Symbian and not with it.

This is exactly the feeling I have. in fact you need quite a time to understand how the toolchain works, application types, and lots of things like this, not to mention that the fresh installation doesn't compile helloworld in win98 (there was an error in a perl script).
When I started again some days ago I just downloaded codewarrior demo version and works really nice, just a shame it's a bit expensive :(

as thierry says, the static/global thing is really anoying if you're used to them. I remember the first day I readed about it, I just thought the document author was joking! :)