LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2009, 11:44 PM   #1
thirumalesh
Member
 
Registered: Sep 2007
Posts: 54

Rep: Reputation: 15
Implementing WIN32_FIND_DATA in Linux


Hi friends,

I am porting an application which using WIN32_FIND_DATA structure...can anybody let me know how this will be implemented in linux ..


Thanks in Advance....
 
Old 02-03-2009, 02:03 AM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by thirumalesh View Post
Hi friends,

I am porting an application which using WIN32_FIND_DATA structure...can anybody let me know how this will be implemented in linux ..


Thanks in Advance....
There is no WIN32_FIND_DATA in linux, but there is dirent structure.
Use scandir, opendir, etc. See "man scandir", "man opendir" for more info. Or use some cross-platform API, like Qt 4.

--EDIT--
Reading files in directory example:
http://www.linuxforums.org/forum/lin...s-files-c.html

Last edited by ErV; 02-03-2009 at 02:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
implementing virtual cdrom in linux rameshg87 Linux - General 8 09-11-2007 10:37 AM
Implementing RDB in Linux pr4pyaar Programming 0 03-02-2007 04:36 AM
Implementing a HA Samba fileserver on Linux with SSI mlenehan Linux - Software 2 09-03-2003 04:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration