On 6 Sep 08, at 11:08, Paul wrote:

Hi Paul,

> > Similarly to Felipe, I don't understand why this should be a bad news for
> > you or why this should mean that Visual Studio gave you something not
> > available with FPC (or what that "something" was in that case)... It looks
> > as if I either don't understand what you meant with the statement above,
> > or that I didn't express myself clearly and you understood me differently
> > (and that Marco's additional explanation regarding relation between Win32
> > and WinCE API hasn't helped to clarify that either).
> 
> It's clear that I can't call an api that doesn't exist on a specific 
> platform.
> I don't know how the crosscompiler works, maybe that's confusing me.

OK, let's try to clarify this part. I've somewhat extended and 
updated the previously existing Wiki page about cross-compilation 
with FPC - see http://wiki.freepascal.org/Cross_compiling (especially 
the starting part). Feel free to ask if there are still unclear 
points.


> If I use KOL, will all the api calls be translated to arm or do I have to 
> use ARM api's directly ?

I don't know much about KOL, but if I understand it correctly, it's a 
framework (GUI library if you like) allowing the programmer to use 
Pascal classes for the various GUI elements. Implementation of these 
classes uses then the native API calls provided by the particular 
platform (Win32 or WinCE in your case). In other words, if using KOL, 
you don't use the API calls directly at all. In any case, you don't 
need to care about whether the API calls are running on an x86 or ARM 
CPU, this is the job of FPC to generate proper binary code for the 
requested CPU (see notes about cross-compilation above).

Tomas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to