InDesign CS/CS2 Mac - making a target-specific macro

Hello.
This is more a CodeWarrior question than an InDesign question, but because the difficulty is caused by the SDK, I am asking the question here. If anyone objects to the question, I recommend not responding.
I want to do this in one of my projects (greatly simplified code to illustrate concept only):
void MyCall(PMString AString)
#ifdef PRE_RELEASE_VERSION
CAlert::InformationAlert(AString);
#endif
I want to set up my project so that if I am running a prerelease version of my plugin, PRE_RELEASE_VERSION is automatically defined by a compiler flag.
In Visual Studio this is simplicity, itself. The flag is something like /DPRE_RELEASE_VERSION. I can include it in the Preprocessor definitions field in the Properties pane. In XCode, a similar feature is present. But I have spent the last two hours studying CW8 and CW9 for a similar ability, and the closest I can come is to modify the SDKPluginPrefix.h file, which is the file automatically placed by Dolly in the Prefix File field of the C++ Language pane in the CW Target Settings Panels.
The problem is that we are not allowed to modify the SDK, as part of the rules we agree to when we download the SDK. Now, I suspect that if I did modify the SDKPluginPrefix.h file to include an additional #define statement, I doubt that Adobe would come hunting me down, nevertheless, I would rather honor that agreement.
Another possibility is some elaborate scheme of header files included in only one target, etc, but I would rather seek simplicity, if at all possible.
Is there
b any other way
to set up a macro in CW for a single target only?
TIA!
John

if you are using CW8, click on the target settings on the Project Window. Under the Language Settings > C/C++ Language, enter your own "Prefix File" name. In this of your own prefix file, #include "SDKPluginPrefix.h" and enter whatever you feel like defining.
In CW 9, click on the target settings, too but look for C/C++ Preprocessor. do your #define there.
Since these are per target settings, you will need to do the same for all the targets.
HTH.
pete

