Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two simple questions ...

Status
Not open for further replies.

HadiRezaee

Technical User
Mar 9, 2001
165
IR
Hi all,

Q1.
I can convert LPSTR to LPWSTR:

USES_CONVERSION;
LPWSTR lp1 = A2W(szString);

Is any other way to convert LPSTR to LPWSTR ???

Q2.
What is difference between E_FAIL and S_FALSE ???

Thanks for helps ...


 
#include<comutil.h>
#include<iosrteam>
.....
_bstr_t x;
x = &quot;hello &quot;;
x += L&quot;world&quot;;
cout<<(LPSTR)x<<endl;
wcout<<(LPWSTR)x<<endl; Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top