www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/09/00:30:31

Message-ID: <19990409042529.2583.qmail@nw178.netaddress.usa.net>
Date: 9 Apr 99 09:55:29 IST
From: Anindya Kumar Biswas <anindyabiswas AT usa DOT net>
To: djgpp AT delorie DOT com
Subject: Help on my project
X-Mailer: USANET web-mailer (M3.0.0.45)
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id AAA16091
Reply-To: djgpp AT delorie DOT com

problem 1:
My code is as follows

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

struct datafeed
{
 char name[80];
 int *integer;
 float *floating;
 char *string;
 long int *longint;
}tray;

struct token
{
 char *name;
 char type;
 void *data;
 token *next;
};

int main()
{
 printf("yo hoo hoo");
return 0;
}

this program is not running the error is as follows:
c:/chotu/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or directory
(ENOENT)


Problem 2:
#include<bios.h>
#include<conio.h>
#include<stdio.h>

int main()
{

//FILE *anindya=fopen("keydef.h","o");
  int key;
  char keys[13];
  do
   {
    key=bioskey(1);
    if(key!=0)
     {
     printf("yo main");
     bioskey(0);
     }

   }while(strcmp(keys,"exit")!=0);

return 0;
}


in this code every time i press a key I should get yo main on the screen but
it does not work I want this because I want a way to trap keys without
stopping the program execution I made a texteditor few days back for my class
XII project. in it I put all the int code of all the keys on the keyboard then
with bioskey compair the code and then generate the actual key value for the
code. It worked in Borland C++ It is not working here. You know the funny
thing is 'yo main' is displayed on screen after I have ^c the program.

PS. There are better ways of key trap if you know one please tell me how?

Some one please help me because I am making a interprater programming language
using Djgpp & it is my only ticket for getting admited in a university for
undergraduate studies because academically I am Screwing up big time.


____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

- Raw text -


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