On 10/20/07, sunil_h_v <[EMAIL PROTECTED]> wrote:

>> This is going to be very platform specific, as it is not part of any C
>> or C++ language standard. What are you trying to do with interrupts?

> I am trying to perform disk operations, file operations, like creating
> files, deleting them, getting and setting attributes etc etc.

Why? Modern operating systems already provide these capabilities to
you, in a fairly abstract way, so you don't need to be messing with
low-level details like BIOS interrupts. In fact, in most cases, the OS
won't even let you get that low-level.

> Is there a specific method to make use of interrupts in C ?

No. Your compiler may provide system library calls for interrupt handling.

> I am using Bloodshed Dev C compiler and Turbo C compiler, i am trying
> to make code which works with both of them, i have a priority for
> bloodshed.

Get rid of Turbo C. While it does provide the int86() system call,
this is MS-DOS specific and probably shouldn't be used under the
Windows environment (as far as I know -- I don't know what the impacts
might be for, say, doing stuff with the mouse interrupt under
Windows). Turbo C is an ancient compiler and is way behind in what
modern compilers can provide.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to