TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: Morten Toftgaard Jensen
date: 1995-12-21 16:26:02
subject: [1/2] PFILEFINDBUF3

Hey Phil!

 MTJ>> The problem as I see it, is that you only allocate the 
 MTJ>> FILEFINDBUF3 structure once, when fetching more than one file at a 
 MTJ>> time. You have to give a valid pointer to each call of 
 MTJ>> DosFindFirst/DosFindNext of the size required, which means that if 
 MTJ>> you wish to fetch fileinfo for a hundred files at a time, you need 
 MTJ>> to allocate a buffer of "sizeof (FILEFINDBUF *
FILES_TO_GET)". The 
 MTJ>> system does not allocate this buffer for you! 
 MTJ>> Try fetching one file at a time instead, with following code:

 > I can fetch one file at a time.  I want to fetch more than one file at 
 > at time to exploit OS/2's improved file finding API's.
Oh, I see...

 > Here's what I've got so far, it works, but has a bug still, it doesn't 
 > print the last file in the directory, and the EA's aren't the same as 
 > when I do a 'dir' form the command prompt, for ex, this code shows an 
 > EA size of 70 but 'dir' shows 35...?
I haven't yet discovered the bug, but I will return if I find it...


Yours,

Morten T. Jensen
* Where do you want to go today? * Not the Microsoft way! *
* OS/2Net: 81:445/12.77 * FidoNet: 2:236/100.77 * Network 42: 2:238/42.8 *
---
* Origin: Faith? - Just another word for not thinking! (2:236/100.77)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 236/100 235/47 236/9 235/50 240/5500 24/24 396/1 270/101 712/515
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.