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

C / C++ / MFC

 
GeneralDifference between CPaintDC and CClientDC Pin
Girish Kumar15-Feb-08 18:54
Girish Kumar15-Feb-08 18:54 
GeneralRe: Difference between CPaintDC and CClientDC Pin
Mark Salsbery17-Feb-08 8:58
Mark Salsbery17-Feb-08 8:58 
GeneralRe: Difference between CPaintDC and CClientDC Pin
Hamid_RT18-Feb-08 7:41
Hamid_RT18-Feb-08 7:41 
GeneralMessage Removed Pin
15-Feb-08 18:50
Armond Sarkisian15-Feb-08 18:50 
GeneralRe: Searching for a file... [modified] Pin
Rajkumar R15-Feb-08 21:51
Rajkumar R15-Feb-08 21:51 
GeneralRe: Searching for a file... Pin
Rajesh R Subramanian15-Feb-08 21:59
professionalRajesh R Subramanian15-Feb-08 21:59 
GeneralRe: Searching for a file... Pin
Rajkumar R15-Feb-08 22:02
Rajkumar R15-Feb-08 22:02 
Generalcomparison problem Pin
gentleguy15-Feb-08 17:09
gentleguy15-Feb-08 17:09 
dear all

i would like to compare two values magnitude, and first time i initialize one of them is 0,when second one was generated from code, i will sign second value to first one, and then in next iteration, second value will be get again from code, i want to subtract first one from second, and if the subtraction is less than certain value, then stop iteration. the example is below: but however i couldn't solove it.

sumOnePre = 0;

sumOne = sumOne + g(j);//this is already calculated in my code

if sumOne ~=sumOnePre
sumOnePre = sumOne
if sumOne - sumOnePre < 0.015
ct1 = km;// they are calculated already

but here, the problem is after sumOne is calculated currently,doesnot use first if statement, instead taking second if statement, and then use first if statement, however i couldn't solve it. anyone help me? thanks a lot

Li Zhiyuan


QuestionRe: comparison problem Pin
Rajkumar R15-Feb-08 20:39
Rajkumar R15-Feb-08 20:39 
GeneralRe: comparison problem Pin
gentleguy15-Feb-08 23:19
gentleguy15-Feb-08 23:19 
GeneralRe: comparison problem Pin
Rajkumar R16-Feb-08 7:47
Rajkumar R16-Feb-08 7:47 
QuestionInvoking a .NET 2.0 class from VC++7.1 via COM - compatibility issue? Pin
jjoshua15-Feb-08 14:47
jjoshua15-Feb-08 14:47 
AnswerRe: Invoking a .NET 2.0 class from VC++7.1 via COM - compatibility issue? Pin
jjoshua19-Feb-08 4:17
jjoshua19-Feb-08 4:17 
GeneralUsing MS Mask Edit Control Pin
dipuks15-Feb-08 11:43
dipuks15-Feb-08 11:43 
GeneralRe: Using MS Mask Edit Control Pin
Joan M15-Feb-08 21:31
professionalJoan M15-Feb-08 21:31 
GeneralMFC regular DLL using shared MFC DLL module definition file (.def) question Pin
alchong15-Feb-08 8:49
alchong15-Feb-08 8:49 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Mark Salsbery15-Feb-08 9:26
Mark Salsbery15-Feb-08 9:26 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
led mike15-Feb-08 11:33
led mike15-Feb-08 11:33 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Rajesh R Subramanian15-Feb-08 20:10
professionalRajesh R Subramanian15-Feb-08 20:10 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Mark Salsbery17-Feb-08 9:03
Mark Salsbery17-Feb-08 9:03 
GeneralC++ DLL Compatability Hell! Pin
Lea Hayes15-Feb-08 8:01
Lea Hayes15-Feb-08 8:01 
GeneralRe: C++ DLL Compatability Hell! Pin
Jim Crafton15-Feb-08 8:18
Jim Crafton15-Feb-08 8:18 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes15-Feb-08 12:50
Lea Hayes15-Feb-08 12:50 
GeneralRe: C++ DLL Compatability Hell! Pin
Rajkumar R15-Feb-08 20:10
Rajkumar R15-Feb-08 20:10 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes16-Feb-08 8:45
Lea Hayes16-Feb-08 8:45 

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.