Article View: be.comp.programming
Article #15744union REGS
From: Sven Noben
Date: Wed, 30 Aug 2000 00:00
Date: Wed, 30 Aug 2000 00:00
39 lines
1232 bytes
1232 bytes
Hoi,
Ik kan precies geen gebruik maken van union REGS ??
ik heb het bestand <dos.h> ingesloten, maar het geeft de fout: Undefined
structure 'REGS' bij alle2 mijn compilers (BCB & DEV-C)
What should i do?
Thanks,
Sven.
Included an example that gives the error:
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#define VIDEO 0x10
void movetoxy(int x, int y)
{
union REGS regs;
regs.h.ah = 2; /* set cursor position */
regs.h.dh = y;
regs.h.dl = x;
regs.h.bh = 0; /* video page 0 */
int86(VIDEO, ®s, ®s);
}
int main(void)
{
clrscr();
movetoxy(35, 10);
printf("Hello\n");
return 0;
}
Technical Details
Message-ID:
<qX9r5.51893$AP3.368679@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,e07ae064d6d557d,start X-Google-Attributes: gidfcea4,public From: "Sven Noben" <sven@linkstad.com> Subject: union REGS Date: 2000/08/30 Message-ID: <qX9r5.51893$AP3.368679@afrodite.telenet-ops.be> X-Deja-AN: 664368003 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Trace: afrodite.telenet-ops.be 967650134 213.224.56.91 (Wed, 30 Aug 2000 17:42:14 MET DST) Organization: Pandora - Met vlotte tred op Internet NNTP-Posting-Date: Wed, 30 Aug 2000 17:42:14 MET DST Newsgroups: be.comp.programming