Hello
I have a problem in time to Call DLL which writed in C.
this property of Method:
short PerformCommandTCP( char *ipAddress, int tcpPortNumber, char *inXML, char *outXML )
the Last Parameter must be passing BYREF
my Code is:
[DllImport("AshraitPCI.dll")]
public static extern short PerformCommandTCP(string sIpAddress, int iTcpPortNumber, string sInXML, StringBuilder sOutXML);
after first time i get Error:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
please, tell me what is a problem!
thanks