On 3/25/2010 11:48:00 AM, Pauli Lindgren wrote:
>On 3/19/2010 12:38:42 PM, Peter Rejto
>wrote:
>>On 7/28/2009 11:55:27 AM, Steven Borrok wrote:
>>
>>1. If I click Help
>>>/ VEDIT User's Manual, I get
>>>unsupported 16-bit
>>>application, followed by
>>>"CANNOT SHELL OUT. ERROR #88".
>>>I can bring the PDF manuals
>>>(user & macro) up no problem
>>>from Window Explorer.
>>
>>
>>Hello Steven,
>>
>>I am also an x64 Vedit user, although I
>>use it on Win XP (x64).
>>
>>I have adapted a the Vedit macro,
>>VEDITPDF.VDM, to my Win XP (x64)
>>operating system. Specifically, I have
>>replaced the System(nnn,DOS) command by
>>a short subroutine. This adaptation was
>>not enough to run it from the Vedit
>>{Help} menu. So, I added my initials to
>>the adapted macro and run it from the
>>{Misc, Load/exec user macro ..} menu. I
>>shall upload, VEDITPDF_PAR.VDM and
>>please let me know whether or not it
>>does work for your system.
>
>Peter,
>
>The problem with your version is that
>the user has to edit the macro depending
>on which version of Acrobat is
>installed. In addition, your macro
>expects Acrobat, while most people only
>have Adobe Reader.
>
>I wonder why you have removed some of
>the code from the original macro? Is
>this the reason why it can not be run
>from Vedit Help menu?
>
>Anyway, I now made a version that uses
>registry key
>"HKEY_CLASSES_ROOT\Software\Adobe\Acroba
>t\Exe\(Default)"
>This should work for most users, whether
>they have Acrobat or just the reader
>installed.
>
>This version is based on the original
>veditpdf.vdm. Essentially, only the
>system call has been modified, so it
>should be compatible with the old
>version.
>If the registry key is not found, the
>old method for calling associated app is
>used.
>
>I added some Statline_Messages for
>debug. Maybe those should be removed
>from the final version.
>In addition, I changed the text in the
>dialog box a bit, since
>- Acrobat Reader is now called Adobe
>Reader
>- You do not need to have .pdf files
>associated since the reader is called
>directly
>
>This macro works fine on my computer,
>but I don't have 64-bit Windows.
>So maybe Peter and Steven could test
>this?
>
>--
>Pauli
Pauli,
I am back to your VEDITPDF.VDM file and my reason is that it did not work on my office computer.
It was easy to fix it. Essentially, I hard wired the path to my Acrobat programm.
Now I would like to give you a more detailed report. The source of my problem was that I do not have access to the Windows registry on my office computer. So,
I ended up with the CAN NOT SHELL OUT, ERROR NUMBER 65 message.
Therefore, I commented out your line 74, which says that
if (Registry_Get_Item(#51,"HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe\(Default)") > 0) {
.....
Then I looked up on my desktop how do I call my Acrobat program and pasted this path.
I am attaching the exact details. Here I used my previously edited version of your VEDITPDF.VDM file
My reason for editing your file was that I would like to use it as a template. So, I wanted to have additional references to the Vedit manual. I also wanted to incorporate a trick that I have learned from Christian'a OPENCURS.VDM file. (This trick says, essentially, that although Vedit does not allow the concatenation of strings in general, there is a special case when it does allow it.
The case of the arguments of the System( ) command.)
Anyway, previously I did cut up the usage of your Reg_Set(#51,...) into two pieces. Specifically, into Reg_Set(#51, ...) and Reg_Set(#52, ....). Now this turned out to be handy, inasmuch as it was only neccesary to change my Reg_Set(#51, ..) command only.
I am attaching my VEDITPDF.VDM. Incidentally, thank you for your pointing out that my previous editing introduced some new errors. I fixed up some of those, but of course, I do not know whether I did fix all of them.
-peter
|
|