Similar Messages

  • Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools

    Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools. Like I click to open a file from the finder, and Indesign makes that temporary file in the finder, but won't display the pages. At other times I can have the pages displayed but I can't open the tools such as the colour swatches or the paragraphy styles. This all happens at random, although I suspect it is more likely to happen if I have been working in some other program such as Typestyler or Aperture, and come back to Indesign. Kind of like Indesign gets snooty at me working in another program.
    I've done the thing of dicing the preferences, but so far the only workaround that has worked so far is quitting and restarting the program. I don't remember this happening so much until recently, in other words the problem seems to be getting more frequent.
    But I am wondering if this has happened with anyone else and if there are any other suggestions for avoiding it.
    Back in the good old days you would reinstall PageMaker and that would settle things for a while. But now I don't know if a program like Indesign CS4 actually gets corrupted and if it does I don't know what to do. Does the program get corrupted? And should you reinstall a fresh copy? If it's a good idea to reinstall the program how do you do that? Is it possible to download a fresh copy? And if I do, what happens when the fresh copy phones home? I've tangled with the Adobe Microsoft corporation before when Indesign phoned home and got a crossed line.

    Other things to try:
    Examine your specific version of Optima by going to Type menu > Find Font, clicking on the Optima font and choosing More Info (I think) and find the specific version number. See if you can uninstall the font and reinstall another Optima font with a different, preferably newer version number. There has (historically) been a bad version of Optima floating around for years. Maybe you have it.
    Use a free utility like FontNuke or FontFinagler to get your Mac OS to reset its font plists. Sometimes that makes the OS feel better.
    Use the built-in Disk Utility to repair file permissions. You never know.
    Export your old document out to IDML and reopen that resulting idml file back into a new freshly written INDD file. This might remove internal database corruptions.
    All these are chicken-soup things to try and they might be good for you.
    Best,
    Mike Witherell in Florida

  • Masking unwanted sides to drop shadow effect (AI CS2 Mac)

    I've got a problem with drop shadows in CS2 (Mac). Can anyone help? I've applied an offset of zero and a blur of 1mm which works fine but the object is at the corner of the artboard and the shadow spills over onto the pasteboard and leaves a fine line showing when imported into InDesign (at the edge of the graphics frame).
    Can you tell me how I can loose the shadow on the two sides I don't want it? I've tried creating a clipping mask behind to paste it into but I loose the solid area of the object (with the shadow) that I'm pasting in to the mask.
    Many thanks,
    Bob

    I don't see a problem. A clipping mask should work, but perhaps I might not be following the description in your second paragraph correctly.
    Could you clarify, preferably by providing a screenshot that illustrates what you get and what you want to achieve?

  • Printing problems with InDesign CS3 with Mac OS 10.6.3

    I am not new to InDesign... I have CS3... but I am brand new to Mac Snow Leopard (OS 10.6.3).  Although I can open CS3 and use the application, I cannot print with it.  None of my other applications has printing issues... just CS3.  Any suggestions?
    Richard

    Hi again Peter
    It is version 5.0.4.  I updated it when I newly installed it a week ago in my new computer, and then again updated it just yesterday.
    I might mention that before I got my new computer, I was running Mac OS 4.11, and was using InDesign 3.0.  I had bought InDesign CS3 about a year ago, but hadn't gotten around to using it since version 3.0 had been working fine, and I was used to it.  Then, when I got my new computer, I decided it was time to use the newer version.  However, while using InDesign 3.0 with the old Mac OS 4.11, a printing problem popped up there, too, a few months ago... and it also involved printing problems with Adobe Reader.  I contacted Adobe, and they sent me a patch which fixed it.  I will contact Adobe again if need be, although I thought I'd start here first to see if it was a common enough problem that someone might be able to provide a free and routine answer.
    Richard
    Date: Tue, 15 Jun 2010 20:10:13 -0600
    From: [email protected]
    To: [email protected]
    Subject: Printing problems with InDesign CS3 with Mac OS 10.6.3
    I neglected to ask what version of indesign CS3 you are using. I also 
    notice that Mac OSX 10.6.4 has just been released. It actually 
    addresses some CS3-specific issues, though they seem to be related to 
    launching the apps, not printing. It may be worth trying to update, 
    nonetheless.
    Peter Truskier
    Premedia Systems, Inc.
    510-655-4454
    >

  • Bought InDesign CS4 for Mac and now need to move it to a PC. Help!

    Bought InDesign CS4 for Mac and now need to move it to a PC. Help!

    Most Adobe software is written for one of two platforms, Mac or PC.  In order to switch platforms you need to be using the most current version, so CS4 would not be supported for making this switch.  Here is a link to a page that explains the requirements for switching platforms....
    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l

  • There was a problem updating InDesign CC For more information see the specific error below.  Update Failed Download error.  Press Retry to try again or contact customer support.(49)

    Posted the entire text from the error window, when trying to update, using the normal NON-TECHIE way to update any and all Adobe CC products, via the Creative Cloud updater installed when Adobe Creative Cloud subscription was purchased when first offered.
    The following occurs, ad nauseam:
    There was a problem updating InDesign CC
    For more information see the specific error below.
    Update Failed
    Download error.  Press Retry to try again or contact customer support.(49)
    Here's the crux of my frustration:
    (1) Customer Service is NOT contact-able, to receive LIVE help.
    (2) There is NO way for me to mitigate this "Download error", being a student learning InDesign, and NOT in any way capable of tweaking folders/files here and there.
    Therefore, the real question:
    Given that a significant number of subscribers are having the above referenced issue with attempting to download the current update for InDesign, WHAT ARE WE SUPPOSED TO DO, in order to get our contractually paid-for updates to our legally and contractually paid-for Adobe software, specifically in my case, InDesgin's current update?
    Please, NO TECHNICAL mumbo-jumbo which most likely will cause the overwhelming majority of users, like me, to seriously corrupt their computer files, but rather an honest, straightforward "what to do" from real CS/Engineers working for Adobe, as to how to FIX this issue, period.
    ===========================================================
    UPDATE:
    Here is a way in which I think I was able to "update" my InDesign CC application:
    (1) Sign-In to your Adobe Account
    https://www.adobe.com/
    (2) Click on the MENU icon
    (3) Click on the product InDesign icon
    Your browser should display the page for Adobe InDesign CC
    https://www.adobe.com/products/indesign.html?promoid=KLXLU
    (4) Click on the Download icon,
    Your browser should now display the page to download InDesign,
    https://creative.adobe.com/products/download/indesign
    (5) a Pop-Up window should open, and display:
      Launch Application
      This link needs to be opened with an application.
    with the first option to select being the CreativeCloud(URIHandler)
    (5) Select this application and click OK.
    What happened when I followed steps (1) thorugh (5) is that:
    (a) InDesign CC(2014) was installed,
    (b) InDesign CC, updated, and then
    (c) InDesign CC(2014), also updated.
    Why this all worked, is a mystery to me.
    Looks like a separate, "new" version of InDesign, InDesign CC(2014), was installed, the existing "old" InDesign was updated, and then the newly installed Indesign CC(2014) was further updated.
    A BIT MORE, when I launched my InDesign CC app, and checked to see if there were Updates Available, there in fact was an Adobe InDesign CC 64 bit (9.2.2) update.
    I clicked on UPDATE and my "old" InDesign CC app was "successfully updated."
    FURTHER INFO:  I may have neglected to list some important info ... OS:  Windows 8.1 Pro with Media Center, 64-bit
    Confused, I am able to launch BOTH of these apps, and hopefully I may use one of these versions of the InDesign CC app, to do some InDesign work.
    Will keep y'all posted!
    Message was edited by: Richard Yapkowitz, about an hour after I first posted this issue.

    Jackdan error 49 indicates the installer was unable to access a critical file or directory.  You can find additional details at Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.

  • Installing InDesign CS3 on Mac OS 10.9.5 Mavericks

    Installation of InDesign CS3 on Mac OS 10.9.5 Mavericks
    This question is Not Answered.
    s c perks Oct 14, 2014 6:04 AM
    1. I have InDesign CS3, which I bought about 6 years ago, and installed on my MacBook Pro. I have now got a new Mac Pro running OS 10.9.5 Mavericks. When I bought the machine I asked Apple if I would be able to install my InDesign and they said there would be no problem. But it will not install. The intsllation fails every time near the end. It installs Bridge and one other components, both of which it calls shared components. But InDesign is not installed.
    I went to the Adobe web site and looked up what to do. I got to a page that had my product on and it seemed to be telling make I must download an installer. When I clicked on this link, however I got a page with the following message:
    HTTP ERROR: 404 /support/downloads/dlm/main.jsp
    RequestURI=/support/downloads/dlm/main.jsp
    I do not know what to do now.
    2. If I do download an installer (I did not need to do this when I first installed the programme on my lap top MacBook Pro 6 years ago, but just installed it from the disc), how do I get rid of the downloader afterwards, since I read somewhere, but cannot remember where, that I should get rid of the installer afterwards but that I should not put it in the trash bin?
    Thank you for any help you can give me.
    Stephen Perks

    Many thanks for your help. I will try this. After posting this question yesterday I contacted Adobe and was astonished to find that they do not sell InDesign and do not support it and that one can only upgrade to monthly or yearly rental of CreativeCloud. I'm afraid for me this is nonsense, and I consider it very bad practice on Adobe's part. I will have to go to QuarkExpress instead if I cannot install Indesign CS3, which I nearly did do 6 years ago, but after reading such good reviews of InDesign and got it. I wish now I'd got Quark! I appreciate your help.

  • InDesign CS6 on Mac OSX 10.9.3 crashes on startup

    Hello out there
    I have a problem with InDesign CS6 on Mac OSX 10.9.3 and I'm really desperate right now...
    I've installed the CS6 Master Collection some days ago.. all programs (f.e. Photoshop, Illustrator, After Effects) are working fine, but InDesign doesn't.
    When I try to start it, it suddenly crashes during (or immediately after) the step "Starting up Service Registry":
    You can find the crash log here:
    http://db.tt/vzRV3kzt
    These are my computer facts:
    I really tried everything..
    For example I tried all those steps:
    http://helpx.adobe.com/indesign/kb/indesign-or-incopy-freezes-or-1.html
    and this:
    http://d43.me/blog/1370/fix-for-applications-crashing-on-startup-in-mountain-lion/
    and this:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-mac.html
    and I also tried starting it in the Admin/Safety Mode.
    I also did some research in this forum, but couldn't find a solution...
    So, I have no further ideas how to solve that problem.
    Did anybody have the same problem? It would be really great if you could help me...
    I never had any problems with InDesign CS5 or earlier versions.
    Many thx,
    Isabella

    I am on Windows, but have 2 links that may help
    Mac 10.9.3 and CS6 https://forums.adobe.com/thread/1480238
    next link says After Effects, but check YOUR permissions !!!
    -http://blogs.adobe.com/aftereffects/2014/06/permissions-mac-os-start-adobe-applications.ht ml

  • MacMac版 Adobe Illustrator CS2 をインストールしようとすると インストール先の選択 の画面でmacのHDが表示されず 選択ボタンもなく MacOS拡張形式ではないドライブへのインストールはサポートされませんとエラーマークがでます なぜでしょう?

    Mac版 Adobe Illustrator CS2 をインストールしようとすると インストール先の選択 の画面でmacのHDが表示されず 選択ボタンもなく MacOS拡張形式ではないドライブへのインストールはサポートされませんとエラーマークがでます なぜでしょう?

    記載の通りになってしまいますが、HDDのフォーマットを拡張形式にしていないからではないでしょうか。
    また実際にインストールされるOSのバージョン等はいくつになるでしょう、
    CS2は最近のOSでは対応していないので、インストール自体ができません。

  • Why every time I try to open InDesign CC on Mac OS Maverick I get a "heap corruption detected free list canary is damaged" message and the application crashes?

    Why every time I try to open InDesign CC on Mac OS Maverick I get a "heap corruption detected free list canary is damaged" message and the application crashes?
    PL

    I am on Windows, but have a few saved Mac discussions that may help (or, may not... but free to read)
    Mac and Root User http://forums.adobe.com/thread/879931
    -and http://forums.adobe.com/thread/940869?tstart=0
    Troubleshooting guide for Mac freeze
    http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-mac.html

  • JS InDesign Server CS2 - Search and Replace

    I am struggling to get a search and replace script to work on InDesign Server CS2.
    This works on my Desktop CS2:
    app.documents[0].search('xxx', false, false, 'yyy');
    but not through InDesign Server CS2.
    Can any one please help.
    Thanks
    Simon Kemp

    Thanks for all of the replies.
    This situation is that the company I work for has decided to consolidate some of the duties of our graphics departments.  People in one location will be dummying documents for people at another location.
    The paths to the images are UNC paths, which means they're pointing to different shares on different servers.  This cannot be changed.
    Also, the images at either location may not exist until days after the dumming process.
    During the dummying process, the application that's used to build the pages places empty ad boxes (placeholders) on the page.  The placeholders are text frames.
    I don't understand in what way, but the paths to the images are hidden inside the InDesign file.  From the users' standpoint, the placeholders simply display basic information about the ad (customer name, ad number, etc.) and hold the position for the images that will be placed later.
    It is not using script labels to apply the paths.
    So, this is why I describe the problem as needing to do a search and replace inside the InDesign file.
    As I mentioned before, I know this is doable.  I think I now see that the problem problem is figuring out how these hidden paths are being applied in the document.  My only thought was script labels, but this is not the case...

  • Indesign CS6 on MACs with OS 10.8 are having problems with links

    Hi
    Indesign CS6 on MACs with 10.8 are having problems with links. All links to other files have to be updated when opening a file although definitely nothing has changed to the linked files.
    We can rule out our company's networking and the system hosting the files (HELIOS software on RedHat Linux VM). This happens with newly created Indesign files and with old ones. E.g. we create a file on Tuesday, save it and open it again on the exact same MAC on Wednesday and all links to other fiels (.indd, .png, .bmp, etc. nothing uncommon) have to be updated as they all show the yellow triangle + black exclamation mark symbol next to them. Has anybody else experienced this, What can we do? We have tried absolutley everything and updated all software from MAC OS to CS6 itself but nothing seems to help on the long run.
    Any further information required?
    M. Miller

    Thanks for your quick reply.
    We actually noticed that there also seems to be something wrong with the timestamps:
    If we open the infos via the MAC finder to a file (.psd e.g.) which is linked in one of our indesign files, it states a certain date of creation.
    If we then switch to the Indesign file we just opened in which we had to update all links and open the infos to exactly the same file we looked at in the finder, a different date of creation is stated. So there also seems to be a mistake here (hope it's clear what I mean).
    We are ruling out our network as the error cannot be "re-enacted". We have created numerous test files in Indesign (simple white page containing one link to a .psd file which is also used in one of the supposedly defective files) and have opened them on various MACs with various OS versions over the past days/weeks but unfortunately the files open without any notifications or errors.
    Just as a background: a few months ago, the problem seemed to occur between MACs with differing OS, 10.6 - 10.8 at first. A file which was created on a 10.6 MAC could not be opened without updating all links on a 10.8 MAC. That is why we updated everything to 10.8. The error did not occur for about 2-3 weeks but then reoccured again.?
    Have you heard anything similar?

  • InDesign CC on mac and DevNagari Keyboard

    Hi,
    just trying to use InDesign CC on mac with Devnagari keyboard (Hindi and SANSKRIT language).. and while I type it jjust shows.. XXXX boxes and not the text I type.
    also, if I copy text written in Hindi/Sanskrit from other app (pages, keynote).. the same issue... any IDEA how to fix this?

    Is adobe world-ready paragraph composer is turn on in the paragraph panel?

  • I need a method to target specific columns in an IP query embedded in a WAD

    I have an IP enabled WAD with multiple embedded queries.  I need a method to target specific columns of specific queries so as to enable text wrapping.  Does anyone have a technique that has worked for them that they can share?
    Sheldon

    Hi Mayank -  I would think some JavaScript code might work, but I would be open to any technique that works.

  • OGG-00204,Missing TARGET specification.

    Hi All,
    I'm having some issues on my replicat process as I'm encountering this error "OGG-00204, MIssing TARGET specification" when I'm trying to start it,
    my replicat parameter file includes "TARGET" on table mapping, am i missing something? please see below the error log and replicat parameters below.
    i tried googling it but i don't have any luck on finding a solution, please help.
    GG version
    Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
    Solaris, x64, 64bit (optimized), Oracle 11g on Apr 24 2012 01:48:54
    DB version 11.2.0.1.0
    ERROR LOG
    2013-08-29 21:08:38  INFO
    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start replicat RPGRPA0A.
    2013-08-29 21:08:38  INFO
    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host unknown (START REPLICAT RPGRPA0A ).
    2013-08-29 21:08:38  INFO
    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  REPLICAT RPGRPA0A starting.
    2013-08-29 21:08:39  INFO
    OGG-00995  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  REPLICAT RPGRPA0A starting.
    2013-08-29 21:08:39  INFO
    OGG-03035  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  Operating system character set identified as US-ASCII. Locale: en_US_POSIX, LC_ALL:.
    2013-08-29 21:08:39  INFO
    OGG-00506  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  Both GETTRUNCATES and DDL replication are enabled.
    2013-08-29 21:08:39  INFO
    OGG-01815  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  Virtual Memory Facilities for: COM
    anon alloc: mmap(MAP_ANON)  anon free: munmap
    file alloc: mmap(MAP_SHARED)  file free: munmap
    target directories:
    /ogg/ggs/dirtmp.
    2013-08-29 21:08:39  INFO
    OGG-00996  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  REPLICAT RPGRPA0A started.
    2013-08-29 21:08:39  ERROR   OGG-00204  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  Missing TARGET specification.
    2013-08-29 21:08:39  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, rpgrpa0a.prm:  PROCESS ABENDING.
    -bash-3.00$
    REPLICAT PARAMETER
    REPLICAT RPGRPA0A
    getenv (ORACLE_SID)
    USERID ggs_owner, &
    PASSWORD AADAAAAAAAAAAAJANEMJKFJARJIFTJCHBABBCIBEQJNIGJVFIGQJAGGIHHTHTHAIGIUJPGSDTCOECFVA, &
    ENCRYPTKEY clarityogg
    ASSUMETARGETDEFS
    DBOPTIONS DEFERREFCONST
    DISCARDFILE ./dirout/dscrpgrpa0a.dsc, APPEND
    APPLYNOOPUPDATES
    GETTRUNCATES
    --ERROR HANDLING
    REPERROR (-1, EXCEPTION)
    REPERROR (-1403, EXCEPTION)
    DDLERROR DEFAULT IGNORE RETRYOP
    --OPTIMIZATION
    BATCHSQL
    GROUPTRANSOPS 2000
    --DDL REPLICATION
    DDL &
    INCLUDE OBJNAME "SCHEMA2.APRTEMP" &
    INCLUDE OBJNAME "SCHEMA2.AWAIT_TASK4" &
    INCLUDE OBJNAME "SCHEMA2.BASH_CUSTOMER_RBG" &
    INCLUDE OBJNAME "SCHEMA2.BC_CBG" &
    EXCLUDE INSTR 'AS SELECT'
    --TABLE REPLICATION
    SEQUENCE SCHEMA2.*;
    MAP SCHEMA1.APRTEMP, TARGET SCHEMA2.APRTEMP;
    MAP SCHEMA1.AWAIT_TASK4, TARGET SCHEMA2.AWAIT_TASK4;
    MAP SCHEMA1.BASH_CUSTOMER_RBG, TARGET SCHEMA2.BASH_CUSTOMER_RBG;
    MAP SCHEMA1.BC_CBG, TARGET SCHEMA2.BC_CBG;
    Thanks a lot
    Villy

    Found the answer, i just removed sequence schema2.* and the replicat runs fine.

Maybe you are looking for

  • How to free-form transform/distort image?

    Hello, everyone! I need to fit my photo on a video of a hand-held piece of paper that is a little distorted by holding in fingers and moving. I tracked it using planar tracker (Mocha Pro) and exported into Motion, so now I have 4-corner pinned rectan

  • Best Wireless Router For British Telecom Connection...?

    Can anybody recommend/advise on the best wireless router to suit an Apple Macbook? TIA

  • How to get past 6700 not recognizing new print heads.

    Ok, so I bought a new printer that came with setup cartridges. I wanted one with network capabilites so I took it back to the store and got a new  hp 6700 all in one.  But when I took the other one back I forgot to include the start upcartridges in t

  • How do I change my Bluetooth name

    Can anyone tell me how I change my Bluetooth name

  • IDVD Changes Order of Slideshow

    I just installed iLife '06 yesterday, and I tried to use iDVD to make a DVD of some vacation photos. I divided the pictures up into groups of 99, but when I created the first slideshow and imported the media, the software changed the order of my phot