samplelocales_mod.c

来自「BREW应用程序界面开发的控件集」· C语言 代码 · 共 24 行

C
24
字号
/*===========================================================================
  || examplelocales specific xModule stuff
  ===========================================================================*/
#include "AEEStdLib.h"
#include "AEEShell.h"           /* Shell interface definitions */

#include "aeeclsid_localedede.bid"
#include "aeeclsid_localeengb.bid"

// extern declarations of the NEW routines supported by this module.
// In this sample extension, ENGB and DEDE locales are implemented.
// Their create routines are declared here and called below.
extern int xModule_LocaleENGBCreateInstance(IModule *module, IShell *shell, AEECLSID idClass, void **pp);
extern int xModule_LocaleDEDECreateInstance(IModule *module, IShell *shell, AEECLSID idClass, void **pp);

int xModule_CreateInstance(IModule *module, IShell *shell, AEECLSID idClass, void **pp)
{
   if (idClass == AEECLSID_LOCALEENGB)
      return xModule_LocaleENGBCreateInstance(module, shell, idClass, pp);
   else if (idClass == AEECLSID_LOCALEDEDE)
      return xModule_LocaleDEDECreateInstance(module, shell, idClass, pp);

   return (ECLASSNOTSUPPORT);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?