I have a VB .Net DLL program with the following code:
Expand|Select|Wrap|Line Numbers
- Public Structure testParams
- Public iFirst As Integer
- Public iSecond As Integer
- End Structure
- Public Class clsKpdUI
- Public Function ShowForm(ByVal Param1 As testParams) As Integer
- ' Code
- End Function
- End Class
Expand|Select|Wrap|Line Numbers
- struct testParams {
- int iFirst;
- int iSecond;
- };
- kpdUI::clsKpdUI myUI;
- testParams tp;
- tp.iFirst = 4;
- tp.iSecond = 3;
- myintR = myUI.ShowForm3(tp);
Error 1 error C2664: 'kpdUI::clsKpdUI::ShowForm' : cannot convert parameter 1 from 'testParams' to 'kpdUI::testParams' c:\test\Form1.h 133 TestKpdUIcpp
How do I correct this error?
Thank,
Gary