Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SetDIBits and GetDIBits in MFC? Pin
CPallini28-Aug-09 1:37
mveCPallini28-Aug-09 1:37 
GeneralRe: SetDIBits and GetDIBits in MFC? Pin
Hamid_RT28-Aug-09 4:59
Hamid_RT28-Aug-09 4:59 
GeneralRe: SetDIBits and GetDIBits in MFC? Pin
CPallini28-Aug-09 5:59
mveCPallini28-Aug-09 5:59 
AnswerRe: SetDIBits and GetDIBits in MFC? Pin
yoaz28-Aug-09 9:54
yoaz28-Aug-09 9:54 
QuestionDetermine Boot Disk Pin
Abinash Mohanty27-Aug-09 23:50
Abinash Mohanty27-Aug-09 23:50 
AnswerRe: Determine Boot Disk Pin
Mohan Ramachandra28-Aug-09 1:18
Mohan Ramachandra28-Aug-09 1:18 
AnswerRe: Determine Boot Disk Pin
kilt3-Sep-09 4:45
kilt3-Sep-09 4:45 
Question_controlfp() - function Pin
durban227-Aug-09 22:57
durban227-Aug-09 22:57 
MFC, STUDIO'2008, WINDOWS'XP 2003

#include <float.h>

_controlfp(_DN_FLUSH, _MCW_DN); // : error C3861: '__controlfp': identifier not found
// Denormal values flushed to zero by hardware on ALPHA and x86
// processors with SSE2 support. Ignored on other x86 platforms.
below some variants:

//+-1 _controlfp(0, MCW_EM);

<float.h>
// below following line is incorrect - don't display MessageBox(L"1\nDIVIDE BY ZERO");

_controlfp(_DN_FLUSH, _MCW_DN);

_controlfp(0, _MCW_DN);
_controlfp(_DN_SAVE, _MCW_DN);
_controlfp(0, _MCW_DN);
int err;
double fResult; // Bennet, pg.136
double x,y;
x = 5.0;
y = 0.0;
_try
{
fResult = x/y;
// _control87_2(0, 0,&fResult, 0);
//- _controlfp(0, 0,&fResult, 0); // : error C2660: '_controlfp' : function does not take 4 arguments
//- _controlfp(&fResult, 0); // : error C2664: '_controlfp' : cannot convert parameter 1 from 'float *' to 'unsigned int'
}
_except (GetExceptionCode() == EXCEPTION_FLT_DIVIDE_BY_ZERO)
{
MessageBox(L"1\nDIVIDE BY ZERO");
MessageBox(_T("2\nDIVIDE BY ZERO"));
AfxMessageBox(_T("3\nDIVIDE BY ZERO"));
}
QuestionRe: _controlfp() - function Pin
CPallini27-Aug-09 23:06
mveCPallini27-Aug-09 23:06 
AnswerRe: _controlfp() - function Pin
durban227-Aug-09 23:39
durban227-Aug-09 23:39 
GeneralRe: _controlfp() - function Pin
CPallini27-Aug-09 23:54
mveCPallini27-Aug-09 23:54 
QuestionHow to retrieve the all drives in a computer and their size using VC++ Code Pin
Shiv Murti Pal27-Aug-09 22:54
Shiv Murti Pal27-Aug-09 22:54 
AnswerRe: How to retrieve the all drives in a computer and their size using VC++ Code Pin
ThatsAlok28-Aug-09 0:37
ThatsAlok28-Aug-09 0:37 
AnswerRe: How to retrieve the all drives in a computer and their size using VC++ Code Pin
David Crow28-Aug-09 3:25
David Crow28-Aug-09 3:25 
AnswerRe: How to retrieve the all drives in a computer and their size using VC++ Code Pin
Hamid_RT28-Aug-09 4:59
Hamid_RT28-Aug-09 4:59 
QuestionDC to Bitmap Pin
LuisFilipeSa27-Aug-09 22:13
LuisFilipeSa27-Aug-09 22:13 
AnswerRe: DC to Bitmap Pin
CPallini27-Aug-09 22:38
mveCPallini27-Aug-09 22:38 
GeneralRe: DC to Bitmap Pin
LuisFilipeSa27-Aug-09 23:42
LuisFilipeSa27-Aug-09 23:42 
GeneralRe: DC to Bitmap Pin
CPallini27-Aug-09 23:56
mveCPallini27-Aug-09 23:56 
GeneralRe: DC to Bitmap Pin
LuisFilipeSa30-Aug-09 23:33
LuisFilipeSa30-Aug-09 23:33 
QuestionOleDb Application Pin
andrew_dk27-Aug-09 21:50
andrew_dk27-Aug-09 21:50 
QuestionTracking tooltip double-click problem when using XP manifest (ComCtl32.dl) [modified] Pin
Moak27-Aug-09 13:48
Moak27-Aug-09 13:48 
AnswerRe: Tracking tooltip double-click problem when using XP manifest (ComCtl32.dl) Pin
Moak1-Sep-09 4:25
Moak1-Sep-09 4:25 
QuestionUsing GetThreadContext to get the Program Counter of a thread Pin
Code-o-mat27-Aug-09 11:15
Code-o-mat27-Aug-09 11:15 
GeneralRe: Using GetThreadContext to get the Program Counter of a thread Pin
harold aptroot27-Aug-09 11:48
harold aptroot27-Aug-09 11:48 

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.