Re: [AD] get_executable_name() in Windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Friday, September 20, 2002, 08:12:49, Eric Botcazou wrote:

> I don't think so, otherwise GetCommandLineW() would have been used instead.

I was thinking of how UNICODE can be defined to determine whether the ASCII or
Unicode version of the function is used. I guess Allegro can't make use of
this define, though.

> I think Unicode support for filenames is far less important than the
> correctness of the function in all cases.

Agreed.

>> 2) Use GetModuleFileName()

> The right solution I think. And don't forget to convert the output to the
> current Allegro encoding format (the current code is buggy with regard to
> that).

Patch attached. Is it okay?

-- 
Sincerely,
Daniel Schlyder

Attachment: get_executable_name.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/