Re: [DOS] WinNT Problem Focused
- Posted by Ray & Debbie Smith <smithr at IX.NET.AU> Oct 17, 2000
- 584 views
I did some testing on NT and it all seems to work ok ... after some quick changes to the little test program I used. I also removed a refernce to an include I was using the modified win32fil.ew with. I also added a CloseHandle API call to win32fil.ew to gracefully close the file handle after the CreateFile API routine is called. All in all I think it should be able to do the job. Check out win32fil.zip at: http://members.nbci.com/ray_223/sw/ For the modified win32fil.ew and a little test program. Ray Smith. ----- Original Message ----- From: Ray Smith <smithr at IX.NET.AU> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Tuesday, October 17, 2000 2:32 PM Subject: Re: [DOS] WinNT Problem Focused > Hi ck, > > I checked around the archive and couldn't see anything that called > the WinAPI CreateFile directly. > I modified win32fil.ew again (created by Jeffrey Fielding - > thanks again Jeffrey) to add the CreateFile API call. > > Note: There are heaps of options for The Win API CreateFile which I have > defaulted to standard values. > > You can pick the modified win32fil.zip file from: > > http://members.nbci.com/ray_223/sw/ > > I tested it under win98 and it worked fine but don't have access to a WinNT > here at work, I'll see if I can test it out tonight at home. > > You will have to do a CreateFile("whatever") > followed by an open file "I THINK". > > > Hope this works! > > Ray Smith > > >> >ck lester wrote: > >> > > >> >> junk = open( "alongname.txt" , "w") > >> > > >> >You can only *create* 8.3 filenames in Euphoria. This limitation > >> >only exists > >> >for file creation. > >> > > >> >I'm fairly certain that someone wrapped a lot of these Win32 > >> file services, > >> >including open with long file name. If not, you could always > >> open the file > >> >with a bogus name, close it, rename it, and then open it with the > >> >long name. > >> > > >> >-- David Cuny > >> > > > > > > >_________________________________________________________ > >Do You Yahoo!? > >Get your free @yahoo.com address at http://mail.yahoo.com > >