Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fastest data structure Pin
_Flaviu1-Jun-12 1:48
_Flaviu1-Jun-12 1:48 
GeneralRe: Fastest data structure Pin
CPallini1-Jun-12 6:30
mveCPallini1-Jun-12 6:30 
GeneralRe: Fastest data structure Pin
Erudite_Eric1-Jun-12 20:52
Erudite_Eric1-Jun-12 20:52 
GeneralRe: Fastest data structure Pin
Alan Balkany4-Jun-12 7:12
Alan Balkany4-Jun-12 7:12 
Questionis it possible to call web service from java script Pin
Subramani HM31-May-12 20:05
Subramani HM31-May-12 20:05 
AnswerRe: is it possible to call web service from java script Pin
Chandrasekharan P31-May-12 20:15
Chandrasekharan P31-May-12 20:15 
AnswerRe: is it possible to call web service from java script Pin
Iain Clarke, Warrior Programmer3-Jun-12 1:38
Iain Clarke, Warrior Programmer3-Jun-12 1:38 
QuestionDivision By Zero Exception Pin
ForNow31-May-12 2:54
ForNow31-May-12 2:54 
Hi,

I have a CWinThread::run overidable that is generating a division by zero at a call to IsIdleMessage which I cann't for the life of me figure out why

Any insight is appreciated

<pre lang='cpp'> int SockCLeintThread::Run()
{ ASSERT_VALID(this);
MSG m_msgCur;
// for tracking the idle time state
if (!flags.is_connected)
return TRUE;
BOOL bIdle = TRUE;
LONG lIdleCount = 0;
// acquire and dispatch messages until a WM_QUIT message is received.
for (;;)
{ phase1: // check to see if we can do idle work
while (bIdle && !::PeekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE))
{ // call OnIdle while in bIdle state
if (!OnIdle(lIdleCount++))
bIdle = FALSE; // assume "no idle" state
} // phase2: pump messages while available
do { // pump message, but quit on WM_QUIT
if (!PumpMessage())
return ExitInstance();
// reset "no idle" state after pumping "normal" message
<b>if (IsIdleMessage(&m_msgCur))<=== code causing exception </b> bIdle = TRUE;
lIdleCount = 0;}
} while (::PeekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE));
}
ASSERT(FALSE); // not reachable
} </pre>
AnswerRe: Division By Zero Exception Pin
Chris Losinger31-May-12 3:25
professionalChris Losinger31-May-12 3:25 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:43
ForNow31-May-12 12:43 
AnswerRe: Division By Zero Exception Pin
Albert Holguin31-May-12 9:35
professionalAlbert Holguin31-May-12 9:35 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:44
ForNow31-May-12 12:44 
GeneralCWinThread::Run works by turning optimization off #pragma optimize("",on) Pin
ForNow31-May-12 18:24
ForNow31-May-12 18:24 
AnswerRe: Division By Zero Exception Pin
Albert Holguin1-Jun-12 4:31
professionalAlbert Holguin1-Jun-12 4:31 
QuestionExtend std::string functionality Pin
forkbomber31-May-12 2:46
forkbomber31-May-12 2:46 
AnswerRe: Extend std::string functionality Pin
Chris Losinger31-May-12 3:27
professionalChris Losinger31-May-12 3:27 
AnswerRe: Extend std::string functionality Pin
Nemanja Trifunovic31-May-12 5:09
Nemanja Trifunovic31-May-12 5:09 
GeneralRe: Extend std::string functionality Pin
Albert Holguin31-May-12 9:56
professionalAlbert Holguin31-May-12 9:56 
AnswerRe: Extend std::string functionality PinPopular
Aescleal31-May-12 6:04
Aescleal31-May-12 6:04 
GeneralRe: Extend std::string functionality Pin
CPallini31-May-12 8:02
mveCPallini31-May-12 8:02 
GeneralRe: Extend std::string functionality Pin
Richard MacCutchan31-May-12 21:32
mveRichard MacCutchan31-May-12 21:32 
GeneralRe: Extend std::string functionality Pin
Aescleal1-Jun-12 0:51
Aescleal1-Jun-12 0:51 
QuestionHow to create your own Remote Desktop Application in Visual C++ or MFC Pin
Member 905298531-May-12 2:41
Member 905298531-May-12 2:41 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Richard MacCutchan31-May-12 3:54
mveRichard MacCutchan31-May-12 3:54 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Richard Andrew x6431-May-12 4:50
professionalRichard Andrew x6431-May-12 4:50 

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.