accessing a pdf file
Posted: Mon Dec 14, 2015 9:58 pm
I am fairly new to PureBasic and I am using it to write some Engineering design software. Theses will be compiled first to run on Windows 7 Pro 64 bit and later be compiled to run on Windows XP Pro 32 bit and OS X 64 bit.
As a start I have been using PureBasic to update a 4200 line design utility that I wrote in Power Basic for DOS in 1991 and last revised in 1995. This was done as a learning process to use a known program with confirmed results to create an up-to-date windows program. The program has all of its modules running correctly and fully de-bugged. The last little par to add to finish it and move on to the larger project I need to do is to be able to open the .pdf of the user manual I wrote from the help menu. I have tried using various versions of the example with the RunProgram command information in the PureBasic reference manual / help file and the best I have been able to get is to have no syntax error but not open the pdf with the code part shown below:
The pdf file is in the same folder as the source and compiled codes. If anyone has a suggestion, I would be appreciative.
Clif
__________________________________________________
Code tags added
14.12.2015
RSBasic
As a start I have been using PureBasic to update a 4200 line design utility that I wrote in Power Basic for DOS in 1991 and last revised in 1995. This was done as a learning process to use a known program with confirmed results to create an up-to-date windows program. The program has all of its modules running correctly and fully de-bugged. The last little par to add to finish it and move on to the larger project I need to do is to be able to open the .pdf of the user manual I wrote from the help menu. I have tried using various versions of the example with the RunProgram command information in the PureBasic reference manual / help file and the best I have been able to get is to have no syntax error but not open the pdf with the code part shown below:
Code: Select all
Case #Menu_Manual
MessageRequester("Manual", "PDF of user manual loaded here")
If RunProgram("SECTION V5.0 win64 UserManual.pdf")
Debug "SECTION Manual running"
Else
Debug "SECTION Manual not running"
EndIfClif
__________________________________________________
Code tags added
14.12.2015
RSBasic