Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-29-2005, 05:37 AM   #1 (permalink)
ashok rajagopal
Registered User
 
ashok rajagopal's Avatar
 
Join Date: Sep 2005
Posts: 20
ashok rajagopal is on a distinguished road
16-32 Bit Conversion

i have this code to be changed from 16 bit to 32 bit...

want help on how to convert _dos_findfirst and _dos_findnext ... these functions are to be replaced by FindFirstFile and FindNextFile... any examples ?
functions have different number and types of parameters
ashok rajagopal is offline   Reply With Quote
Old 09-29-2005, 06:02 AM   #2 (permalink)
TheSheep
Registered User
 
TheSheep's Avatar
 
Join Date: Mar 2005
Location: UK
Posts: 11
TheSheep is on a distinguished road
Send a message via ICQ to TheSheep Send a message via AIM to TheSheep Send a message via MSN to TheSheep Send a message via Yahoo to TheSheep
This is not a standard C/C++ question. FindFirstFile and FindNextFile are part of the Windows API.

However info you need is here:
http://msdn.microsoft.com/library/de...dfirstfile.asp

Example - finds files of the specified filter (e.g. "c:/*.txt") and draws a message box displaying each one's name:
Code:
BOOL findsomefiles(LPCSTR filter)
{
WIN32_FIND_DATA wfd;
HANDLE hFind;
BOOL result;

hFind=FindFirstFile(filter,&wfd);
if(hFind==(HANDLE)INVALID_HANDLE_VALUE)
   return 0;

do
   {
   MessageBox(0,wfd.cFileName,"Found file",MB_ICONINFORMATION);
   result=FindNextFile(hFind,&wfd);
   } while(result && result!=ERROR_NO_MORE_FILES);

FindClose(hFind);

return 1;
}
TheSheep is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorry If I sound a bit in a stressful mood redhead Lounge 2 06-25-2004 09:49 AM
12 bit RGB to 16 bit RGB conversion jimst Standard C, C++ 6 06-08-2004 05:59 PM
void * conversion problems Lovecraft Standard C, C++ 6 04-28-2004 04:51 AM
invalid conversion paul Standard C, C++ 3 02-02-2004 11:58 AM
Lez explore a bit. Valmont Standard C, C++ 4 01-08-2004 09:37 AM


All times are GMT -8. The time now is 06:24 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting