Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltimers with CreateWaitableTimer Pin
Jim Crafton14-Aug-02 7:18
Jim Crafton14-Aug-02 7:18 
GeneralRe: timers with CreateWaitableTimer Pin
Daniel Lohmann14-Aug-02 13:57
Daniel Lohmann14-Aug-02 13:57 
GeneralDeveloping on VC++ for Linux Pin
Robert White14-Aug-02 7:15
Robert White14-Aug-02 7:15 
GeneralMultiple Thread Pin
14-Aug-02 7:14
suss14-Aug-02 7:14 
GeneralRe: Multiple Thread Pin
valikac14-Aug-02 8:20
valikac14-Aug-02 8:20 
GeneralRe: Multiple Thread Pin
Bill Wilson14-Aug-02 8:23
Bill Wilson14-Aug-02 8:23 
GeneralUnhandled exception when using acmFormatChoose. Pin
redeemer14-Aug-02 7:05
redeemer14-Aug-02 7:05 
GeneralRe: Unhandled exception when using acmFormatChoose. Pin
Bill Wilson14-Aug-02 9:04
Bill Wilson14-Aug-02 9:04 
I have know idea what is wrong with your code. If you handle the exception, you will find out what the problem is. Add try/catch to your code to catch the exception.

Something like this:

try {
	ACMFORMATCHOOSE acmChoose;
	WAVEFORMATEX fmtChoose = { 0 };
	acmChoose.pwfx = &fmtChoose;
	acmChoose.cbwfx = sizeof(fmtChoose);
	acmChoose.cbStruct = sizeof(acmChoose);
	acmChoose.hwndOwner = ghWnd;acmFormatChoose(&acmChoose);
	}
catch (CExcpetion *e) {
handle the excption here ...


This is a general exception. You can catch specific derivitives with things like

catch (CFileException ...
catch (CMemoryException...

These are classes derived from CExcpetion. Your code can have multiple catch clauses for a try clause.
The first catch that qualifies will get the exception.

try {
...
}
catch (CMemoryException *e)
{
...
}
catch (CExceptin *e)
{
...
}
catch (CFileException *e)
{
... This will neverget executed, even if a file exceptionis thrown.The more general CException handler above will get it instead. Be careful of the order. Exceptin handling is a fairly deep topic and a fundamental of windows programming. I'd suggest you research windows exception handling in MSDN or other sources.
GeneralRe: Unhandled exception when using acmFormatChoose. Pin
Daniel Lohmann14-Aug-02 14:02
Daniel Lohmann14-Aug-02 14:02 
Generaldoc/view problem -> destroying a window Pin
Anonymous14-Aug-02 7:00
Anonymous14-Aug-02 7:00 
GeneralRe: doc/view problem -> destroying a window Pin
Chris Losinger14-Aug-02 8:04
professionalChris Losinger14-Aug-02 8:04 
Questionopen a Document with invisible View? Pin
Jake Palmer14-Aug-02 6:54
Jake Palmer14-Aug-02 6:54 
AnswerRe: open a Document with invisible View? Pin
dazinith14-Aug-02 7:59
dazinith14-Aug-02 7:59 
AnswerClarification Pin
Jake Palmer14-Aug-02 9:54
Jake Palmer14-Aug-02 9:54 
GeneralImage field 3 Pin
Mazdak14-Aug-02 6:53
Mazdak14-Aug-02 6:53 
GeneralCFindReplaceDialog Pin
RK_200014-Aug-02 6:37
RK_200014-Aug-02 6:37 
GeneralTFTP and RS232 Communications Pin
SanShou14-Aug-02 5:54
SanShou14-Aug-02 5:54 
GeneralRe: TFTP and RS232 Communications Pin
Stuart Dootson14-Aug-02 20:57
professionalStuart Dootson14-Aug-02 20:57 
GeneralContext menu in CHtmlView question. Pin
Michael Liu14-Aug-02 5:37
Michael Liu14-Aug-02 5:37 
GeneralRe: Context menu in CHtmlView question. Pin
Anonymous14-Aug-02 6:10
Anonymous14-Aug-02 6:10 
GeneralRe: Context menu in CHtmlView question. Pin
Michael Liu14-Aug-02 6:35
Michael Liu14-Aug-02 6:35 
QuestionPressed Enter ? Pin
Hadi Rezaee14-Aug-02 5:09
Hadi Rezaee14-Aug-02 5:09 
AnswerRe: Pressed Enter ? Pin
Andreas Saurwein14-Aug-02 5:40
Andreas Saurwein14-Aug-02 5:40 
AnswerRe: Pressed Enter ? Pin
KingsGambit14-Aug-02 5:50
KingsGambit14-Aug-02 5:50 
QuestionListen a port using CSocket class ?? Pin
Cris14-Aug-02 4:52
Cris14-Aug-02 4:52 

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.