hi,all
I use a c++ (build in vc6) dll in c#, do I need to care about the calling
convention? Cause it always gives me a unexpected calling!
I used it in c# like this:
[DllImport("mydl.dll")]
public static extern string GetMC(string strID1, string strID2);
private void button6_Click(object sender, System.EventArgs e)
{
.........
string strMC = GetMC(str1,str2);//here, it show a error, External
component has thrown an exception.
}
I don't know what is wrong. I use it in vc6 project, no problem.
In mydll.dll, the GetMC was defined like: CString WINAPI GetMC(CString str1,
CString str2)
Thanks