Hola hmpaquito:
He incluido lo que me dices:
1.- he crado a.doc y lo he dejado abierto
2.- al ejecutar me dice que hay una copia abierta y si deseo abrir o grabar.
3.- he seleccionado abrir una copia de solo lectura y se ha abierto de nuevo el a.doc solo lectura
4.- se ha quedado bloqueado en SaveAs
5.- Cuando cierro el Word sale el siguiente error:
- Code: Select all Expand view
Application
===========
Path and name: C:\ColtHop\ColtHop.exe (32 bits)
Size: 3,150,336 bytes
Compiler version: Harbour 3.2.0dev (r1601050904)
FiveWin Version: FWH 13.11
Windows version: 6.2, Build 9200
Time from start: 0 hours 3 mins 5 secs
Error occurred at: 03/17/16, 09:49:24
Error description: (DOS Error -2147352567) WINOLE/1007 El comando falló (0x800A1066): Microsoft Word
Args:
[ 1] = C c:\colthop\cyewin\a.doc
[ 2] = N 4
Stack Calls
===========
Called from: => TOLEAUTO:SAVEAS( 0 )
Called from: colthop.prg => MAIN( 21 )
System
======
CPU type: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz 2600 Mhz
Hardware memory: 8116 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Windows total applications running: 6
1 ,
2 , C:\Windows\SYSTEM32\SHELL32.DLL
3 , C:\Windows\SYSTEM32\SHLWAPI.dll
4 , C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.18006_none_a9ec6a
5 Conmutación de tareas, C:\ColtHop\ColtHop.exe
6 DDE Server Window, C:\Windows\SYSTEM32\OLE32.DLL
Variables in use
================
Procedure Type Value
==========================
TOLEAUTO:SAVEAS
Param 1: O Class: ERROR
MAIN
Param 1: C "c:\colthop\cyewin\a.doc"
Param 2: N 4
Local 1: U
Local 2: U
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFCDX
DataBases in use
================
Classes in use:
===============
1 ERROR
2 HBCLASS
3 HBOBJECT
4 WIN_OLEAUTO
5 TOLEAUTO
6 TREG32
Memory Analysis
===============
209 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
Si no me equivoco es que se cerro Word cuando estaba intentando grabar.
Un saludo
Carlos