I'm something of a C++ novice and I have this legacy code C++ program I am attampting to update. Basically, this program scrapes the contents of an emulator, formats, and then sends the data to a specialized printer. I am attempting to check the value of a single-character field on the emulator to determine how to format the printer data and am running into problems.
As I understand it, wBillingType has a length of two to accomodate some sort of terminating value ('/o', IIRC), but I'm obviously doing something wrong becuase the statement never evaluates as TRUE. It's possible I am not setting wBillingTYpe correctly, but I am able to display the value as a character followed by a low-hex value. Any ideas of the obvious solution I am missing?
Code:
static char wBillingType[2];
[blah blah assign value blah]
if (wBillingType == "T") {
[blah blah]
}
else {
[blah blah]
}