is there any way to pass a string* input from c++ to C# project using GetProcAddress method
I want to pass a string* variable as input from c++ project to c# project through GetProcAddress method. 'through GetProcAddress' means that i'm trying to load c# dll into c++ project during runtime
I converted that string* to char** but it doesn't work (it gave me a wrong size value from c# project side ex: the size of string list from C++ side is 2 whereas in c# side the size became 1). is there any other solution please ! I really appreciate your help. thank you in advance.
exple
from c++ side:
typedef bool (METHOD1)(char *开发者_运维问答* strgVar, double dblVar)
METHOD1 aProc = (METHOD1)GetProcAddress(m_hDLL_, "methode1");
from c# side:
bool methode1(string[] strgVar, double[] dblVar)
精彩评论