Click here to Skip to main content
15,900,461 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionbackground drawing Pin
invinJerry9-Oct-06 19:22
invinJerry9-Oct-06 19:22 
QuestionHICON problem Pin
HakunaMatada9-Oct-06 1:03
HakunaMatada9-Oct-06 1:03 
AnswerRe: HICON problem Pin
Steve Echols9-Oct-06 19:52
Steve Echols9-Oct-06 19:52 
GeneralRe: HICON problem Pin
HakunaMatada9-Oct-06 21:13
HakunaMatada9-Oct-06 21:13 
AnswerRe: HICON problem Pin
invinJerry9-Oct-06 22:42
invinJerry9-Oct-06 22:42 
QuestionATL COM Exe program Pin
Sakthiu8-Oct-06 18:43
Sakthiu8-Oct-06 18:43 
AnswerRe: ATL COM Exe program Pin
FouziaSham15-Oct-06 21:34
FouziaSham15-Oct-06 21:34 
QuestionBug in CComBSTR::ToLower and ::ToUpper ??? Pin
Blake Miller6-Oct-06 8:28
Blake Miller6-Oct-06 8:28 
In the two places I have boldened below, should the code be checking for 'b' to be NULL instead of psz, after the call to T2BSTR ??? Unsure | :~

	HRESULT ToLower()<br />
	{<br />
		USES_CONVERSION;<br />
		if (m_str != NULL)<br />
		{<br />
			LPTSTR psz = CharLower(OLE2T(m_str));<br />
			if (psz == NULL)<br />
				return E_OUTOFMEMORY;<br />
			BSTR b = T2BSTR(psz);<br />
			if (psz == NULL)<br />
				return E_OUTOFMEMORY;<br />
			SysFreeString(m_str);<br />
			m_str = b;<br />
		}<br />
		return S_OK;<br />
	}<br />
<br />
	HRESULT ToUpper()<br />
	{<br />
		USES_CONVERSION;<br />
		if (m_str != NULL)<br />
		{<br />
			LPTSTR psz = CharUpper(OLE2T(m_str));<br />
			if (psz == NULL)<br />
				return E_OUTOFMEMORY;<br />
			BSTR b = T2BSTR(psz);<br />
			if (psz == NULL)				return E_OUTOFMEMORY;<br />
			SysFreeString(m_str);<br />
			m_str = b;<br />
		}<br />
		return S_OK;<br />
	}



Any sufficiently gross incompetence is nearly indistinguishable from malice.

AnswerRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
prasad_som17-Oct-06 19:10
prasad_som17-Oct-06 19:10 
GeneralRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
Blake Miller18-Oct-06 4:11
Blake Miller18-Oct-06 4:11 
GeneralRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
prasad_som18-Oct-06 4:23
prasad_som18-Oct-06 4:23 
Questionnew to stl..please help Pin
eusto5-Oct-06 23:51
eusto5-Oct-06 23:51 
AnswerRe: new to stl..please help Pin
led mike6-Oct-06 4:51
led mike6-Oct-06 4:51 
AnswerRe: new to stl..please help Pin
Roger Stoltz6-Oct-06 5:02
Roger Stoltz6-Oct-06 5:02 
AnswerRe: new to stl..please help Pin
Rob Caldecott6-Oct-06 5:03
Rob Caldecott6-Oct-06 5:03 
GeneralRe: new to stl..please help Pin
George L. Jackson6-Oct-06 11:26
George L. Jackson6-Oct-06 11:26 
GeneralRe: new to stl..please help Pin
Anonymuos10-Oct-06 5:26
Anonymuos10-Oct-06 5:26 
GeneralRe: new to stl..please help Pin
Kevin McFarlane10-Oct-06 5:53
Kevin McFarlane10-Oct-06 5:53 
GeneralRe: new to stl..please help Pin
eusto12-Oct-06 9:02
eusto12-Oct-06 9:02 
GeneralRe: new to stl..please help Pin
Eytukan12-Oct-06 18:14
Eytukan12-Oct-06 18:14 
QuestionhInstance Pin
Demian Panello2-Oct-06 9:35
Demian Panello2-Oct-06 9:35 
AnswerRe: hInstance Pin
Demian Panello2-Oct-06 9:44
Demian Panello2-Oct-06 9:44 
GeneralRe: hInstance Pin
Michael Dunn2-Oct-06 9:55
sitebuilderMichael Dunn2-Oct-06 9:55 
GeneralRe: hInstance Pin
Demian Panello2-Oct-06 10:20
Demian Panello2-Oct-06 10:20 
QuestionQuick way to generate C++ files from an IDL file Pin
TClarke2-Oct-06 6:07
TClarke2-Oct-06 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.