Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
Chris Losinger14-Jan-05 12:25
professionalChris Losinger14-Jan-05 12:25 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj16-Jan-05 22:12
greekgoddj16-Jan-05 22:12 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj17-Jan-05 0:32
greekgoddj17-Jan-05 0:32 
GeneralCreating XML Schema in VS.NET... Pin
anderslundsgard14-Jan-05 4:39
anderslundsgard14-Jan-05 4:39 
GeneralCString cutting off my string Pin
Wheatbread14-Jan-05 4:21
Wheatbread14-Jan-05 4:21 
GeneralRe: CString cutting off my string Pin
Chris Losinger14-Jan-05 8:04
professionalChris Losinger14-Jan-05 8:04 
GeneralWeird <= operation Pin
alex120514-Jan-05 4:08
alex120514-Jan-05 4:08 
GeneralRe: Weird <= operation Pin
basementman14-Jan-05 4:24
basementman14-Jan-05 4:24 
Doubles are NOT precise numbers. They are approximate representations. Whenever you need to compare doubles (or check if zero), you need to do approximate math, using an acceptable number of precision digits to your app. An example is below:
BOOL IsDoubleZero(double dVal)
{
  if (dVal < 0.000001 && dVal > -0.000001)
    return TRUE;
 
  return FALSE;
}

BOOL AreDoublesEqual(double dVal1, double dVal2)
{
  doubld dDiff = dVal1 - dVal2;
  if (dDiff < 0.000001 && dDiff > -0.000001)
    return TRUE;
 
  return FALSE;
}


 onwards and upwards... 
GeneralRe: Weird &lt;= operation Pin
Malcolm Smart14-Jan-05 4:39
Malcolm Smart14-Jan-05 4:39 
GeneralRe: Weird &lt;= operation Pin
Ravi Bhavnani14-Jan-05 6:11
professionalRavi Bhavnani14-Jan-05 6:11 
GeneralRe: Weird &lt;= operation Pin
Malcolm Smart14-Jan-05 13:00
Malcolm Smart14-Jan-05 13:00 
GeneralRe: Weird &lt;= operation Pin
Ravi Bhavnani14-Jan-05 14:52
professionalRavi Bhavnani14-Jan-05 14:52 
GeneralRe: Weird &lt;= operation Pin
Anonymous17-Jan-05 15:26
Anonymous17-Jan-05 15:26 
GeneralRe: Weird &lt;= operation Pin
peterchen16-Jan-05 19:03
peterchen16-Jan-05 19:03 
QuestionHow to export Symbol from Win Static Library Pin
ashutosh_tripathi14-Jan-05 3:18
ashutosh_tripathi14-Jan-05 3:18 
AnswerRe: How to export Symbol from Win Static Library Pin
Martin Koorts14-Jan-05 3:44
Martin Koorts14-Jan-05 3:44 
GeneralRe: How to export Symbol from Win Static Library Pin
ashutosh_tripathi14-Jan-05 17:49
ashutosh_tripathi14-Jan-05 17:49 
GeneralRe: How to export Symbol from Win Static Library Pin
Martin Koorts16-Jan-05 22:53
Martin Koorts16-Jan-05 22:53 
GeneralOnPaint and CPaintDC Pin
Malcolm Smart14-Jan-05 3:02
Malcolm Smart14-Jan-05 3:02 
GeneralRe: OnPaint and CPaintDC Pin
Ryan Binns14-Jan-05 3:40
Ryan Binns14-Jan-05 3:40 
GeneralRe: OnPaint and CPaintDC Pin
Mike Dimmick14-Jan-05 3:40
Mike Dimmick14-Jan-05 3:40 
GeneralRe: OnPaint and CPaintDC Pin
Malcolm Smart14-Jan-05 4:37
Malcolm Smart14-Jan-05 4:37 
GeneralLoading HTML documents Pin
Hans Ruck14-Jan-05 2:00
Hans Ruck14-Jan-05 2:00 
GeneralPls Help with CMetaFileDC and CScrollView Pin
Dimitris Vikeloudas14-Jan-05 0:41
Dimitris Vikeloudas14-Jan-05 0:41 
QuestionVC6 - bug? Could you try on your Box? Pin
peterchen14-Jan-05 0:24
peterchen14-Jan-05 0:24 

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.