Z
Z
zod ggs2019-01-18 17:00:35
.NET
zod ggs, 2019-01-18 17:00:35

How to establish data exchange between 1C 7.7 and COM in C #?

I want to write a component so that 1C 7.7 can take an array of complex objects from the component, and in reverse order, so that 1C 7.7 can transfer an array of objects to the component.
Articles are not necessary, everything is re-read, a code example is needed.
Last try example:

void GetData([MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]  ref object[] data)

врап=СоздатьОбъект("NetObjectToIDispatch45"); 
  array=врап.СоздатьМассив("System.Object", 10);
    test = СоздатьОбъект("1CHelper.test"); //моя компонента
  test.GetData(array);  // неизвестная ошибка

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kinash, 2019-01-18
@zodchiy

When I worked with my component in C++, I simply serialized an array of objects into a string (in my format), and in the component I created the necessary array, which I sent to the input of my algorithm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question