Re: [AD] get_executable_name() in Windows

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


> Yes. I modified Allegro, and the dynamically linked version does return
> path to executable. However, I noticed on MSDN that GetCommandLine()
> supports Unicode for 9x, while GetModuleFileName() does not. I guess
> this could be the reason it's not used?

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

> Or, maybe unicode names aren't important for files?

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

> 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).

--
Eric Botcazou



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