delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/04/22:45:10

From: hank_heng AT hotmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: gettex() and puttext() problem.
Date: Tue, 05 Oct 1999 01:24:08 GMT
Organization: Deja.com - Before you buy.
Lines: 44
Message-ID: <7tbjvd$vve$1@nnrp1.deja.com>
NNTP-Posting-Host: 161.142.112.8
X-Article-Creation-Date: Tue Oct 05 01:24:08 1999 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
X-Http-Proxy: NetCache AT jrc-cache8: Version 3.3.1P1, 1.1 x28.deja.com:80 (Squid/1.1.22) for client 161.142.112.8
X-MyDeja-Info: XMYDJUIDhank_heng
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

  I try to compile the fillowing code, there is no error when compile
time, but when I try to run the compiled executable, it crash, and when
I try to debug it with "symify", it point back to the end of file is
causing error, this does not make any sense at all...

  The following is my code, what is wrong with it ?


#include <conio.h>
#include <stdio.h>

main()
{
  int test=3;
  char destination;
  void *des = &destination;


  /* capture screen character */
  test = gettext(10, 10, 20, 20, des);

  printf("gettext test = %d.\n", test);

  printf("press any key to continue...\n");
  getch();
  clrscr();
  getch();


  /* putting back screen character */
  test = puttext(10, 10, 20, 20, des);
  printf("puttext test = %d.\n", test);
}


  Thankx for helping me out.

Hank


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019