Click here to Skip to main content
15,911,646 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHelp required in writing a class to write/read log data to XML files Pin
Rennie769-Feb-09 0:38
Rennie769-Feb-09 0:38 
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 
When creating an ATL COM project and adding an ATL Simple Object, if I create a method for that class that has one [in] BSTR parameter and one [out,retval] BSTR* parameter...

What can I assume or assert about the retval in this circumstance? In other words, do I need to check the BSTR to ensure that it does not already point to something and deallocate it if I decide to set the value? Is it mandatory to set the BSTR's value to something?

STDMETHODIMP CSomeATLClass::SomeATLClassMethod(BSTR bstrIn, BSTR* retVal)
{
	// Is retVal guaranteed to be pointing to a NULL BSTR at this point?

	/*
	Am I required to set the BSTR that retVal points to to something other than NULL
	before the method returns?
	*/

	return S_OK;
}


modified on Thursday, February 5, 2009 3:04 PM

AnswerRe: ATL Simple Object Methods and retval Pin
Jonathan Davies5-Feb-09 9:23
Jonathan Davies5-Feb-09 9:23 
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 

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.