Click here to Skip to main content
15,892,697 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Help required in writing a class to write/read log data to XML files Pin
Stuart Dootson9-Feb-09 2:33
professionalStuart Dootson9-Feb-09 2:33 
GeneralRe: Help required in writing a class to write/read log data to XML files Pin
led mike10-Feb-09 5:28
led mike10-Feb-09 5:28 
GeneralRe: Help required in writing a class to write/read log data to XML files Pin
Rennie7610-Feb-09 21:38
Rennie7610-Feb-09 21:38 
AnswerRe: Help required in writing a class to write/read log data to XML files Pin
led mike10-Feb-09 5:31
led mike10-Feb-09 5:31 
GeneralRe: Help required in writing a class to write/read log data to XML files Pin
Stuart Dootson10-Feb-09 6:37
professionalStuart Dootson10-Feb-09 6:37 
GeneralRe: Help required in writing a class to write/read log data to XML files Pin
Rennie7610-Feb-09 22:00
Rennie7610-Feb-09 22:00 
QuestionATL Simple Object Methods and retval [modified] Pin
bob169725-Feb-09 8:32
bob169725-Feb-09 8:32 
AnswerRe: ATL Simple Object Methods and retval Pin
Jonathan Davies5-Feb-09 9:23
Jonathan Davies5-Feb-09 9:23 
An [out] BSTR* will not point to a valid BSTR when your method is entered; it will not be set to NULL either so will contain some invalid value.
Setting it to NULL on entering the method I would consider good practice - at least you know what its set to at that point. Your interface definition will say a BSTR is returned so a caller using it might not be too happy to have NULL returned where a string is expected. Using an assert to check its not null in the calling code would be a good idea.
Personally I like code to be simple in that if a BSTR is expected that's what I get, conveying some deeper meaning by setting the pointer to NULL, complicates things as far as I'm concerned. If you decide for some reason you can't return a BSTR why not use the HRESULT to convey this information?
GeneralRe: ATL Simple Object Methods and retval Pin
bob169725-Feb-09 9:48
bob169725-Feb-09 9:48 
QuestionSinking IE printpreview toolbar events Pin
TClarke5-Feb-09 0:46
TClarke5-Feb-09 0:46 
AnswerRe: Sinking IE printpreview toolbar events Pin
Stuart Dootson5-Feb-09 6:29
professionalStuart Dootson5-Feb-09 6:29 
GeneralRe: Sinking IE printpreview toolbar events Pin
TClarke6-Feb-09 0:22
TClarke6-Feb-09 0:22 
QuestionWTL 8.0 tabbrowser sample crash Pin
Babil_JR3-Feb-09 4:40
Babil_JR3-Feb-09 4:40 
AnswerRe: WTL 8.0 tabbrowser sample crash Pin
Jonathan Davies3-Feb-09 5:23
Jonathan Davies3-Feb-09 5:23 
AnswerRe: WTL 8.0 tabbrowser sample crash Pin
Stuart Dootson3-Feb-09 5:36
professionalStuart Dootson3-Feb-09 5:36 
GeneralRe: WTL 8.0 tabbrowser sample crash Pin
Babil_JR4-Feb-09 0:09
Babil_JR4-Feb-09 0:09 
Questionget SafeArray data...... Pin
vijay.victory1-Feb-09 20:06
vijay.victory1-Feb-09 20:06 
AnswerRe: get SafeArray data...... Pin
Jonathan Davies1-Feb-09 23:44
Jonathan Davies1-Feb-09 23:44 
GeneralRe: get SafeArray data...... Pin
vijay.victory2-Feb-09 18:32
vijay.victory2-Feb-09 18:32 
GeneralRe: get SafeArray data...... Pin
Jonathan Davies2-Feb-09 23:21
Jonathan Davies2-Feb-09 23:21 
QuestionProblem in Registerign COM Add-In Pin
SNI29-Jan-09 22:12
SNI29-Jan-09 22:12 
AnswerRe: Problem in Registerign COM Add-In Pin
«_Superman_»1-Feb-09 1:02
professional«_Superman_»1-Feb-09 1:02 
QuestionATL Add-In and MFC DLL communication problem? Pin
SNI23-Jan-09 1:50
SNI23-Jan-09 1:50 
AnswerRe: ATL Add-In and MFC DLL communication problem? Pin
Roger Stoltz23-Jan-09 6:07
Roger Stoltz23-Jan-09 6:07 
GeneralRe: ATL Add-In and MFC DLL communication problem? Pin
SNI29-Jan-09 2:12
SNI29-Jan-09 2:12 

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.