Click here to Skip to main content
16,010,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert LPTSTR to BSTR? Pin
balakrishnan vinchu6-May-08 21:55
balakrishnan vinchu6-May-08 21:55 
GeneralRe: How to convert LPTSTR to BSTR? [modified] Pin
CPallini6-May-08 22:08
mveCPallini6-May-08 22:08 
GeneralRe: How to convert LPTSTR to BSTR? Pin
balakrishnan vinchu6-May-08 23:04
balakrishnan vinchu6-May-08 23:04 
GeneralRe: How to convert LPTSTR to BSTR? Pin
Mukesh Kumar6-May-08 23:13
Mukesh Kumar6-May-08 23:13 
GeneralRe: How to convert LPTSTR to BSTR? Pin
balakrishnan vinchu6-May-08 23:31
balakrishnan vinchu6-May-08 23:31 
GeneralRe: How to convert LPTSTR to BSTR? Pin
Mukesh Kumar6-May-08 23:37
Mukesh Kumar6-May-08 23:37 
GeneralRe: How to convert LPTSTR to BSTR? Pin
CPallini6-May-08 23:33
mveCPallini6-May-08 23:33 
AnswerRe: How to convert LPTSTR to BSTR? Pin
Rajkumar R6-May-08 23:16
Rajkumar R6-May-08 23:16 
balakrishnan vinchu wrote:
*outputstring = message.Detach();


you already taken the ownership of the BSTR, created and associated with the CComBSTR, by Detach method; hence CComBSTR is not expected to release the BSTR. If you are expecting so then you are not supposed to return that buffer as out parameter (outputstring). this outputstring is not released and i think, so the tool you used to detect memory leak points to the creator of it, CComBSTR message(lpMsgBuf);.
GeneralRe: How to convert LPTSTR to BSTR? Pin
balakrishnan vinchu6-May-08 23:34
balakrishnan vinchu6-May-08 23:34 
GeneralRe: How to convert LPTSTR to BSTR? Pin
Rajkumar R6-May-08 23:39
Rajkumar R6-May-08 23:39 
Questionlogging information and save as excel, How? [modified] Pin
general_era6-May-08 20:37
general_era6-May-08 20:37 
AnswerRe: logging information and save as excel, How? Pin
ThatsAlok6-May-08 21:19
ThatsAlok6-May-08 21:19 
AnswerRe: logging information and save as excel, How? Pin
ThatsAlok6-May-08 21:21
ThatsAlok6-May-08 21:21 
GeneralRe: logging information and save as excel, How? Pin
general_era6-May-08 21:48
general_era6-May-08 21:48 
GeneralRe: logging information and save as excel, How? Pin
ThatsAlok7-May-08 5:01
ThatsAlok7-May-08 5:01 
QuestionGame screenshot problem Pin
redclover6-May-08 20:00
redclover6-May-08 20:00 
AnswerRe: Game screenshot problem Pin
dehseth6-May-08 20:08
dehseth6-May-08 20:08 
GeneralRe: Game screenshot problem Pin
redclover7-May-08 0:48
redclover7-May-08 0:48 
AnswerRe: Game screenshot problem Pin
Rajkumar R7-May-08 0:23
Rajkumar R7-May-08 0:23 
GeneralRe: Game screenshot problem Pin
redclover7-May-08 0:46
redclover7-May-08 0:46 
QuestionDirectshow Installation Pin
duta6-May-08 19:57
duta6-May-08 19:57 
AnswerRe: Directshow Installation Pin
Rajkumar R6-May-08 20:21
Rajkumar R6-May-08 20:21 
QuestionMS Flex Grid & Visual C++ 6.0 [modified] Pin
dehseth6-May-08 19:25
dehseth6-May-08 19:25 
AnswerRe: MS Flex Grid & Visual C++ 6.0 Pin
Rajkumar R6-May-08 20:09
Rajkumar R6-May-08 20:09 
GeneralRe: MS Flex Grid & Visual C++ 6.0 Pin
dehseth7-May-08 0:05
dehseth7-May-08 0:05 

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.