<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237076</link>
    <title>MATLAB Central Newsreader - CTRL+C Conflict between Matlab and MFC Mex</title>
    <description>Feed for thread: CTRL+C Conflict between Matlab and MFC Mex</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 06 Oct 2008 15:32:36 -0400</pubDate>
      <title>CTRL+C Conflict between Matlab and MFC Mex</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237076#603922</link>
      <author>Bill August</author>
      <description>Hi all,&lt;br&gt;
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,&lt;br&gt;
Operation terminated by user during......&lt;br&gt;
I've tried different setting of the dialog including different modality. It just does not work.&lt;br&gt;
Any help would be appreciated.</description>
    </item>
    <item>
      <pubDate>Mon, 06 Oct 2008 17:02:32 -0400</pubDate>
      <title>Re: CTRL+C Conflict between Matlab and MFC Mex</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237076#603947</link>
      <author>Walter Roberson</author>
      <description>Bill August wrote:&lt;br&gt;
&amp;gt; I create a MFC dialog in a mex function. That means i can use the MFC style dialog&lt;br&gt;
&amp;gt; in Matlab. The problem is that when i use ctrl+c in my MFC Dialog(Which means copy),&lt;br&gt;
&amp;gt; when i close the dialog, the matlab system also react the message (which is&lt;br&gt;
&amp;gt; terminate the programme). It gave me an error as,&lt;br&gt;
&amp;gt; Operation terminated by user during......&lt;br&gt;
&amp;gt; I've tried different setting of the dialog including different modality. It just&lt;br&gt;
&amp;gt; does not work.&lt;br&gt;
&lt;br&gt;
From what I've read, you cannot prevent control-c from terminating the function&lt;br&gt;
in Matlab, at least up through R2008a. (I have not looked at R2008b pre-release&lt;br&gt;
at all.)</description>
    </item>
    <item>
      <pubDate>Thu, 09 Oct 2008 12:41:48 -0400</pubDate>
      <title>Re: CTRL+C Conflict between Matlab and MFC Mex</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237076#604313</link>
      <author>Bill August</author>
      <description>&amp;gt; Bill August wrote:&lt;br&gt;
&amp;gt; &amp;gt; I create a MFC dialog in a mex function. That means&lt;br&gt;
&amp;gt; i can use the MFC style dialog&lt;br&gt;
&amp;gt; &amp;gt; in Matlab. The problem is that when i use ctrl+c in&lt;br&gt;
&amp;gt; my MFC Dialog(Which means copy),&lt;br&gt;
&amp;gt; &amp;gt; when i close the dialog, the matlab system also&lt;br&gt;
&amp;gt; react the message (which is&lt;br&gt;
&amp;gt; &amp;gt; terminate the programme). It gave me an error as,&lt;br&gt;
&amp;gt; &amp;gt; Operation terminated by user during......&lt;br&gt;
&amp;gt; &amp;gt; I've tried different setting of the dialog&lt;br&gt;
&amp;gt; including different modality. It just&lt;br&gt;
&amp;gt; &amp;gt; does not work.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; From what I've read, you cannot prevent control-c&lt;br&gt;
&amp;gt; from terminating the function&lt;br&gt;
&amp;gt; in Matlab, at least up through R2008a. (I have not&lt;br&gt;
&amp;gt; looked at R2008b pre-release&lt;br&gt;
&amp;gt; at all.)&lt;br&gt;
Hi Walter,&lt;br&gt;
Thank you for you reply.&lt;br&gt;
&lt;br&gt;
In 2008, it happens in a script or m-file. For running in the command window there is no error message.&lt;br&gt;
&lt;br&gt;
For 6.5, no error message and it works brilliant.&lt;br&gt;
&lt;br&gt;
I guess mathworks want to give 'New Message In Response to Ctrl+C'. See &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/rn/brb410y-1.html&amp;http://www.google.com/search?hl=en&amp;client=opera&amp;rls=en&amp;hs=oJa&amp;q=CTRL%2BC+matlab+Operation+terminated+by+user&amp;btnG=Search&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/rn/brb410y-1.html&amp;http://www.google.com/search?hl=en&amp;client=opera&amp;rls=en&amp;hs=oJa&amp;q=CTRL%2BC+matlab+Operation+terminated+by+user&amp;btnG=Search&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
But unfortunately they made a new mistake.</description>
    </item>
  </channel>
</rss>

