The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
scandir() for Solaris nadiamihu High Level Programming 2 12-06-2006 09:05 PM
Need help with scandir / stat Bertsura High Level Programming 2 02-07-2005 07:58 AM
windows startup equivalent in linux raguramtgr Linux 1 03-30-2004 05:18 PM
unix equivalent for windows APIs.......................... ani High Level Programming 2 10-29-2002 05:47 AM
Unix Equivalent of Windows NT Diagnostic (Winmsd) report neer UNIX for Dummies Questions & Answers 2 09-13-2001 01:40 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2008
Registered User
 

Join Date: Nov 2007
Posts: 57
scandir() + windows equivalent

Currently, Im trying to redesign some Unix-based C code to work on the Windows operating system and one problem I ran into when compiling was that the compiler failed to recognise scandir() (from my original Linux code)

Im aware that scandir() is a Unix-based function, so is there an equivalent function for Windows or a unique Windows-based header file that I require ?

My Windows compiling environment is Borland C++ 5.5

many thanks
James
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-16-2008
Registered User
 

Join Date: Jul 2008
Posts: 3
Use FindFirstFile and FindNextFile. They are less powerful than scandir, but I think it might be the best match to what you are trying to achieve,
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0