Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SDI application with 3 views Pin
Eugen Podsypalnikov24-Jul-12 0:17
Eugen Podsypalnikov24-Jul-12 0:17 
GeneralRe: SDI application with 3 views Pin
Mohibur Rashid25-Jul-12 14:45
professionalMohibur Rashid25-Jul-12 14:45 
GeneralRe: SDI application with 3 views Pin
Vaclav_25-Jul-12 16:51
Vaclav_25-Jul-12 16:51 
GeneralRe: SDI application with 3 views Pin
ekinnh26-Jul-12 18:13
ekinnh26-Jul-12 18:13 
GeneralRe: SDI application with 3 views Pin
Vaclav_27-Jul-12 2:42
Vaclav_27-Jul-12 2:42 
GeneralRe: SDI application with 3 views Pin
ekinnh31-Jul-12 22:13
ekinnh31-Jul-12 22:13 
GeneralRe: SDI application with 3 views Pin
Sunil P V26-Jul-12 2:09
Sunil P V26-Jul-12 2:09 
Question[Hook HW interrupts in flat mode with DOS32/A] Pin
liaoo23-Jul-12 16:42
liaoo23-Jul-12 16:42 
Dear all,
I have a question about how to hook HW interrupt in flat memory mode...Maybe you can give me some directions... Smile | :)

@ about my application...
- created by combining Watcom C and DOS32/A.
- written for running on DOS mode( not on OS mode )
- with DOS32/A now I can access >1M memory and allocate large memory to use...(running in flat memory mode !!!)

@ current issue...
- I want to write an ISR(interrupt service routine) for one PCI card. Thus I need to "hook" the HW interrupt to test...
- For example, the PCI card's interrupt line(0x3C) = 0xE in DOS mode. That means this device will issue interrupt via 8259's IRQ 14.

But... I did not how to achieve my goal to hook this interrupt in "flat mode" ?

@ reference I found...
- in watcom C's library doc, there is one sample using _dos_getvect, _dos_setvect, and _chain_intr to hook INT 0x1C...I tested this code and found OK.

But when I apply it to my case: INT76 ( where IRQ 14 is "INT 0x76" due to (14-8) + 0x70 )then nothing happened...

* I have checked HW interrupt is truly generated but my own ISR did NOT invoked...

Do I lose something ? or are there any functions I can use (in DOS32/A) to achieve my goal ? Confused | :confused:
AnswerRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
enhzflep23-Jul-12 19:01
enhzflep23-Jul-12 19:01 
GeneralRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
liaoo23-Jul-12 19:47
liaoo23-Jul-12 19:47 
GeneralRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
enhzflep23-Jul-12 20:23
enhzflep23-Jul-12 20:23 
GeneralRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
liaoo23-Jul-12 22:02
liaoo23-Jul-12 22:02 
AnswerRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
Software_Developer23-Jul-12 20:10
Software_Developer23-Jul-12 20:10 
GeneralRe: [Hook HW interrupts in flat mode with DOS32/A] Pin
liaoo23-Jul-12 22:05
liaoo23-Jul-12 22:05 
QuestionMSDN 2010, scanf_s Pin
mrby12323-Jul-12 7:13
mrby12323-Jul-12 7:13 
AnswerRe: MSDN 2010, scanf_s Pin
Albert Holguin23-Jul-12 7:26
professionalAlbert Holguin23-Jul-12 7:26 
AnswerRe: MSDN 2010, scanf_s Pin
CPallini23-Jul-12 22:12
mveCPallini23-Jul-12 22:12 
GeneralProgrammatically setting power manager suspend timeouts in Windows CE5.0 [SOLVED] Pin
SidProgrammer22-Jul-12 21:21
SidProgrammer22-Jul-12 21:21 
GeneralRe: Programmatically setting power manager suspend timeouts in Windows CE5.0 Pin
Richard MacCutchan22-Jul-12 21:45
mveRichard MacCutchan22-Jul-12 21:45 
GeneralRe: Programmatically setting power manager suspend timeouts in Windows CE5.0 Pin
SidProgrammer22-Jul-12 22:34
SidProgrammer22-Jul-12 22:34 
GeneralRe: Programmatically setting power manager suspend timeouts in Windows CE5.0 Pin
Richard MacCutchan22-Jul-12 22:37
mveRichard MacCutchan22-Jul-12 22:37 
GeneralRe: Programmatically setting power manager suspend timeouts in Windows CE5.0 Pin
SidProgrammer22-Jul-12 22:51
SidProgrammer22-Jul-12 22:51 
Questioncan i use vc6 with aforge? Pin
frank2323153422-Jul-12 1:30
frank2323153422-Jul-12 1:30 
AnswerRe: can i use vc6 with aforge? Pin
Richard MacCutchan22-Jul-12 2:05
mveRichard MacCutchan22-Jul-12 2:05 
QuestionMulti touch - Limit CView boudaries when panning Pin
Dansveen21-Jul-12 13:02
Dansveen21-Jul-12 13:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.