Jul 11, 2021 at 7:22am
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 Jul 11, 2021 at 7:22am
Jul 14, 2021 at 9:14am
Last edited on Jul 18, 2021 at 2:11am
Jul 14, 2021 at 1:28pm
Also, ListView, as in System.Windows.Forms.ListView, has nothing at all to do with wxListView. The two are not equivalent in any way.