Single Post |
Topic: TWinKey - шорткаты, табы, диски и всякая всячина |
Author |
Message |
VadiMGP
|
Posted: Sun Apr 19, 2009 20:16 Post subject: |
|
|
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));
}
|
|
|
|
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|