Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM object cannot find my data
Message
From
22/08/2000 15:59:55
 
 
To
22/08/2000 15:03:05
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00401883
Message ID:
00407952
Views:
22
>>My NETRESOURCE class (relies on CLSHEAP, also downloadable from here on UT) includes sample code for implementing WNetAddConnection3(). Without a mechanism to implement static memory allocation and addressing, you'll never get the NETRESOURCE structure implemented, since it includes embedded pointers to strings, and with VFP shifting things around in memory at will, it is not feasible to just put stuff into a VFP string - either NETRESOURCE/CLSHEAP will be needed, or Christof's STRUCT to allocate and decode the needed structures. Like I said, NETRESOURCE includes an example that implements WNetAddConnection3(); with STRUCT, you'll have to implement it on your own.
>
>Well, I've not tried your code, but still get the same error message. It works interactively on the desktop of the server, (A drive letter appears that wasn't there before execution) but when executed through ASP, the object continues to report the following error:
>
>Error: openfiles c:\winnt\system32\program1.prg Error in line 123 File is in use by another user. 702

You have a file opened unshared, probably the .FXP from what I can see; it may well be that you don't have permission to compile program1.prg in the C:\WinNT\System32 folder; I certainly won't let anyone except administrator equivalents create or deelete files in the system directory. I'd try a more harmless location for the program, where you have create and delete permissions.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform