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?
Printable View
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?
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.
I think I remeber seeing some one posting a wrapper like that on PSCode, might want to check it out.
You could use _chdir() in direct.h
Z.
Can you please give me a little bit more details? What is PSCode?Quote:
Originally posted by Technocrat
I think I remeber seeing some one posting a wrapper like that on PSCode, might want to check it out.
Planet source code. It's where people post code and source files. PSCode.com