Xref: news2.mv.net comp.os.msdos.djgpp:2412 From: arcanix AT aol DOT com (Arcanix) Newsgroups: comp.os.msdos.djgpp Subject: outtextxy() won't work Date: 3 Apr 1996 16:38:39 -0500 Organization: America Online, Inc. (1-800-827-6364) Lines: 47 Sender: root AT newsbf02 DOT news DOT aol DOT com Message-ID: <4jur4v$poa@newsbf02.news.aol.com> Reply-To: arcanix AT aol DOT com (Arcanix) NNTP-Posting-Host: newsbf02.mail.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I just downloaded the bcc2grx package today, and I've had a slight problem. Outtextxy won't seem to work at all whenever I run my program. The test simply doesn't show up on the screen. Anyway, here is a listing: #include #include #include void initialize(void) { int gdriver = DETECT, gmode, errorcode; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); /* return with error code */ } } void main(void) { initialize(); settextstyle(DEFAULT_FONT, HORIZ_DIR, 1); setfillstyle(SOLID_FILL, LIGHTGRAY); bar(0, 0, 639, 20); setcolor(WHITE); line(0, 20, 0, 0); line(0, 0, 639, 0); setcolor(DARKGRAY); line(639, 0, 639, 20); line(0, 20, 639, 20); setcolor(BLUE); outtextxy(5, 5, "File"); /*won't do anything */ outtextxy(30, 30, "JKHFDD"); /* Again, nothing */ getch(); clearviewport(); closegraph(); } The program works perfectly when compiled under Borland C++ 3.1. Please post here or e-mail me if you know what's wrong, or I might have to return to 16-bit real mode! /-|rcanix