Click here to Skip to main content
15,881,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can we invoke any event as a Mouse Left/Right button action? Pin
Jijo.Raj8-Apr-09 18:04
Jijo.Raj8-Apr-09 18:04 
GeneralRe: Can we invoke any event as a Mouse Left/Right button action? Pin
THAQCD9-Apr-09 8:18
THAQCD9-Apr-09 8:18 
Questionhelp me ... i have some errors Pin
kiemxai8-Apr-09 10:37
kiemxai8-Apr-09 10:37 
AnswerRe: help me ... i have some errors Pin
Stuart Dootson8-Apr-09 11:01
professionalStuart Dootson8-Apr-09 11:01 
Questionproblems with converting from string to int Pin
Aljaz1118-Apr-09 10:32
Aljaz1118-Apr-09 10:32 
AnswerRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 10:57
professionalStuart Dootson8-Apr-09 10:57 
GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 11:26
Aljaz1118-Apr-09 11:26 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 12:00
professionalStuart Dootson8-Apr-09 12:00 
Aljaz111 wrote:
CString a="111"
double x=_ttoi[a] doesn't work..


Function call syntax helps...this code (note - it's _tstof, not _ttof - MSDN is a little ambiguous here)

{
   CString a("11");
   const int i = _ttoi(a);
   const double d = _tstof(a);
   std::cout << i << std::endl;
   std::cout << d << std::endl;
}
{
   CString a("11.5");
   const int i = _ttoi(a);
   const double d = _tstof(a);
   std::cout << i << std::endl;
   std::cout << d << std::endl;
}


produces this

11
11
11
11.5


Aljaz111 wrote:
How to delete decimals and dot for decimals for double x with string.format(...,x)?


Sorry, don't know what you mean.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 12:31
Aljaz1118-Apr-09 12:31 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 12:46
professionalStuart Dootson8-Apr-09 12:46 
QuestionWhy DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 9:16
ernst200205308-Apr-09 9:16 
AnswerRe: Why DllMain is not be called when I load the DLL file? Pin
Stuart Dootson8-Apr-09 9:22
professionalStuart Dootson8-Apr-09 9:22 
JokeRe: Why DllMain is not be called when I load the DLL file? Pin
CPallini8-Apr-09 10:12
mveCPallini8-Apr-09 10:12 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 12:37
ernst200205308-Apr-09 12:37 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
Stuart Dootson8-Apr-09 13:22
professionalStuart Dootson8-Apr-09 13:22 
QuestionDetecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 7:01
tareqsiraj8-Apr-09 7:01 
AnswerRe: Detecting Windows SDK version using macros Pin
Stuart Dootson8-Apr-09 8:38
professionalStuart Dootson8-Apr-09 8:38 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 9:00
tareqsiraj8-Apr-09 9:00 
GeneralRe: Detecting Windows SDK version using macros Pin
Stuart Dootson8-Apr-09 9:20
professionalStuart Dootson8-Apr-09 9:20 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 9:53
tareqsiraj8-Apr-09 9:53 
AnswerRe: Detecting Windows SDK version using macros Pin
Randor 9-Apr-09 1:12
professional Randor 9-Apr-09 1:12 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj9-Apr-09 7:35
tareqsiraj9-Apr-09 7:35 
QuestionNew Thread and WM_QUIT Pin
TheScientistIsDead8-Apr-09 7:00
TheScientistIsDead8-Apr-09 7:00 
AnswerRe: New Thread and WM_QUIT Pin
Stuart Dootson8-Apr-09 8:29
professionalStuart Dootson8-Apr-09 8:29 
GeneralRe: New Thread and WM_QUIT Pin
TheScientistIsDead8-Apr-09 16:44
TheScientistIsDead8-Apr-09 16:44 

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.