Hello,
I am currently trying to interact with a unmanaged DLL (C++). I am attempting to call a method from the DLL that takes a List of unsigned longs and returns a status code.
Since List is of type General, this can not be marshaled so I am trying to send an Array instead. An issue arises because I need to call this Array later to get data from it and there is no method in the DLL to return this List (Array) to me.
I am trying to send a pointer of my Array in C# so I can read what is in the Array after the function in C++ inserts data into this Array.
from my main function
=============== ===
myModules = new ArrayList();
int status = CDLL.GetModuleL ist(myModules);
from CDLL
========
[DLLImport("myDL L.dll", EntryPoint="Get ModuleList"]
public static extern int GetModuleList(A rrayList moduleList);
This does not seem to work (I am not dealing with the pointers right now, I was just trying to call the function correctly).
I am currently trying to interact with a unmanaged DLL (C++). I am attempting to call a method from the DLL that takes a List of unsigned longs and returns a status code.
Since List is of type General, this can not be marshaled so I am trying to send an Array instead. An issue arises because I need to call this Array later to get data from it and there is no method in the DLL to return this List (Array) to me.
I am trying to send a pointer of my Array in C# so I can read what is in the Array after the function in C++ inserts data into this Array.
from my main function
=============== ===
myModules = new ArrayList();
int status = CDLL.GetModuleL ist(myModules);
from CDLL
========
[DLLImport("myDL L.dll", EntryPoint="Get ModuleList"]
public static extern int GetModuleList(A rrayList moduleList);
This does not seem to work (I am not dealing with the pointers right now, I was just trying to call the function correctly).
Comment