Click here to Skip to main content
15,918,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lines of text are different size in print preview Pin
Tim Hutzler25-Apr-03 11:51
Tim Hutzler25-Apr-03 11:51 
QuestionHow to run MFC application Pin
dudic23-Apr-03 9:58
dudic23-Apr-03 9:58 
AnswerRe: How to run MFC application Pin
Toni7823-Apr-03 10:10
Toni7823-Apr-03 10:10 
AnswerRe: How to run MFC application Pin
David Crow23-Apr-03 10:16
David Crow23-Apr-03 10:16 
AnswerRe: How to run MFC application Pin
Joan M23-Apr-03 21:34
professionalJoan M23-Apr-03 21:34 
GeneralDelete Scrollbar Pin
gmlnd23-Apr-03 9:38
gmlnd23-Apr-03 9:38 
GeneralRe: Delete Scrollbar Pin
Chris Losinger23-Apr-03 10:39
professionalChris Losinger23-Apr-03 10:39 
GeneralUGH! widechar buffer problem Pin
will138323-Apr-03 9:18
will138323-Apr-03 9:18 
Hi all,
I'm using fgetwc to get characters from a file.

In ALL cases BUT 1, It calls this like it is supposed to (in _FGETWC.C):

if ((stream->_cnt -= sizeof(wchar_t)) >= 0)
-----> return *((wchar_t *)(stream->_ptr))++;
else
return (wint_t) _filwbuf(stream);

In this single case (and there's about 300 of them), this gets called:
if ((stream->_cnt -= sizeof(wchar_t)) >= 0)
return *((wchar_t *)(stream->_ptr))++;
else
-------------> return (wint_t) _filwbuf(stream);

And my application goes out the window, along with my monitor Mad | :mad:
I can move the information around in the data file, and it's fine, but when in a specific order I get this every time. Confused | :confused:

I really have no idea what is going on here. My gut says it has something to do with the wide character buffer going out of whack. Any ideas or suggestions?
Thanks alot!

GeneralRe: UGH! widechar buffer problem Pin
Tim Smith23-Apr-03 10:07
Tim Smith23-Apr-03 10:07 
GeneralRe: UGH! widechar buffer problem Pin
will138323-Apr-03 10:34
will138323-Apr-03 10:34 
GeneralI give up on GDI ! Pin
pankajdaga23-Apr-03 9:08
pankajdaga23-Apr-03 9:08 
GeneralRe: I give up on GDI ! Pin
Chris Richardson23-Apr-03 9:19
Chris Richardson23-Apr-03 9:19 
GeneralRe: I give up on GDI ! Pin
pankajdaga23-Apr-03 9:38
pankajdaga23-Apr-03 9:38 
GeneralRe: I give up on GDI ! Pin
Joel Lucsy23-Apr-03 13:27
Joel Lucsy23-Apr-03 13:27 
GeneralRe: I give up on GDI ! Pin
basementman24-Apr-03 7:12
basementman24-Apr-03 7:12 
QuestionHow to restore previous CTreeCtrl state after app. exit Pin
Jingmin Wei23-Apr-03 8:18
Jingmin Wei23-Apr-03 8:18 
AnswerRe: How to restore previous CTreeCtrl state after app. exit Pin
brianwelsch23-Apr-03 18:46
brianwelsch23-Apr-03 18:46 
GeneralThank you so much! Pin
Jingmin Wei24-Apr-03 7:06
Jingmin Wei24-Apr-03 7:06 
GeneralMemory Size Pin
emrosa23-Apr-03 7:42
emrosa23-Apr-03 7:42 
GeneralRe: Memory Size Pin
Chris Meech23-Apr-03 8:34
Chris Meech23-Apr-03 8:34 
GeneralRe: Memory Size Pin
David Crow23-Apr-03 10:28
David Crow23-Apr-03 10:28 
GeneralRe: Memory Size Pin
Nitron23-Apr-03 14:07
Nitron23-Apr-03 14:07 
GeneralMFC support for applications Pin
Antti Keskinen23-Apr-03 7:25
Antti Keskinen23-Apr-03 7:25 
GeneralRe: MFC support for applications Pin
Nitron23-Apr-03 14:08
Nitron23-Apr-03 14:08 
GeneralLimiting the number of instances Pin
CDRom23-Apr-03 7:02
CDRom23-Apr-03 7:02 

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.