Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Console application intercepts Ctrl+C correctly under Win7 but not under XP

$
0
0

I'm using VS Express 2012 (C++) to write a console application. I have set Platform Toolset to [Visual Studio 2012 - Window XP (v110_xp)] to be able to run the program under both XP and Win7.

The program seems to work under both systems (using msvcr110.dll), except for the interception of Ctrl+C. This works under Win7 but not under XP.

I use SetConsoleMode() to clear the bits for ENABLE_PROCESSED_INPUT and ENABLE_LINE_INPUT.

Then reading key entries

Maybe there are other differences because the win7 system I have tested on is the same machine I use for development. To get the program to run under XP I have only put the msvcr110.dll in the same folder as my _.exe file. Are there other things I must do?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>