Article View: alt.msdos.programmer
Article #1459Changed DJGPP to Visual C++
From: Mika Rasimus
Date: Mon, 27 Jul 1998 00:00
Date: Mon, 27 Jul 1998 00:00
32 lines
1914 bytes
1914 bytes
When I wanted to load Vesa's VbeInfoBlock with DJGPP-compiler, I used to do
following code:
void GETVIB(void)
{
int seg, off;
if (vib) delete vib;
vib=0;
__dpmi_regs r;
/* RM seg:offset for transfer buffer */
seg = (__tb & 0xffff0000) >> 4; // This means a segment in
absolute 16-bit
off = (__tb & 0x0000ffff); // flat real-mode
address-space.
/* request VBE information */
_farpokel(_dos_ds, __tb, 0x32454256); // Signature "VBE2"
r.x.di = off;
r.x.es = seg;
r.x.ax = 0x4f00;
__dpmi_int(0x10, &r); // Make 16-bit real
mode interrupt call
if ((r.x.ax==0x004f) &&(_farpeekw(_dos_ds, __tb+4)>=0x0200))
{
vib=new VbeInfoBlock;
dosmemget(__tb, sizeof(struct VbeInfoBlock), vib); // Copy VIB to
memory that
// C++ can use.
}
}
Now... How I do same thing with Microsoft Visual C++?
Technical Details
Message-ID:
<6pg8ai$mls$2@hiisi.inet.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,e877b0724bb08dde,start X-Google-Attributes: gid10f6aa,public X-Google-Thread: 108717,e877b0724bb08dde,start X-Google-Attributes: gid108717,public X-Google-Thread: fbd5d,e877b0724bb08dde,start X-Google-Attributes: gidfbd5d,public X-Google-Thread: fe105,e877b0724bb08dde,start X-Google-Attributes: gidfe105,public X-Google-Thread: 100dc5,e877b0724bb08dde,start X-Google-Attributes: gid100dc5,public X-Google-Thread: 102bfa,e877b0724bb08dde,start X-Google-Attributes: gid102bfa,public From: "Mika Rasimus" <mika.rasimus@pp.inet.fi> Subject: Changed DJGPP to Visual C++ Date: 1998/07/27 Message-ID: <6pg8ai$mls$2@hiisi.inet.fi> X-Deja-AN: 375155539 Organization: Freelance Group X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.programming,fj.net.programming,microsoft.public.jp.visualc,pl.comp.programming