Skip to content

The template for creating the external components, developed by Native API technology.

Notifications You must be signed in to change notification settings

xinarivar/1c-template

Repository files navigation

1c-tempalte

https://its.1c.ru/db/metod8dev#content:3221:hdoc

  1. 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.

  2. Edit files: AddInNative.h, AddInNative.cpp dllmain.cpp. Add comments, format code to common style.

  3. 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.

  4. 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.

  5. "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.
  6. Add "AddInMemory.h" for static class AddInMemory and two methods: "AllocWchar" and "AllocChar".

  7. 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.

About

The template for creating the external components, developed by Native API technology.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published