searchpath function?

This is a discussion on searchpath function? within the C++ Programming forums, part of the General Programming Boards category; Hello, I am attempting to use the searchpath function located at: http://www.digitalmars.com/rtl/direct.html#searchpath I include the <direct.h> header and my compiler ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    59

    Unhappy searchpath function?

    Hello,

    I am attempting to use the searchpath function located at:
    http://www.digitalmars.com/rtl/direct.html#searchpath

    I include the <direct.h> header and my compiler (C++ .net) does not seem to find any specification for searchpath.

    I also tried to include the <dir.h> header in the example and I get an error message from my compiler saying it cannot find dir.h.

    How do I enable my code to use the searchpath function?
    " . . . and I lay awake, big dreamers never sleep." - David Lee Roth

  2. #2
    Registered User raimo's Avatar
    Join Date
    Jun 2002
    Posts
    107
    So, you use C++ .Net as a compiler and you are seeing Digital Mars compiler's tutorials. direct.h is not a standard header and therefore it has to be Digital Mars-specific. Your compiler is C++ .Net and that is the reason why those non-standard headers don't work for you. You have two(2) options:
    1) Implement <whatever> with your own compiler and with its functions.
    2a) Install Digital Mars compiler.
    2b) Port Digital Mars libraries to C++ .Net

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    59
    Someone sent me a link to digital mars a few weeks ago.

    I had no idea the url was compiler specific!

    Some of the functions work on C++ .net including _chdir and _getcwd.
    " . . . and I lay awake, big dreamers never sleep." - David Lee Roth

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    That is great and all but that doesn't truly help VanJay011379. So VanJay, do you have a header called dirent.h? It is standard as far as I know. Tell me if you do. Otherwise you can try some windows calls.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  4. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21