Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionLIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Pin
stephen.hazel29-Jul-09 10:14
stephen.hazel29-Jul-09 10:14 
QuestionQuestion about Boost::Regex library Pin
msn9229-Jul-09 8:47
msn9229-Jul-09 8:47 
QuestionHow can I show my dialog on the TOP from other window dialog? Pin
THAQCD29-Jul-09 7:38
THAQCD29-Jul-09 7:38 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
Code-o-mat29-Jul-09 9:35
Code-o-mat29-Jul-09 9:35 
QuestionRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow29-Jul-09 9:45
David Crow29-Jul-09 9:45 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
THAQCD30-Jul-09 8:37
THAQCD30-Jul-09 8:37 
GeneralRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow1-Aug-09 16:56
David Crow1-Aug-09 16:56 
Question[MISC] - Operators - Meaning of operator & Pin
Thang29-Jul-09 6:59
Thang29-Jul-09 6:59 
AnswerRe: [MISC] - Operators - Meaning of operator & Pin
David Crow29-Jul-09 7:05
David Crow29-Jul-09 7:05 
AnswerRe: [MISC] - Operators - Meaning of operator & Pin
enhzflep29-Jul-09 8:27
enhzflep29-Jul-09 8:27 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
Maximilien29-Jul-09 9:48
Maximilien29-Jul-09 9:48 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
enhzflep29-Jul-09 10:00
enhzflep29-Jul-09 10:00 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
Thang30-Jul-09 6:10
Thang30-Jul-09 6:10 
QuestionSlider control on the status bar (where does WM_HSCROLL go?) Pin
BabakTaati29-Jul-09 5:46
BabakTaati29-Jul-09 5:46 
QuestionReading from and writing to the registry in windows Vista Pin
Sternocera29-Jul-09 5:00
Sternocera29-Jul-09 5:00 

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.