how I can convert string to tchar in VC++?
string internetprotocol="127.4.5.6";
TCHAR szProxyAddr[16];
i want to set:
szProxyAddr=internetprotocol;
how i can do it?
how I can convert string to tchar in VC++?
string internetprotocol="127.4.5.6";
TCHAR szProxyAddr[16];
i want to set:
szProxyAddr=internetprotocol;
how i can do it?
_tcscpy_sis genericstrcpyversion which works both in Unicode and Multi-Character configurations.CA2Tconvertsconst char*toTCHAR*, according toszProxyAddrvariable type.Be careful with destination variable length.