PocketMatrix forums

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

STL and fopen...

Just wondering if the Standard Template Library and 'fopen' will work on Pocket PC.

I believe that STL would...but I'm not sure about 'fopen'.
Real programmers don't use Java and / or STL. :)

Jaap, explain him why not. :)
I'd love to hear why real programmers don't use the STL, particularly from a C++ programmer like Jaap...
:D Me2..
3/3 of my published games use STL, am I lame?
;-)
gabriele_scibilia · 18 May 2002, 12:29 UTC
3/3 of my published games use STL, am I lame?
;-)
Dave Johnston · 18 May 2002, 13:14 UTC
Phantom wrote:
Real programmers don't use Java and / or STL. :)


Real programmers use Perl.

Masochists.
BurningSheep · 18 May 2002, 13:19 UTC
Yeah, and real programmers don't need a compiler :roll:
Hehe. I responded like that because I had a discussion about this just a few days ago with Jaap. He wanted to know whether or not STL is available for PocketPC, and I said, well, real coders don't use STL. :) I know that's bullshit, so we can stop the flamewar now. :)

My real opinion on this: Each job needs to be done using the Right Tools. If you're developing a UI on a win9x machine, use MFC. If your app needs to run on all kinds of hardware, use Java. If your app needs maximum speed, use asm. Your personal taste also matters of course. The thing that I do hate is when Java people tell me that the language is actually very suitable for realtime 3D graphics. Yeah right. And another category of people with a bad attitude: Dudes that don't like a tool / OS / whatever because they never used it. The Jacco / STL combo is a perfect example of that. ;)
fopen is part of the stdlib, not STL and, as we know, the PPC stdlib is highly limited so unless you find an STL port that also contains their own stdlib I'd say it wouldn't work.

Could always write your own wrapping up the Win32 file functions (for portability sake).
whoa, I didn't mean to have some debate.

I use STL because I never made a list tool of my own. It just so happens that I stumbled upon STL before I decided to make one. Why make your own if they already have one.

The only thing that sucks about STL is it's hard to debug it, just like DirectX. That's all I can say.

Ok so fopen/STL might not work, I won't risk using those then...
actually I just looked over IniFileImpl.cpp right now and saw fopen and strcpy...I didn't notice before.

If Overloaded has it, then it works, yes?
Yes, fopen can be safely used on the PPC. Not on WinCE 2.11 btw. :)

There are some nasty exceptions that work on PC but not on PPC, like stricmp.
I take it that Overloaded will be ported to WinCE 2.11 as well?
Really Phantom? Honestly I never much cared for the stdlib file handlers, but when porting over libpng and zlib I had to replace their calls to fopen to the Windows file handler and coupled with the incomplete, inadequate, and (unfortunately) inaccurate MSDN documentation concluded it had been removed from the stdlib.

For D, the stdlib wouldn't affect an STL port as far as I know, but others on here are far more knowledgable on that then I.

Also, WinCE 2.11 is a step backwards and I would highly doubt anyone would (is) supporting that OS now. Certainly all the devices Overloaded is targeting aren't ever going to be running WinCE 2.11
Hosed, D,

We do not intend to support 2.11. There are just too few devices out there with 2.11, and it's rather unlikely that any of those will become 'connected'. So porting to 2.11 is not going to be worth the development time. Sorry. :)

- Jacco.
Dave Johnston · 21 May 2002, 12:33 UTC
Phantom wrote:
My real opinion on this: Each job needs to be done using the Right Tools. If you're developing a UI on a win9x machine, use MFC. If your app needs to run on all kinds of hardware, use Java. If your app needs maximum speed, use asm. Your personal taste also matters of course. The thing that I do hate is when Java people tell me that the language is actually very suitable for realtime 3D graphics. Yeah right. And another category of people with a bad attitude: Dudes that don't like a tool / OS / whatever because they never used it. The Jacco / STL combo is a perfect example of that. ;)


I used to only know Java, and since I'm into 3D gaming (developing) I've done my research. My conclusion? Java can do 3D up to two generations behind the current C++ generation. I reckon Java could just about cope with Quake or Quake 2 if people put in the time and effort, and are willing for the 3-5x slowdown due to interpretation. Java just isn't designed for that.

Now I know C++. I love it. Even 2D stuff is easier. I love low-level access to stuff, and the fact I can compile knowing I'm getting speed. Oh, and the fact I can use a system GUI, not the crappy Java one. Also the fact that C++ isn't as bloated. And err pointers - they're great! And LOADS of stuff on the net about C++.

Or something.

I have yet to bound into MFC - I've tried but nearly killed myself in the process. I like VJ++ since it gives me the Windows UI and hate the Sun VM because of their crap UI. I want MFC for the UI.

Pointless post.
akhromov · 22 May 2002, 00:05 UTC — STL works just fine on PPC
I needed to get STL to work on PPC, so I asked here and got a URL. The URL is in one of the threads with my name on it.

Works great. (I used it for a priority queue for A* pathfinding.)

Andre
Pejo Software - Per · 22 May 2002, 06:52 UTC
Have you tried STLPort(http://www.stlport.org)?
STLPort supports many platforms including Windows CE. I have used it for almost 3 years and I think it is great.
s9801758 · 26 May 2002, 11:08 UTC — About STL
Hello people,

just to set this straight; I 'love' STL.

I use it whereever appropriate. That means I use it for all my PC and console coding. I didn't use it for my GBA library however, simply because it's overkill for the GBA (trust me, it is).

The PocketPC is a different story though. I have too little reallife experience on the PocketPC to say anything usefull about performance in that regard. I think the PocketPC is one of those gray fields. For some people STL works, and for others it doesn't. Personally, I'd love to use the STL in my PocketPC coding, but it's Jacco who makes the decisions about these things, so for now it's oldscool arrays, char-arrays and linked-lists...

Cheers to oldscool coding,

Jape
I don't like old school link lists...
that's all that I use STL for.

but if microsoft STL does not work properly for PocketPC, then I will use old school link list.
billcow · 26 May 2002, 21:46 UTC — RE: "lacking" stdlib
This is slightly off-topic, but it was mentioned, so here I go:

At http://www.rainer-keuchel.de/software.html, there is a library (celib) that is very helpful in coping with not only eVC's crappy stdlib, but also has wrapper functions for the WinCE API that use ASCII instead of UNICODE (helpful for porting, but a bad thing for other uses, IMHO (unless you really need to save space when storing strings)). It also implements a bunch of win32 api functions that were removed from WinCE (including ones that aren't available in all versions). Same for the stdlib functions that aren't there. The library also implements printf, etc. but they currently write to a file rather than printing to the display (there are hooks if you want to write a function to display them, though. you can also read them using pipes).
errr I've never used STL not sure what I'd use it for?
Then again I prefer C to C++ (please don't flame).
What advantages does it give over my linked list?

JIm.