delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/23/23:50:48

From: "Helix" <maciek AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: The for_each_file function, HELP!!!
Date: 23 Mar 1998 23:51:15 GMT
Organization: Computers & More Inc.
Lines: 25
Message-ID: <01bd56d1$a9163380$LocalHost@stachowiak>
NNTP-Posting-Host: port66.compmore.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello
I've been writting my code and I've reached another stump. What I need is a
function which displays all the files in the current directory with the
extention "map", something like "World.map". It would also be nice if the
user could select the file and load it up. I think I've found a function in
the allegro libraries, named (for_each_file) but I don't understand the
last two arguments of the function, it's attrib and a param. My Callback
function is also almost certainly screwed up. (These are the times when you
wish more examples and documentation was available). Anyway any help would
be really appreciated.  

for_each_file("*.map", NULL, callback(), NULL);

callback()
{
 int d=0;
 d=d+15;

 textout(screen, font, "Does exits", 272+d, 147, 104);
}

P.S. I would like to thank everyone who has helped me so far.

maciek AT compmore DOT net

- Raw text -


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