🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #1813

VB References CS vs. 7.0

#1813
From: keith_tromer
Date: Tue, 13 Jul 2004 17:00
18 lines
2116 bytes
Hi. I have a VB app that works with scripting. I want to make it work for both CS and 7.0. The way I understand it these are my two options... BOTH seem to have a problem I am hoping someone can shed some light on for me.

OPTION 1
don't set reference and use CreateObject instead. I guess this would enable having one compiled app work for both PS versions BUT...
  1. I dim other object for example psDoc as Photoshop.document, I (think) I can dim these as variants, right?
  2. This is the one I can't get around, I use the enum in my programming, i.e.:
            Dim extType As Photoshop.PsExtensionType
            extType = psUppercase
      I would have to go through and recreate all the global enums (correct term?) manually -- OR -- is there some kind of DEFINES file I can include?

OPTION 2
Set reference to 7.0 Object Library -- Compile -- then change reference to 8.0 Object library -- compile another version and selectively install the correct version.

My problem here is this... I have 7.0 and CS installed on the programming machine. (I installed 7.0 AFTER CS - don't know if that's the problem). I go to references and unCheck 8.0, click OK, go Back to references and Check 7.0 Object library and click OK. If I know go back to the references dialog, it seems to have automatically changed the reference back to 8.0... Why is that? This is now STOPPING me from compiling a version for 7.0?

Thanks for any help!!!

Keith
Technical Details
Message-ID: <3bb50431.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news.zanker.org!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,b077373d74ae1695,start
X-Google-Attributes: gidf5839,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: keith_tromer@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news.zanker.org!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: VB References CS vs. 7.0
Message-ID: <3bb50431.-1@webx.la2eafNXanI>
Date: Tue, 13 Jul 2004 10:00:55 -0700
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit