MagicFrisbee
Programmer
Question: Is the Windows.CopyFile method asynchronous? Here's why I'm asking: I copy a file from the network to the users's hard drive. It's a DLL. I then copy another DLL from the network to the hard drive and then call RegisterComServer on it. I get an error message that a dependency file doesn't exist, but the dependency file was the first one I copied. And in this case, no, the first file does not have to be registered. Manually, this all works fine, but programmatically I get that error.
If, however, the dependency is there before the program runs, then the subsequent FileCopy and RegisterComServer functions work just fine.
One thing I've tried after the CopyFile command was this:
But that didn't work. Same error message. Any ideas on what to do, or better, why this isn't working?
GIS Programmer
City of Orem, UT
If, however, the dependency is there before the program runs, then the subsequent FileCopy and RegisterComServer functions work just fine.
One thing I've tried after the CopyFile command was this:
Code:
while not FileExists( sFileName ) do ;
But that didn't work. Same error message. Any ideas on what to do, or better, why this isn't working?
GIS Programmer
City of Orem, UT