Hello,
I typically hang out in the C# forum, however I hope someone here can help.
I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing about C++, and this code is coming from a non dot-net version of C++
//char m_Command[30]; // <- is a class declared variable and is populated with data.
int nLength=0;
char checkSum[5];
long Total=123;
for(i=0;i<5;i++)
{
checkSum[i]=0;
}
sprintf(checkSum,"%04X",Total);
Can someone tell me what happens to checkSum with this sprintf method ?
I think I can formulate the string.Format syntax on my own once I know what this method is doing, but if you have a C# suggestion, I am open to that too.
Thanks in advance...