oBuffer = (object)Buffer;
I suppose the problem is with this (and similar) lines. You can try passing
the Buffer variable itself as an argument. Unfortunately, I have never
worked with the ActiveX you use so I probably cannot be more helpful.
Then, this type cast:
(char) 13
looks suspicious to me. You can try specifying special characters like this:
Buffer = "AT+CMGF = 1\x0d";
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
I don´t know what is the problem but my gsm modem doesn´t
work with this lines of code
Buffer = "AT+CMGF = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
Buffer = "AT+CSDH = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
Buffer = "AT+CSMP = 17,167,0,0" +
(char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
Buffer = "AT+CSCA
= '+34607003115'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
Buffer = "AT+CMGS
= '+34624713696'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
Buffer = "this is a SMS from my
computer" + (char) 26;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);
this is a part of the code of one example that I obtain
from AxNETCommOCX, any suggestion??