Click here to Skip to main content
15,897,226 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: efficiency copy vector into a second vector Pin
Andy Moore14-Feb-08 6:13
Andy Moore14-Feb-08 6:13 
QuestionTBSTYLE_EX_DRAWDDARROWS resize problem??? Pin
Rajesh_Yadav_8029-Jan-08 0:51
Rajesh_Yadav_8029-Jan-08 0:51 
Generalerror C2259: 'ATL::CComObject<base>' : cannot instantiate abstract class</base> Pin
zakkas248322-Jan-08 20:44
zakkas248322-Jan-08 20:44 
GeneralRe: error C2259: 'ATL::CComObject' : cannot instantiate abstract class Pin
Nathan Holt at EMOM23-Jan-08 5:18
Nathan Holt at EMOM23-Jan-08 5:18 
GeneralShell context menu Pin
nazovi11-Jan-08 3:48
nazovi11-Jan-08 3:48 
GeneralRe: Shell context menu Pin
led mike11-Jan-08 5:13
led mike11-Jan-08 5:13 
GeneralUnable to add variable for ATL Control Pin
KASR110-Jan-08 22:21
KASR110-Jan-08 22:21 
GeneralConvert CString to BSTR Pin
mandanani10-Jan-08 20:07
mandanani10-Jan-08 20:07 
Dear All,

Unable to convert CString to BSTR! Am I a stupid?! Mad | :mad:

I have an interface method which needs to convert CString to BSTR and return BSTR to caller.
AllocSysString of CString is not copying the data to BSTR.

STDMETHODIMP CTP_Interface_ErrorCode_Wrp::GetAdditionalDataFlag(BSTR *AddDataFlag)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
// TODO: Add your implementation code here<br />
<br />
CString temp = pTP_Interface_ErrorCode->GetAdditionalDataFlag();<br />
*AddDataFlag = temp.AllocSysString();<br />
<br />
return S_OK;<br />
}


Any one please help me.

Thanks very much, Nani
QuestionRe: Convert CString to BSTR Pin
CPallini10-Jan-08 21:59
mveCPallini10-Jan-08 21:59 
GeneralRe: Convert CString to BSTR Pin
mandanani10-Jan-08 23:17
mandanani10-Jan-08 23:17 
GeneralRe: Convert CString to BSTR Pin
Lim Bio Liong12-Jan-08 3:23
Lim Bio Liong12-Jan-08 3:23 
GeneralRe: Convert CString to BSTR Pin
ShilpiP24-Jan-08 21:08
ShilpiP24-Jan-08 21:08 
GeneralRe: Convert CString to BSTR Pin
ThatsAlok26-Feb-08 22:00
ThatsAlok26-Feb-08 22:00 
QuestionProblem with element event handling of WebBrowser Control Pin
javan10-Jan-08 16:28
javan10-Jan-08 16:28 
GeneralWTL Dialog repaint problem with Vista Pin
mirano10-Jan-08 7:55
mirano10-Jan-08 7:55 
GeneralWTL Menu problem Pin
damir_tk10-Jan-08 7:07
damir_tk10-Jan-08 7:07 
GeneralRe: WTL Menu problem Pin
Michael Dunn11-Jan-08 8:17
sitebuilderMichael Dunn11-Jan-08 8:17 
GeneralRe: WTL Menu problem Pin
damir_tk11-Jan-08 9:47
damir_tk11-Jan-08 9:47 
GeneralRe: WTL Menu problem Pin
damir_tk13-Jan-08 14:09
damir_tk13-Jan-08 14:09 
QuestionHow to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 16:51
mandanani8-Jan-08 16:51 
AnswerRe: How to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 20:41
mandanani8-Jan-08 20:41 
GeneralRe: How to access member functions of coclass from its Interface Pin
Nathan Holt at EMOM9-Jan-08 10:02
Nathan Holt at EMOM9-Jan-08 10:02 
GeneralCOM object and global pointers [modified] Pin
Monty27-Jan-08 21:54
Monty27-Jan-08 21:54 
GeneralRe: COM object and global pointers Pin
led mike8-Jan-08 5:04
led mike8-Jan-08 5:04 
GeneralOleDb, IRowsetIndex Pin
ArielR7-Jan-08 3:38
ArielR7-Jan-08 3:38 

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.