Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe13.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: CTRL+C Conflict between Matlab and MFC Mex
References: <10751504.1223307187066.JavaMail.jakarta@nitrogen.mathforum.org>
In-Reply-To: <10751504.1223307187066.JavaMail.jakarta@nitrogen.mathforum.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 12
Message-ID: <ewrGk.2547$S71.82@newsfe13.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe13.iad 1223312522 24.79.146.116 (Mon, 06 Oct 2008 17:02:02 UTC)
NNTP-Posting-Date: Mon, 06 Oct 2008 17:02:02 UTC
Date: Mon, 06 Oct 2008 12:02:32 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:493865


Bill August wrote:
> I create a MFC dialog in a mex function. That means i can use the MFC style dialog
> in Matlab. The problem is that when i use ctrl+c in my MFC Dialog(Which means copy),
> when i close the dialog, the matlab system also react the message (which is
> terminate the programme). It gave me an error as,
> Operation terminated by user during......
> I've tried different setting of the dialog including different modality. It just
> does not work.

From what I've read, you cannot prevent control-c from terminating the function
in Matlab, at least up through R2008a. (I have not looked at R2008b pre-release
at all.)