Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 9:19
protectorNick Parker14-Aug-02 9:19 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 9:04
professionalChris Losinger14-Aug-02 9:04 
GeneralRe: Stack Question Pin
Philippe Mori15-Aug-02 10:22
Philippe Mori15-Aug-02 10:22 
Questionunique field in an Access database ? Pin
ns14-Aug-02 7:49
ns14-Aug-02 7:49 
AnswerRe: unique field in an Access database ? Pin
Ranjan Banerji14-Aug-02 8:15
Ranjan Banerji14-Aug-02 8:15 
GeneralRe: unique field in an Access database ? Pin
ns14-Aug-02 8:24
ns14-Aug-02 8:24 
GeneralRe: unique field in an Access database ? Pin
Ranjan Banerji14-Aug-02 8:35
Ranjan Banerji14-Aug-02 8:35 
AnswerRe: unique field in an Access database ? Pin
Bill Wilson14-Aug-02 8:20
Bill Wilson14-Aug-02 8:20 
Questionhow i can do this??plz help me! Pin
aashu14-Aug-02 7:38
aashu14-Aug-02 7:38 
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 

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.