Results 1 to 6 of 6

Thread: Dir.h

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Guwahati, Assam, India
    Posts
    131

    Question Dir.h

    What should I do to compile one C program in MS Visual C++ that includes DIR.H file of Borland? Does anybody have any idea?
    I am new to VB...

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    It's a lot of work.

    You'll have to write wrapper code for a lot of the dir.h stuff.

    chdir() is standard - in unistd.h

    You'll need to create a wrapper for all of the existing calls like
    findfirst(), findnext(), fnsplit().

    In other words, have them call the windows api to do the same stuff, using FILETIME and WIN32_FIND_DATA - this takes the place of struct ffblk.

    The path routines like fnsplit() will have to call the Windows path routines like PathIsRoot(), etc.

  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    I think I remeber seeing some one posting a wrapper like that on PSCode, might want to check it out.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  4. #4
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    You could use _chdir() in direct.h

    Z.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Guwahati, Assam, India
    Posts
    131

    Lightbulb

    Originally posted by Technocrat
    I think I remeber seeing some one posting a wrapper like that on PSCode, might want to check it out.
    Can you please give me a little bit more details? What is PSCode?
    I am new to VB...

  6. #6
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Planet source code. It's where people post code and source files. PSCode.com
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width