Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!tsun6.doc.ic.ac.uk!zmact61 From: zmact61@tsun6.doc.ic.ac.uk.doc.ic.ac.uk (D Spinellis) Newsgroups: alt.msdos.programmer Subject: Re: IBMPC EGA MOUSE curses shape Summary: Pass the address of the parameter Keywords: Mouse Curses shape Message-ID: <1449@gould.doc.ic.ac.uk> Date: 16 Jan 90 11:31:14 GMT References: <11004@attctc.Dallas.TX.US> Sender: news@doc.ic.ac.uk Reply-To: dds@cc.ic.ac.uk (Diomidis Spinellis) Organization: Imperial College Department of Computing Lines: 27 In article <11004@attctc.Dallas.TX.US> chiu@attctc.Dallas.TX.US (John-Son Chiu) writes: > > I am working on a program which can define the mouse curses shape >under EGA mode 16, I am using MSC V5.1 and microsoft Mouse EGA Lib. >After compiling, it shown a funny curses shape. Can any one help me on this. [...] > m1 = 9; /* Set the mouse cursor shape, color, and > Hot spot */ > m2 = 5; /* Horizontal hot spot */ > m3 = 0; /* Vertical hot spot */ > cmousel( &m1, &m2, &m3, curshap); [...] Change this to: m4 = curshap; cmousel(&m1, &m2, &m3, &m4); The fourth argument to cmousel should be a pointer to memory containing the address of the cursor shape, NOT the address of the cursor shape directly. Diomidis -- Diomidis Spinellis Internet: dds@cc.ic.ac.uk Department of Computing BITNET: dds@cc.ic.ac.uk Imperial College UUCP: ...!cernvax!cc.imperial.ac.uk!dds London SW7 2BZ JANET: dds@uk.ac.ic.cc