Click here to Skip to main content
15,914,419 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to add ATL object map in simple Win32 Application Pin
SiddharthAtw11-Feb-04 23:26
SiddharthAtw11-Feb-04 23:26 
GeneralRe: How to add ATL object map in simple Win32 Application Pin
Steve S12-Feb-04 6:04
Steve S12-Feb-04 6:04 
QuestionHow to launch a console simply from a wtl project?(Only launch) Pin
freehawk11-Feb-04 14:11
freehawk11-Feb-04 14:11 
GeneralCTreeViewCtrl Pin
TFrancis11-Feb-04 6:06
TFrancis11-Feb-04 6:06 
GeneralInsert ActiveX wizard trouble Pin
El'Cachubrey10-Feb-04 21:22
El'Cachubrey10-Feb-04 21:22 
GeneralRe: Insert ActiveX wizard trouble Pin
Anonymous11-Feb-04 10:47
Anonymous11-Feb-04 10:47 
GeneralTextOut a BSTR Pin
SiddharthAtw10-Feb-04 19:14
SiddharthAtw10-Feb-04 19:14 
GeneralRe: TextOut a BSTR Pin
Steve S10-Feb-04 23:19
Steve S10-Feb-04 23:19 
I'm guessing this is not a UNICODE build Wink | ;)
If this isn't an option, then you can use various methods to convert the BSTR to a regular char 'string'.

There's an atlconv.h which you can include, then have code like this;

{
USES_CONVERSION;
TCHAR* p = W2T( bBuff );
TextOut(....);
}

Alternatively if your client uses MFC you can use

CString tmp( yourBSTR );

since CString has a conversion method.
Another alternative is to use WideCharToMultiByte to do the conversion. (It's what the conversion macros in atlconv.h use, I believe...)

Steve S
GeneralRe: TextOut a BSTR Pin
SiddharthAtw11-Feb-04 1:17
SiddharthAtw11-Feb-04 1:17 
GeneralRe: TextOut a BSTR Pin
Steve S11-Feb-04 6:12
Steve S11-Feb-04 6:12 
GeneralRe: TextOut a BSTR Pin
Anonymous11-Feb-04 10:42
Anonymous11-Feb-04 10:42 
GeneralRe: TextOut a BSTR Pin
SiddharthAtw11-Feb-04 17:39
SiddharthAtw11-Feb-04 17:39 
GeneralRe: TextOut a BSTR Pin
Steve S11-Feb-04 22:32
Steve S11-Feb-04 22:32 
GeneralRe: TextOut a BSTR Pin
Brigsoft12-Feb-04 8:35
Brigsoft12-Feb-04 8:35 
GeneralGeting Main brower window corridnates Pin
macattack10-Feb-04 10:29
macattack10-Feb-04 10:29 
GeneralCWindow* to CWnd* Pin
Member 4085619-Feb-04 23:53
Member 4085619-Feb-04 23:53 
GeneralRe: CWindow* to CWnd* Pin
_Magnus_10-Feb-04 1:36
_Magnus_10-Feb-04 1:36 
GeneralRe: CWindow* to CWnd* Pin
Jörgen Sigvardsson11-Feb-04 8:50
Jörgen Sigvardsson11-Feb-04 8:50 
GeneralRestricting a BHO Pin
macattack9-Feb-04 12:39
macattack9-Feb-04 12:39 
GeneralRe: Restricting a BHO Pin
Jason De Arte10-Feb-04 7:04
Jason De Arte10-Feb-04 7:04 
GeneralRe: Restricting a BHO Pin
macattack10-Feb-04 7:18
macattack10-Feb-04 7:18 
QuestionHow to add a help file into a wtl dialog? Pin
freehawk8-Feb-04 19:27
freehawk8-Feb-04 19:27 
GeneralError in wizard Pin
SiddharthAtw8-Feb-04 18:16
SiddharthAtw8-Feb-04 18:16 
GeneralRe: Error in wizard Pin
Simon.W9-Feb-04 1:12
Simon.W9-Feb-04 1:12 
QuestionIdentical methods/properties in separate interfaces ? Pin
Alwin756-Feb-04 0:16
Alwin756-Feb-04 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.