www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/18/17:17:48

From: "Campbell, Rolf [SKY:1U32:EXCH]" <cp1v45 AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Directory access - easy method?
Date: Wed, 18 Aug 1999 16:21:36 -0400
Organization: Nortel Networks
Lines: 20
Message-ID: <37BB15CF.FB9341D4@americasm01.nt.com>
References: <37BAF973 DOT 6D5C AT ns DOT sympatico DOT ca>
NNTP-Posting-Host: bmerhc00.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Klaas wrote:

> In allegro, in any of the "load_file" function, I can't specify a
> directory, or else the file will not be found.  What are other
> alternatives?
>
> eg.
>
> load_midi("temp.mid"); //works fine
> load_midi("midi\temp.mid"); //returns NULL pointer

Use a forward-slash "/" or a DOUBLE backslash "\\" to deliminate directory
names.  "\t" is considered a tab, so you are trying to load a file called
"midi<TAB>temp.mid" and that file doesn't exist...

--
     -Rolf Campbell (39)3-6318



- Raw text -


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