Click here to Skip to main content
15,903,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTFS on/in the cloud Pin
bkelly1316-Feb-14 15:49
bkelly1316-Feb-14 15:49 
AnswerRe: TFS on/in the cloud Pin
Richard MacCutchan16-Feb-14 22:29
mveRichard MacCutchan16-Feb-14 22:29 
GeneralRe: TFS on/in the cloud Pin
bkelly1317-Feb-14 6:44
bkelly1317-Feb-14 6:44 
Questioni/o registers that control cash drawer Pin
Member 1060107316-Feb-14 10:36
Member 1060107316-Feb-14 10:36 
AnswerRe: i/o registers that control cash drawer Pin
Richard Andrew x6416-Feb-14 11:14
professionalRichard Andrew x6416-Feb-14 11:14 
GeneralRe: i/o registers that control cash drawer Pin
Member 1060107316-Feb-14 11:31
Member 1060107316-Feb-14 11:31 
GeneralRe: i/o registers that control cash drawer Pin
Richard Andrew x6416-Feb-14 11:36
professionalRichard Andrew x6416-Feb-14 11:36 
AnswerRe: i/o registers that control cash drawer Pin
Richard MacCutchan16-Feb-14 22:28
mveRichard MacCutchan16-Feb-14 22:28 
GeneralRe: i/o registers that control cash drawer Pin
Member 1060107319-Feb-14 8:25
Member 1060107319-Feb-14 8:25 
GeneralRe: i/o registers that control cash drawer Pin
enhzflep19-Feb-14 18:17
enhzflep19-Feb-14 18:17 
GeneralRe: i/o registers that control cash drawer Pin
Member 1060107320-Feb-14 9:16
Member 1060107320-Feb-14 9:16 
GeneralRe: i/o registers that control cash drawer Pin
enhzflep20-Feb-14 16:40
enhzflep20-Feb-14 16:40 
GeneralRe: i/o registers that control cash drawer Pin
Member 1060107320-Feb-14 20:01
Member 1060107320-Feb-14 20:01 
GeneralRe: i/o registers that control cash drawer Pin
enhzflep20-Feb-14 20:17
enhzflep20-Feb-14 20:17 
QuestionHandling mouse using OS interrupts Pin
myth199015-Feb-14 18:03
myth199015-Feb-14 18:03 
AnswerRe: Handling mouse using OS interrupts Pin
Richard MacCutchan15-Feb-14 21:29
mveRichard MacCutchan15-Feb-14 21:29 
GeneralRe: Handling mouse using OS interrupts Pin
myth199015-Feb-14 22:31
myth199015-Feb-14 22:31 
GeneralRe: Handling mouse using OS interrupts Pin
Software_Developer16-Feb-14 2:01
Software_Developer16-Feb-14 2:01 
GeneralRe: Handling mouse using OS interrupts Pin
myth199016-Feb-14 2:13
myth199016-Feb-14 2:13 
GeneralRe: Handling mouse using OS interrupts Pin
Software_Developer16-Feb-14 3:28
Software_Developer16-Feb-14 3:28 
Turbo C++ code.
Copy paste this to a file named mouse.h .

<-------- start of mouse.h

C++
include <fstream.h>
#include <conio.h>
#include <dos.h>
#include <stdlib.h>
#include <alloc.h>

const ress=0xb;

unsigned hspd,vspd,thv,button,mouse_x,mouse_y;
int dirx,diry,dir_x,dir_y,trshold;
unsigned char mousestep;



void initmouse(void)
{
  asm{
       mov ax,1h
       int 33h

     }
}

void hidemouse(void)
{
  asm{
       mov ax,2h
       int 33h

     }
}


void getmousepos(void)
{
  asm{
	mov ax,3h
	int 33h
	mov button,bx
	mov mouse_x,cx
	mov mouse_y,dx
     }
}


void getmousedirection(void)
{
  asm{
	mov ax,ress
	int 33h
	mov trshold,bx
	mov dirx,cx
	mov diry,dx
     }
}


void getmousespeed(void)
{
  asm{
	mov ax,1bh
	int 33h
	mov bx,hspd
	mov cx,vspd
	mov dx,thv
     }
}







<-------- end of mouse.h
GeneralRe: Handling mouse using OS interrupts Pin
myth199017-Feb-14 2:29
myth199017-Feb-14 2:29 
GeneralRe: Handling mouse using OS interrupts Pin
myth199022-Feb-14 17:59
myth199022-Feb-14 17:59 
GeneralRe: Handling mouse using OS interrupts Pin
Richard MacCutchan16-Feb-14 2:15
mveRichard MacCutchan16-Feb-14 2:15 
GeneralRe: Handling mouse using OS interrupts Pin
myth199016-Feb-14 2:21
myth199016-Feb-14 2:21 
GeneralRe: Handling mouse using OS interrupts Pin
Richard MacCutchan16-Feb-14 2:28
mveRichard MacCutchan16-Feb-14 2:28 

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.