Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: TWinKey - шорткаты, табы, диски и всякая всячина 
Author Message
Worros



PostPosted: Sun Apr 19, 2009 20:03    Post subject: Reply with quote

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 плагинов.
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group