View Single Post
Old Mar 18th, 2006, 5:24 AM   #4
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 884
Rep Power: 4 The Dark is on a distinguished road
There are a couple of things I can think of, don't know if they are the problem though:

1. The help says
Quote:
pTo
Address of a buffer to contain the name of the destination file or directory. This parameter must be set to NULL if it is not used. Like pFrom, the pTo member is also a double-null terminated string and is handled in much the same way. However, pTo must meet the following specifications
Are you setting the pTo to NULL? You don't in the fop case, but you might just be "lucky" and it happens to be NULL anyways.

2. From the help again:
Quote:
If the pFrom or pTo members are unqualified names, the current directories are taken from the global current drive and directory settings as managed by the GetCurrentDirectory and SetCurrentDirectory functions.
Possibly something is changing your program's current directory before the gop version is called (e.g. a file open dialog). Try it with fully qualifies paths (i.e. stick c:\\ in front of both of the paths)
The Dark is offline   Reply With Quote