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

C / C++ / MFC

 
AnswerRe: String in C++. Pin
ShilpiP7-May-08 1:16
ShilpiP7-May-08 1:16 
QuestionRe: String in C++. Pin
T.RATHA KRISHNAN7-May-08 1:23
T.RATHA KRISHNAN7-May-08 1:23 
QuestionHow to convert LPTSTR to BSTR? Pin
balakrishnan vinchu6-May-08 20:53
balakrishnan vinchu6-May-08 20:53 
AnswerRe: How to convert LPTSTR to BSTR? Pin
Rajkumar R6-May-08 21:11
Rajkumar R6-May-08 21:11 
AnswerRe: How to convert LPTSTR to BSTR? Pin
ThatsAlok6-May-08 21:17
ThatsAlok6-May-08 21:17 
AnswerRe: How to convert LPTSTR to BSTR? Pin
CPallini6-May-08 21:37
mveCPallini6-May-08 21:37 
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 
In your FormatMessage call
balakrishnan vinchu wrote:
retval = FormatMessage(
messageflags,
OLE2T(formatstring),
NULL,
LANG_SYSTEM_DEFAULT,
(LPTSTR) &lpMsgBuf,
0,
(va_list*)&argsarray[0]
);


The line
(LPTSTR) &lpMsgBuf,

is wrong. It should be simply
lpMsgBuf,


Forget it.


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


modified on Wednesday, May 7, 2008 5:40 AM

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 
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 

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.