Sorry about such a ridicules question, but I have no clue what’s going on.
I'm Using Visual Studio 08, programming in C++.
I have a Serial Port created with:
Expand|Select|Wrap|Line Numbers
- static System::IO::Ports::SerialPort^ SP1= (gcnew System::IO::Ports::SerialPort());
- SP1->PortName="COM1";
- SP1->BaudRate=115200;
- SP1->Open();
Expand|Select|Wrap|Line Numbers
- char X[2]={'0','0'};
- Console::WriteLine(X[0].ToString());
- cout<<X[0]<<endl;
- SP1->WriteLine(X[2].ToString());
"[Console]"
48
0
"[/Console]"
"[COM1]"
48
"[COM1]"
those 48's should be 0's. Since If I do:
Expand|Select|Wrap|Line Numbers
- System::String^ out="0";
- SP1->WriteLine(out);
I wouldn't really like to make my own char2String converter with a switch case of about 75 elements (I need most of the symbols as well as upper/lower/#'s), not knowing if it would even work.
Anyone have any other options? Any Replies are much appreciated.
Thank you,
T