Answer the question
In order to leave comments, you need to log in
COM port structure COMMPROP, all data in WORD and DWORD, how to display them on the form as text?
I want to display the data of the COMMPROP structure in a TextBox as a string. For example, the field dwProvSubType = PST_FAX.
Everything is described in the WinBase.h file #define PST_FAX ((DWORD)0x00000021); Is it that I need to create a function for translation ... or is there something ready ... like CONVERT
Answer the question
In order to leave comments, you need to log in
{
switch (var)
{
case PST_FAX:
tupePort = L"PST_FAX";
break;
case PST_LAT:
tupePort = L"PST_LAT";
break;
case PST_MODEM:
tupePort = L"PST_MODEM";
break;
case PST_NETWORK_BRIDGE:
tupePort = L"PST_NETWORK_BRIDGE";
break;
case PST_PARALLELPORT:
tupePort = L"PST_PARALLELPORT";
break;
case PST_RS232:
tupePort = L"PST_RS232";
break;
case PST_RS422:
tupePort = L"PST_RS422";
break;
case PST_RS423:
tupePort = L"PST_RS423";
break;
case PST_RS449:
tupePort = L"PST_RS449";
break;
case PST_SCANNER:
tupePort = L"PST_SCANNER";
break;
case PST_TCPIP_TELNET:
tupePort = L"PST_TCPIP_TELNET";
break;
case PST_UNSPECIFIED:
tupePort = L"PST_UNSPECIFIED";
break;
case PST_X25:
tupePort = L"PST_X25";
break;
define:
tupePort = L"";
break;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question