Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCRect Pin
kumar sanghvi29-Jul-09 18:45
kumar sanghvi29-Jul-09 18:45 
Questionhow to convert the matlab left matrix division \ into cv++ with opencv? Pin
DevelopmentNoob29-Jul-09 16:23
DevelopmentNoob29-Jul-09 16:23 
Question"Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 16:11
nautilusvn29-Jul-09 16:11 
AnswerRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 16:51
professionalRichard Andrew x6429-Jul-09 16:51 
GeneralRe: "Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 17:25
nautilusvn29-Jul-09 17:25 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 17:31
professionalRichard Andrew x6429-Jul-09 17:31 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 17:35
professionalRichard Andrew x6429-Jul-09 17:35 
GeneralRe: "Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 20:27
nautilusvn29-Jul-09 20:27 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6430-Jul-09 4:14
professionalRichard Andrew x6430-Jul-09 4:14 
AnswerRe: "Assertion Failed" with thread and device context Pin
krmed30-Jul-09 6:53
krmed30-Jul-09 6:53 
QuestionPassing multi-dimensional array from C# to Win32 C++ dll? [modified] [MOVED TO C++/CLI] Pin
devvvy29-Jul-09 16:03
devvvy29-Jul-09 16:03 
AnswerRe: Passing multi-dimensional array from C# to Win32 C++ dll? Pin
Richard Andrew x6429-Jul-09 16:48
professionalRichard Andrew x6429-Jul-09 16:48 
Questionerror C1083 Pin
shabbychic29-Jul-09 15:57
shabbychic29-Jul-09 15:57 
AnswerRe: error C1083 Pin
Richard Andrew x6429-Jul-09 16:47
professionalRichard Andrew x6429-Jul-09 16:47 
Questionhow to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:06
Neil Jigger29-Jul-09 15:06 
AnswerRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 15:45
professionalRichard Andrew x6429-Jul-09 15:45 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:48
Neil Jigger29-Jul-09 15:48 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:00
professionalRichard Andrew x6429-Jul-09 16:00 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:08
Neil Jigger29-Jul-09 16:08 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:13
professionalRichard Andrew x6429-Jul-09 16:13 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:17
Neil Jigger29-Jul-09 16:17 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 18:38
Neil Jigger29-Jul-09 18:38 
QuestionLPTSTR concatenation Pin
akhanal29-Jul-09 10:20
akhanal29-Jul-09 10:20 
Hi all,

I am converting two floats to LPTSTR and trying to concatenate them. I have tried _tcscat, StringCbCatW, lstrcat, and lstrcatW. With all of these methods, after concatenation, I am only getting the value in "message" but not the concatenated part of "message1". And the application that uses this file (dll) crashes after showing the first part.

Can someone please suggest something? Any help is appreciated.

Here is a part of the code:

float a = 45.670;
float b = 2323.78;
LPTSTR message = TEXT("");
LPTSTR message1 = TEXT("");

std::stringstream sstr;
sstr << a;
std::string str1 = sstr.str();
message = (LPTSTR)str1.c_str();

std::stringstream sstr1;
sstr1 << b;
std::string str2 = sstr1.str();
message1 = (LPTSTR)str2.c_str();

_tcscat(message,message1);
//StringCbCatW(message,BUFSIZE,message1);
//lpvMessage = lstrcatW(message,message1);
QuestionRe: LPTSTR concatenation Pin
David Crow29-Jul-09 10:50
David Crow29-Jul-09 10:50 
AnswerRe: LPTSTR concatenation Pin
akhanal29-Jul-09 11:18
akhanal29-Jul-09 11:18 

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.