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
VadiMGP



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

Worros Знаешь, при всем желании мне трудно назвать это упрощением по сравнению с
Quote:
Combined Unicode/Ansi plugin

1. Get my sample plugin fsplugin (file system plugins section) even if you write a different type of plugin!

2. Add the files cunicode.h and cunicode.cpp to your project. They contain various functions to make Unicode support easier.

3. Convert your existing functions to Unicode and rename them to FunctionNameW. For all file functions like CreateFile, do not call their Unicode counterpart CreateFileW directly. Instead, call the functions from cunicode.cpp like CreateFileT. These functions automatically call the right Unicode or Ansi function, and even support file name lengths >259 characters!

4. For each converted function like FunctionNameW, recreate a function FunctionName which you call this way:

int __stdcall FunctionName(char* SomeString1,char* SomeString2)

{

WCHAR SomeString1W[wdirtypemax],SomeString2W[wdirtypemax];
return FunctionNameW(awfilenamecopy(SomeString1W,SomeString1),awfilenamecopy(SomeString2W,SomeString2));
}
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group