Enrico,

> A friend of mine reported this:
>
> In harbour\source\vm\cmdarg.c function hb_cmdargUpdate() s_argv[ 0 ] is
> used:
>
> s_argv[ 0 ] = s_szAppName;
>
> but it is not initialized for a DLL.

Which OS and compiler?
In the function hb_cmdargUpdate() there are two branches: for HB_OS_WIN
and for the rest.

I can't tell anything about the non-win branch, but the win version call
GetModuleFileName( NULL, s_lpAppName, MAX_PATH )
When the first parameter is NULL the function will return the EXE name
that called the DLL, if you pass the DLL hinst - you'll get the name of
the DLL itself.

What are the expected results and what does your friend get?


  Chen.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to