https://its.1c.ru/db/metod8dev#content:3221:hdoc
-
Add original tempalte files: https://its.1c.ru/db/files/1CITS/EXE/VNCOMPS/VNCOMPS.zip?country=ru The "1c-template" directory contains a template for creating components, developed by Native API technology. The "include" directory contains header files required for external component.
-
Edit files: AddInNative.h, AddInNative.cpp dllmain.cpp. Add comments, format code to common style.
-
Interface "IInitDoneBase" basic definition. Add static variable "gMemory" - a pointer to the 1C:Enterprise memory manager interface. Add static class AddInMemory - allocate memory for return values, wich can't be trasmitted completely through the stack.
-
Replace conversion functions by static class AddInConvert. Class convert between types: WCHAR_T <-> std::wstring and std::wstring <-> std::string. Change iternal varibales type from WCHAR_T to std::wstring. Add method ILanguageExtenderBase::RegisterExtensionAs definition.
-
"AddInLang.h" definition of accessory classes for easier use in main "AddIn" class.
- Class AddInData - encapsulate "tVariant" structure in class. Add constructors (default, copy), destructor and assigment operator. Add some data access functions. Edit default constructor, assigment operator.
- Class AddInBase - base class for ILangiageExtender property and method classes. Store name of property or function in english and russian.
- Class AddInProp - ILanguageExtender property class.
- Class AddInMeth - ILanguageExtender method class.
- Class AddInLang - template container for AddInBase classes.
-
Add "AddInMemory.h" for static class AddInMemory and two methods: "AllocWchar" and "AllocChar".
-
Add iProp and iMeth containers. Add "ILanguageExtender" definition in main "AddIn" class. Simplify addition of new properties and methods. Example in main "AddIn" class constructor.