Sobre Buddy API para Proyectores

Estiamdo Martin tengo este xtra ...
Como puedo hacer para detectar si el usuario por ejemplo tiene algun programa para abrir pdf ò dwg ? Y si lo tiene hacer que abra un archivo (pdf) del CD donde esta el proyector con esa aplicacion.... ??? Y en caso no este instalado ninguna aplicacion, pues abir el isntalador del acrobat reader ???
Muchas Gracias

1 Respuesta

Respuesta
1
Se hace así:
On abpertura
abrir = baOpenFile( the pathname&"dir/acgi.pdf" , "maximised" )
if abrir>=32 then
nothing
else
alert "hay algún problema con la apertura del fichero"
end if
end
En este ejemplo pongo una ventana de alerta para cualquier tipo de error en la apertura.
Si quieres ser más preciso en los erores te pongo aqui todos los tipos de error que puede hacer.
0 System was out of memory.
2 File was not found.
3 Path was not found.
5 Sharing or network-protection error.
6 Library required separate data segments for each task.
8 There was insufficient memory to start the application.
10 Windows version was incorrect.
11 Executable file was invalid. Either it was not a Windows application or there was an error in the .EXE image.
12 Application was designed for a different operating system.
13 Application was designed for MS-DOS 4.0.
14 Type of executable file was unknown.
15 Attempt was made to load a real-mode application (developed for an earlier version of Windows).
16 Attempt was made to load a second instance of an executable file containing multiple data segments that were not marked read-only.
19 Attempt was made to load a compressed executable file. The file must be decompressed before it can be loaded.
20 Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application was corrupt.
21 Application requires 32-bit extensions.
26 A sharing violation occurred.
27 The filename association is incomplete or invalid.
29 The DDE transaction failed.
30 The DDE transaction could not be completed because other DDE transactions were being processed.
31 There is no application associated with the given filename

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas