I created a sample application in VC++ with two constructors....
Num1 = 10;
Num2 = 5;
CFirst_ATL(int val1,int val2)
Num1 = val1;
Num2 = val2;
I referenced the dll to my c# application and works fine for default constructor.
I want to call parameterized constructor from my c# application for that I used this code
IFirst_ATL obj = new First_ATL(2,1);
Even after this, value is assigned with 10 and 5 only not 1 and 2.
Can anyone help me on this?
Thanks in advance.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)