MyApp.exe is a FB-compiled file. In the code of the file are the following three lines which extract the name of the program ('MyApp'):
Code: Select all
Dim As Wstring * 500 appn = Command(0)
appn = Mid(appn, InStrRev(appn, "\") + 1)
If Instr(appn, ".exe") Then appn = Left(appn, len(appn) - 4)
That works fine, of course, appn is set to 'MyApp'.
However, the above code lines don't work if MyApp.exe is renamed to MyAppč.exe: the unicode character is lost, appn is set to 'MyAppc'!
Has this problem already been solved here?