RE: CopyFileEx API Call
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Oct 03, 2004
- 409 views
>From: Larry Miller <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: CopyFileEx API Call >Date: Sat, 02 Oct 2004 21:07:00 -0700 > >posted by: Larry Miller <lmiller7 at mail.com> > >I have been trying to use the CopyFileEx function with a call back routine= >provided by call_back(). The copy works and progress is reported, but ther= e >is a machine exception when CopyFileEx returns. I believe the problem is >that CopyFileEx is passing too many parameters. It passes no less than 9 >separate parameters, 4 of which are LARGE_INTEGERS, for a total of 13 >32 bit values. According to the Euphoria documentation a maximum of 9 are >allowed for a callback function. > A LARGE_INTEGER is a union of a long long and two long's (ie. a 64-bit= integer that can be accessed as two 32-bit integers). It should be regarded= as a pointer (to the 64-bit integer.) That should give you exactly 9 parameters, just enough... >This is with Euphoria 2.4 on Windows 2000. > >Am I understanding the situation incorrectly or is this a real problem? >Is there some way I can use this function? My experience with Win32Lib and= >Windows programming is somewhat limited. Maybe one of you seasoned >programmers can shed some light on the subject. > >Larry Miller > ~[ WingZone ]~ http://wingzone.tripod.com/ s first two months FREE*.