Single Post |
Topic: TWinKey - шорткаты, табы, диски и всякая всячина |
Author |
Message |
Worros
|
Posted: Sun Apr 19, 2009 20:03 Post subject: |
|
|
VadiMGP wrote: | Все равно не понял. Какую конкретно проблему решает появление нового расширения? | Упрощает переделку существующих плагинов на юникод.Все юникодные функции выносятся в отдельный файл.
Quote: | . Two separate plugins, one Unicode, one Ansi
This method is especially suited for C/C++ plugins. Have a look at the WebDAV plugin sources for a sample plugin using this method. Here are the steps to convert an Ansi plugin to Unicode this way:
1. Replace all string references like char* and LPSTR by TCHAR*
2. Replace all string handing functions like strchr or strcpy by _tcschr and _tcscpy
3. Put TEXT() around all string constants
4. Make a copy of the current project within the same project map. Add the UNICODE and _UNICODE defines in the compiler settings of the Unicode project
5. Remove the .def file from the Unicode project. Create a new .def file, where the functions are defined as follows:
FsFindFirstW=FsFindFirst
FsFindNextW=FsFindNext
FsFindClose
...
Note the difference between Unicode and non-Unicode functions (see list above which are Unicode)
6. Set the output file to the name <pluginname>.uwfx, in the same directory as the .wfx file from the first project
Total Commander will try to load a .uwfx file with the same name as the .wfx file on Unicode systems (Win NT, 2000, XP, Vista, 7). |
Из справки по написанию WFX плагинов. |
|
|
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|