Dear Listers I don't suppose many will be able to solve this but here goes...
I'm invoking a MapInfo application, via a MapBasic .MBX. Everything works more or less fine from native VFP (7 SP1), via the following lines: lcMBXLoc = SYS(5)+SYS(2003) + "\mPLANMap.mbx" oShell = CreateObject( "WScript.Shell") oShell.Run( ( lcMBXLoc), 1, .T.) As expected, the .MBX is in the same folder as my foxpro .exe. But, for the user version, where my exe is placed in \Program Files\MyAppFolder, and I invoke the exe, it crashes, presumably on the oshell.run, with the error message: OLE Error 0X80070002 The system cannot find the file specified. I thought, "Ah, maybe I have to include the MapInfo.exe in the same folder, so copied it there, but no joy. As I said, running this from VFP there's no problem. But, when I do it in debug, at the line: oShell.Run( ( lcMBXLoc), 1, .T.) I get a brief glimpse of my MI app, which disappears, then Foxpro hangs up (with the hour-glass) and I can't do anything with the pc. I have to abort VFP with Task Manager - then the damn MapInfo application comes to life. When I exit that, as normal, of course my VFP prog has ceased. Please, somebody, help me!!! Terry
