Hi,
I used Delphi and I will use Lazarus in near future.
Good for you, exactly as I plan to do...
Is it possible (and how) with Lazarus to:
1. play mp3 and wav
2. display offline htm pages
3. play mpg, wmv or avi (mediaplayer component)
As of yet, Lazarus does not have a mediaplayer object...
On Windows you can simply ShellExecute the file though (see below).
Is it possible to execute winapi functions?
Yes it is. You can do stdcall's to windows dll's
See how this is implemented in windows.pas.
(Notice how it is only declared once in the Interface section, as opposed to Delphi that declares the function prototype in the Interface section, then does the stdcall to some specific dll in the Implementation section)
The ShellExecute() is not available in windows.pas because it cannot be implemented (yet??) in an OS independent way.
For executing external programs there is the TProcess object (see the wiki about that).
Nothing however can stop you from calling the standard windows library ShellExecute (or some other library), but you will no longer be able to compile your program for other platforms than Windows.
Hope this helps.
Bart