[Lazarus] newbie questions

leledumbo leledumbo_cool at yahoo.co.id
Sat Jun 2 08:20:06 CEST 2012


> it "uses windows, graph;" where can I find reference info, examples 
   and other doc about these libs? 

Windows unit is a binding to Windows API. It's not documented as it would be
HUGE work and too duplicated since MSDN already documents it very well. The
problem is that you have to understand C a bit, in particular, how to map C
things to their Pascal equivalent, when reading MSDN docs.

>  if I vould like to port this program under Linux I imagine that the 
   "windows" lib could be unusable. The shortest way to do it is ... ? 
   Hints on how to do it are where? 

Depends on how tight the code is to Windows API. In short, you have to find
all Windows API specific usage, and replace it with its equivalent on your
target platform. Using LCL (via LCLType, LCLProc and LCLIntf), some of the
Windows API specific things are made cross-platform with the same interface
as Windows API one. This is not the recommended way to write cross-platform
apps, but it can't help quick and dirty porting. You can find some articles
regarding multiplatform programming here:
http://wiki.freepascal.org/Multiplatform_Programming_Guide


--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-newbie-questions-tp4024223p4024289.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list