Sending interrupt in VC

This is a discussion on Sending interrupt in VC within the Windows Programming forums, part of the Platform Specific Boards category; Is there no possible way to send interrupt in VC...

  1. #1
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119

    Sending interrupt in VC

    Is there no possible way to send interrupt in VC
    Software is like sex it is good when it is free

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Is there no possible way to ask a question, clearly, and provide enough info for someone to answer you helpfully, without assuming the reader can read minds?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119
    in VC
    when ever i do

    __asm{
    INT 10h
    };

    Programm craches ....
    Is there a way to send interrupt without making programme crash.
    Software is like sex it is good when it is free

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    It's not VC...it's windows. VC produces "proper" 32bit programs...and those programs arent allowed to call most interupts while in protected (user) mode. So find another way to do what you want and forget the old shortcuts

  5. #5
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119
    but if a compile a programme under Turbo C++ 3.0 and the send some interrupt it will not crash even on windows, why?
    Software is like sex it is good when it is free

  6. #6
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    Quote Originally Posted by cfrost
    but if a compile a programme under Turbo C++ 3.0 and the send some interrupt it will not crash even on windows, why?
    >>It's not VC...it's windows. VC produces "proper" 32bit programs...and those programs arent allowed to call most interupts while in protected (user) mode.

    From what I remember, Turbo C++ 3.0 produces 16bit programs, which do not run in protected mode, meaning that they can call interrupts.
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Quote Originally Posted by neandrake
    >>It's not VC...it's windows. VC produces "proper" 32bit programs...and those programs arent allowed to call most interupts while in protected (user) mode.

    From what I remember, Turbo C++ 3.0 produces 16bit programs, which do not run in protected mode, meaning that they can call interrupts.
    They run in an emulation mode...so often, they dont call interutps either; they just seem to do so.

    From my experience, unless you are dealing with the lower level elements of the system, you dont need interupts. You are just trying to use a shortcut for a facility that will already be available with WINAPI...so start reading MSDN!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 10:20 PM
  2. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 03:59 PM
  3. interrupt question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-08-2002, 08:25 PM
  4. interrupt handler functions in Visual C++ 6.0
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-07-2002, 06:06 PM
  5. Sound card interrupt problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-05-2001, 03:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21