I've read the PDF regarding the IEasylanguageObject and want to pass the {self} reference via my C++-Interop-DLL (TSLib_Interop.dll) to a C# DLL (TSLib.dll)
The C++-Project has CLR-Support enabled with option /clr
Code: Select all
// ----- C++ Interop-DLL
#include "stdafx.h"
#include "TSLib_Interop.h"
#include <comdef.h>
#import "C:\Program Files\TS Support\MultiCharts64\PLKit.dll" no_namespace
double __clrcall TestR(IEasyLanguageObject* pELObj, double _2) {
return TS::Class1::TestR(pELObj, _2);
}
// ------ C# DLL
using PLKit;
public class Class1
{
public static double TestR(ref IEasyLanguageObject elRef, double len)
{
return 2;
}
}