开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