Unicode to ANSI conversion when launching an application

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Unicode to ANSI conversion when launching an application

Post by *fenix_productions »

I understand that if I will try to load an application via button bar like below:

Code: Select all

button6=sample.exe
cmd6=D:\tool\sample.exe
param6=%n
path6=D:\tool\
menu6=sample
file "test.txt" will be sent to application as the command:

Code: Select all

sample.exe test.txt
Let's assume that sample.exe cannot handle Unicode filenames. What will happen? Will there be the possibility to send an ANSI string (e.g. %nA parameter) or Unicode will be always given?

P.S.
An additional function ListLoadW will be added:
HWND __stdcall ListLoad(HWND ParentWin,WCHAR* FileToLoad,int ShowFlags);
You've forgot W in function name :shock:

[mod]This thread has been split from Preliminary information about Unicode support (TC7.5).

Hacker (Moderator)[/mod]
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2fenix_productions
The button bar has nothing to do with plugins, the topic of this thread. The button bar will use ShellExecuteExW to call programs. Windows itself does the Unicode->Ansi conversion for non-Unicode programs here.
You've forgot W in function name
Thanks, corrected it.
Author of Total Commander
https://www.ghisler.com
Post Reply