Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI need help with broandcast in c++ Pin
rayrogar8-Nov-06 5:53
rayrogar8-Nov-06 5:53 
AnswerRe: I need help with broandcast in c++ Pin
jeron18-Nov-06 7:22
jeron18-Nov-06 7:22 
GeneralRe: I need help with broandcast in c++ Pin
rayrogar9-Nov-06 4:42
rayrogar9-Nov-06 4:42 
QuestionFindWindow Pin
edvintas8-Nov-06 5:47
edvintas8-Nov-06 5:47 
AnswerRe: FindWindow Pin
PJ Arends8-Nov-06 6:21
professionalPJ Arends8-Nov-06 6:21 
AnswerRe: FindWindow Pin
Hamid_RT9-Nov-06 7:12
Hamid_RT9-Nov-06 7:12 
QuestionCArchive problem Pin
Midworld088-Nov-06 5:18
Midworld088-Nov-06 5:18 
AnswerRe: CArchive problem Pin
Steve S8-Nov-06 5:30
Steve S8-Nov-06 5:30 
Have you run this under the debugger? That's usually a good start. You can step into the CArchive::Close function and find out why it trips up.

You should also check that the Open for SaveColours worked properly.
(You might want to use CFile::modeCreate | CFile::modeWrite instead of just CFile::modeWrite, as well).

Chances are that because CArchive uses a buffer (around 4K) it isn't actually doing any I/O until you call Close, at which point it flushes (or tries to) to file.

Steve S
Developer for hire

AnswerRe: CArchive problem Pin
Mark Salsbery8-Nov-06 5:37
Mark Salsbery8-Nov-06 5:37 
GeneralRe: CArchive problem Pin
Midworld088-Nov-06 8:09
Midworld088-Nov-06 8:09 
GeneralRe: CArchive problem Pin
Steve S8-Nov-06 21:44
Steve S8-Nov-06 21:44 
QuestionUser-Interface Thread [important] Pin
baerten8-Nov-06 4:44
baerten8-Nov-06 4:44 
AnswerRe: User-Interface Thread [important] Pin
Mark Salsbery8-Nov-06 6:19
Mark Salsbery8-Nov-06 6:19 
AnswerRe: User-Interface Thread [important] Pin
Michael Dunn8-Nov-06 14:01
sitebuilderMichael Dunn8-Nov-06 14:01 
GeneralRe: User-Interface Thread [important] Pin
baerten8-Nov-06 21:00
baerten8-Nov-06 21:00 
Answerbad post / good post Pin
normanS9-Nov-06 23:53
normanS9-Nov-06 23:53 
GeneralRe: bad post / good post Pin
baerten10-Nov-06 0:18
baerten10-Nov-06 0:18 
GeneralRe: bad post / good post Pin
normanS10-Nov-06 4:25
normanS10-Nov-06 4:25 
GeneralRe: bad post / good post Pin
baerten10-Nov-06 4:34
baerten10-Nov-06 4:34 
QuestionReverse playback using D3DXANIMATIONCONTROLLER Pin
kpiciulo8-Nov-06 4:34
kpiciulo8-Nov-06 4:34 
Questionaccess to variable from another CDialog Pin
zizzzz8-Nov-06 4:12
zizzzz8-Nov-06 4:12 
AnswerRe: access to variable from another CDialog Pin
Cedric Moonen8-Nov-06 4:18
Cedric Moonen8-Nov-06 4:18 
GeneralRe: access to variable from another CDialog Pin
zizzzz8-Nov-06 12:05
zizzzz8-Nov-06 12:05 
Questionloadlibrary from 64 to 32 bit Pin
emmi8-Nov-06 3:04
emmi8-Nov-06 3:04 
QuestionRe: loadlibrary from 64 to 32 bit Pin
David Crow8-Nov-06 3:41
David Crow8-Nov-06 3:41 

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.