control parameter

DLL C++
1
2
3
4
5
6
void GetData(wxListView *listView1)
{
	int iCount = listView1->GetItemCount();

	MessageBox(NULL, L"iCount = " + std::to_string(iCount), L"", MB_OK);
}


C# TO CALL
1
2
[DllImport("TestDLL.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void GetData(ListView listView1);


I want to assign listview of c# to c++ is there any way to do it


Last edited on
I don't think so, maybe someone else could help. Check this control tutorial: https://www.theengineeringprojects.com/2020/04/introduction-to-control-systems.html
Last edited on
Also, ListView, as in System.Windows.Forms.ListView, has nothing at all to do with wxListView. The two are not equivalent in any way.
Topic archived. No new replies allowed.