4d2 Subj : Re: Opening a file that is being created with a VB App. To : borland.public.cpp.borlandcpp From : =?ISO-8859-1?Q?=22Jos=E9_J=2E_Armenta_E=2E=22?= Date : Sat Jun 05 2004 01:46 am Hi, I don't know if CreateFile is a must for the work you're doing, (need the specific handle for further use), but, additionally to Ed's response, CodeBase has a set of file functions that deal very well with low level file management, text and binary (file4open, file4create, file4close, etc.). This function set use the CreateFile function (under Win32). If the handle is needed, maybe you'll have to make a little hacking of the library source code. HTH. /JJ. Sebastian Ledesma wrote: > Hello: > > I need to open a file that is being created by a Visual Basic App > (something like this: Open sFile2 For Binary As FileGrab2 ), i tried several > parameters with CreateFile without success ( hf=CreateFile(filename, > FILE_READ_DATA, FILE_SHARE_WRITE, lpSecurityAttributes, > OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); ), any hints will be > appreciatted. > > Thanks. > > Saludos > Sebastian > > -- ** Para responderme, cambie _J_ por _ ** To respond, change _J_ by _ . 0