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?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.