Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news.aset.psu.edu!support1-1.mathforum.org!not-for-mail
From: Bill August <hui.song@beds.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Re: CTRL+C Conflict between Matlab and MFC Mex
Date: Thu, 09 Oct 2008 08:41:48 EDT
Organization: The Math Forum
Lines: 28
Message-ID: <387969.1223556139173.JavaMail.jakarta@nitrogen.mathforum.org>
References: <ewrGk.2547$S71.82@newsfe13.iad>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1-1.mathforum.org 1223556139 27379 144.118.30.135 (9 Oct 2008 12:42:19 GMT)
X-Complaints-To: news@mathforum.org
NNTP-Posting-Date: Thu, 9 Oct 2008 12:42:19 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:494232


> 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.)
Hi Walter,
Thank you for you reply.

In 2008, it happens in a script or m-file. For running in the command window there is no error message.

For 6.5, no error message and it works brilliant.

I guess mathworks want to give 'New Message In Response to Ctrl+C'. See http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/rn/brb410y-1.html&http://www.google.com/search?hl=en&client=opera&rls=en&hs=oJa&q=CTRL%2BC+matlab+Operation+terminated+by+user&btnG=Search

But unfortunately they made a new mistake.