Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is the Definative Book on C++. Pin
Stuart Dootson19-Aug-02 8:33
professionalStuart Dootson19-Aug-02 8:33 
GeneralMFC Assertion Failures Pin
gm_coll19-Aug-02 5:34
gm_coll19-Aug-02 5:34 
GeneralRe: MFC Assertion Failures Pin
Tomasz Sowinski19-Aug-02 5:36
Tomasz Sowinski19-Aug-02 5:36 
GeneralRe: MFC Assertion Failures Pin
gm_coll19-Aug-02 6:07
gm_coll19-Aug-02 6:07 
GeneralRe: MFC Assertion Failures Pin
Tomasz Sowinski19-Aug-02 6:14
Tomasz Sowinski19-Aug-02 6:14 
GeneralRe: MFC Assertion Failures Pin
Mustafa Demirhan19-Aug-02 13:33
Mustafa Demirhan19-Aug-02 13:33 
GeneralRe: MFC Assertion Failures Pin
gm_coll19-Aug-02 23:51
gm_coll19-Aug-02 23:51 
GeneralRe: MFC Assertion Failures Pin
gm_coll20-Aug-02 4:56
gm_coll20-Aug-02 4:56 
I have discovered the problem in my code. It was in the lines:

CString grtemp;
grtemp.Format(_T("%%.%df"), signif); // signif is number of decimal places
grtemp.Format(grtemp, m_nGrams);

For some reason, although the application ran fine on the desktop emulator, it threw assertion failures when run on the mobile device (Jornada 720 running HPC 2000).

This may be because the emulator was for H/PC Pro 2.11 ( as there is no emulator for HPC 2000 in the eMbedded Visual C++ IDE).

Anyway I changed the above lines to:

CString grtemp;
grtemp.Format(_T("%.*f"),signif, m_nGrams);

and it now runs perfectly.

Thanks for your help,

Graham
GeneralRe: MFC Assertion Failures Pin
Mustafa Demirhan20-Aug-02 9:03
Mustafa Demirhan20-Aug-02 9:03 
GeneralStop calling that dialog! Pin
jimNLX19-Aug-02 5:31
jimNLX19-Aug-02 5:31 
GeneralRe: Stop calling that dialog! Pin
Tomasz Sowinski19-Aug-02 5:35
Tomasz Sowinski19-Aug-02 5:35 
GeneralRe: Stop calling that dialog! Pin
jimNLX19-Aug-02 11:51
jimNLX19-Aug-02 11:51 
GeneralRe: Stop calling that dialog! Pin
Tomasz Sowinski19-Aug-02 21:47
Tomasz Sowinski19-Aug-02 21:47 
Generaldesperate Pin
Brakanjan19-Aug-02 5:15
Brakanjan19-Aug-02 5:15 
GeneralRe: desperate Pin
valikac19-Aug-02 6:30
valikac19-Aug-02 6:30 
GeneralRe: desperate Pin
Tomasz Sowinski19-Aug-02 7:04
Tomasz Sowinski19-Aug-02 7:04 
GeneralRe: desperate Pin
Stephane Rodriguez.19-Aug-02 10:34
Stephane Rodriguez.19-Aug-02 10:34 
GeneralRe: desperate Pin
Brakanjan19-Aug-02 23:44
Brakanjan19-Aug-02 23:44 
GeneralWindow size is changed when setting large fonts Pin
Daed19-Aug-02 5:10
Daed19-Aug-02 5:10 
GeneralRe: Window size is changed when setting large fonts Pin
benjymous19-Aug-02 5:44
benjymous19-Aug-02 5:44 
GeneralRe: Window size is changed when setting large fonts Pin
Daed21-Aug-02 21:19
Daed21-Aug-02 21:19 
GeneralProgress bar in status window Pin
RalfPeter19-Aug-02 4:44
RalfPeter19-Aug-02 4:44 
GeneralRe: Progress bar in status window Pin
Tomasz Sowinski19-Aug-02 4:48
Tomasz Sowinski19-Aug-02 4:48 
GeneralRe: Progress bar in status window Pin
Ravi Bhavnani19-Aug-02 5:06
professionalRavi Bhavnani19-Aug-02 5:06 
GeneralPrint text Pin
grodan19-Aug-02 4:06
grodan19-Aug-02 4:06 

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.