Click here to Skip to main content
16,004,991 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL fstream format question Pin
Nitron25-Mar-03 11:43
Nitron25-Mar-03 11:43 
GeneralRe: STL fstream format question Pin
Nemanja Trifunovic25-Mar-03 11:52
Nemanja Trifunovic25-Mar-03 11:52 
GeneralRe: STL fstream format question Pin
Nitron25-Mar-03 13:23
Nitron25-Mar-03 13:23 
General_bstr_t problem Pin
particle2k25-Mar-03 6:32
particle2k25-Mar-03 6:32 
GeneralRe: _bstr_t problem Pin
particle2k25-Mar-03 6:39
particle2k25-Mar-03 6:39 
GeneralRe: _bstr_t problem Pin
geo_m25-Mar-03 10:16
geo_m25-Mar-03 10:16 
GeneralRe: _bstr_t problem Pin
particle2k26-Mar-03 1:36
particle2k26-Mar-03 1:36 
GeneralRe: _bstr_t problem Pin
geo_m26-Mar-03 1:55
geo_m26-Mar-03 1:55 
just now have a short time, so cannot study your sample deeper. But the fact is, that generally it is wrong to pass L"Text" parameter when function expects BSTR.

In fact it depends how the function handles the parameter and in some cases it can work, but it is not good technique.

Consider the fact, that L"Text" provides only WCHAR - this means zero terminated string. But BSTR have before the string 4 bytes containing the length of the string. Then if the function relies on these 4 bytes and you do not provide them - it will just use some garbagge 4 bytes before the string and use it as a length - what will be the result noone can say.

Hope this helps.
QuestionHow can I change my WTL project to a COM server Pin
Remon Spekreijse24-Mar-03 3:57
Remon Spekreijse24-Mar-03 3:57 
GeneralEnable/Disable toolbar buttons Pin
Tommy2k22-Mar-03 8:00
Tommy2k22-Mar-03 8:00 
GeneralRe: Enable/Disable toolbar buttons Pin
Michael Dunn22-Mar-03 8:33
sitebuilderMichael Dunn22-Mar-03 8:33 
GeneralRe: Enable/Disable toolbar buttons Pin
Ed Gadziemski23-Mar-03 2:52
professionalEd Gadziemski23-Mar-03 2:52 
GeneralAnything for Netscape Plug-in Pin
Mahesh Perumal20-Mar-03 0:30
Mahesh Perumal20-Mar-03 0:30 
GeneralATL Object Wizard Pin
DuFF15-Mar-03 14:15
DuFF15-Mar-03 14:15 
GeneralRe: ATL Object Wizard Pin
Amit Dey26-Mar-03 13:02
Amit Dey26-Mar-03 13:02 
GeneralDDX_CONTROL with WTL Pin
roel_v215-Mar-03 10:36
roel_v215-Mar-03 10:36 
GeneralRe: DDX_CONTROL with WTL Pin
roel_v215-Mar-03 11:45
roel_v215-Mar-03 11:45 
GeneralRe: DDX_CONTROL with WTL Pin
Michael Dunn15-Mar-03 13:14
sitebuilderMichael Dunn15-Mar-03 13:14 
GeneralRe: DDX_CONTROL with WTL Pin
roel_v215-Mar-03 15:14
roel_v215-Mar-03 15:14 
GeneralRe: DDX_CONTROL with WTL Pin
Michael Dunn15-Mar-03 18:51
sitebuilderMichael Dunn15-Mar-03 18:51 
GeneralRe: DDX_CONTROL with WTL Pin
Ernesto D.16-Mar-03 12:11
Ernesto D.16-Mar-03 12:11 
GeneralRe: DDX_CONTROL with WTL Pin
Michael Dunn16-Mar-03 12:40
sitebuilderMichael Dunn16-Mar-03 12:40 
GeneralRe: DDX_CONTROL with WTL Pin
Ernesto D.16-Mar-03 15:59
Ernesto D.16-Mar-03 15:59 
GeneralATL/WTL vs MFC Pin
Jean-Marc Molina13-Mar-03 21:02
Jean-Marc Molina13-Mar-03 21:02 
GeneralRe: ATL/WTL vs MFC Pin
roel_13-Mar-03 21:54
roel_13-Mar-03 21:54 

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.