Przemyslaw,
> hbmk2.exe. In such case if OS2 does not have function like MS-Win
> GetModuleFileName() then you may try to set the default extension.
> Before:
> while( pNextPath )
> {
>
> add this lines:
>
> #ifdef HB_OS_OS2
> if( !pFName->szExt )
> pFName->szExt = ".exe";
> #endif
>
> It's a hack but in general this function is a hack and cannot return
> valid results in some cases. F.e. physical executable file may not exists
> at all.
>
I've used your idea since in OS/2 I have a function which gives me the command
line, but the command name is as it has been entered and as such it lacks full
path and extension.
Best regards.
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour