|
-
Nov 26th, 2002, 08:17 AM
#1
Thread Starter
Addicted Member
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?
-
Nov 26th, 2002, 10:26 AM
#2
Frenzied Member
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.
-
Nov 27th, 2002, 01:08 PM
#3
Frenzied Member
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

-
Nov 27th, 2002, 01:11 PM
#4
Frenzied Member
You could use _chdir() in direct.h
Z.
-
Nov 27th, 2002, 01:29 PM
#5
Thread Starter
Addicted Member
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?
-
Nov 27th, 2002, 01:30 PM
#6
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|