Horacio,
> The same DLL call syntax taken out from Paradox and put in a Delphi source
> code doies not work.
Bearing in mind that I haven't actually tried this out, I think you've
declared the function wrongly. The C API call is :
long WINAPI HsSetAppStatus(HsStatusType statusType,DWORD dwStartFlags);
So in Delphi that should be
function HsSetAppStatus(StatusType : HsStatusType;StartFlags : DWord) :
Longint; cdecl; external 'HSAPI.DLL';
In TurboSync I actually load the dlls explicitly and set procedure
addresses (so I can raise errors if the dlls cannot be found), but it
isn't essential. I find cdecl works better than far, but try both.
Also try declaring the HsStatusType, maybe like this (or use a DWord
parameter) :
type
HsStatusType = (HsCloseApp,HsStartApp,HsRestart,HsReserved);
You may need to play around a bit because I have tested this, but I hope
it helps.
Cheers,
Jim Cooper
_____________________________________________
Jim Cooper [EMAIL PROTECTED]
Tabdee Ltd http://www.tabdee.ltd.uk
TurboSync - Writing Palm conduits with Delphi
_____________________________________________
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/