I need create a module that allowed to dynamically load different versions same DLL and create COM-object.
As example, on computer might be installed 3 different versions 1C:Enterprise, its COM-objects store in this DLL (C++):
C:\Program Files (x86)\1cv8\8.3.4.389\bin\comcntr.dll
C:\Program Files (x86)\1cv8\8.3.3.156\bin\comcntr.dll
C:\Program Files (x86)\1cv8\8.3.3.322\bin\comcntr.dll
And it's all the same COM-object - "v83.ComConnector".
Is there any way to create 3 Com-object at same time in my application?
I try to use "Assembly.LoadFrom" and LoadLibrary from kernel32.dll, but it doesn't work.
Why I need to use different versions? - very often on 1 physical server working more than 1 version of 1C-server (and all of it have not the same version number) - for Russian developer who work with 1C it is normal. I can not migrate all application to the same version. So I need to connect via COM-object to different 1C-servers. But I can not do it using just one COM-object - version of the COM object and the server must be equal.