Single source for multiple versions

When compiling for multiple versions, I find myself writing code like this

#ifdef CURRENT_VERSION_CS5
     #define EVENT Method
     #define HANDLEEVENT HandleMethod
#else
     #define EVENT Event
     #define HANDLEEVENT HandleEvent
#endif

and I have to define CURRENT_VERSION_CS5 in project of CS5

It is based in the sdk sets to the current version?

#include

#ifdef kRocketMajorVersionNumberForResource

#define YOUR_CS_VERSION 5

#else

#ifdef kBasilMajorVersionNumberForResource

#define YOUR_CS_VERSION 4

#else

#ifdef kCobaltMajorVersionNumberForResource

#define YOUR_CS_VERSION 3

#endif

#endif

#endif

#if YOUR_CS_VERSION > 4
     #define EVENT Method
     #define HANDLEEVENT HandleMethod
#else
     #define EVENT Event
     #define HANDLEEVENT HandleEvent
#endif

Voila

Concerning

Bartek

Tags: InDesign

Similar Questions

  • "Single source to multiple targets in the Oracle XSLT Mapper"?

    Can someone provide examples for the single source to multiple targets in Oracle XSLT Mapper scenario

    You can have several sources, but target the single node in an XSLT mapping.

  • Can I purchase a single license for multiple software? Buy one for a single application, buy another one for another, etc.

    Can I purchase a single license for multiple software? Buy one for a single application, buy another one for another, etc.

    You can purchase the license but on different emails if you need to use them on multiple computers. From an e-mail, you can install software on both computers. These two computers can be Windows, Mac OS, or everyone. If you install on a third computer, you will be asked to turn off this feature on the other two computers. You can then re-enable one of the two previous computers and use Cloud Creative apps on it.

    Kind regards

    Hervé Khare

  • Support for multiple versions of an application

    Hello

    If I have an application that has complained about the os 5.0, but uses of the Mineral which are not available on os4.7. Can I change the code base is compatible 4.7. But the app to 4.7 compliance of refactoring removes some of the features of version 5.0. Do I have to release multiple versions of the same application on the app store, for each version of the application is supported by a particular operating system version?

    Thanks for any help

    Details of penetration OS here:

    http://us.BlackBerry.com/developers/choosingtargetos.jsp

  • single source for assistance of various guides online

    I am pleased that the pod layout of single source in RH7 supports different channels.

    I also need to output different webhelps online using common subjects. This is what should be called unique source.

    Is it best practice to create a set of taylored and overlap of the tables of contents for a related set of online help?

    My work environment consists of a single software package with different interfaces for different types and levels of users. For each type of interface, another webhelp is mounted.

    How can I make sure that the title of the online help displayed in the web browser tab help is the right one for each variation of the online help?

    Single source is what allows you to obtain more than one out of a single source, either those exits ten different webhelp output or just one and out of print.

    You can have as webhelp output you can manage. Right click and add new ones or copy existing as a base.

    Best practices depends on your content. You can have different tables of contents for each output, or you can have a smaller number and apply conditional tags. So let's say 10 outputs you might have only three or four tables of contents and apply conditional tags to vary their. It's what suits you best and can be understood by everyone you work with.

    The scenario you describe would be ideal for HR work.

    The title bar and tab browser take their text in the title of the project in the project settings, so you will need to change this for each output.

  • 8.1 Windows mail app - single mailbox for multiple accounts as on Windows phone?

    I have an outlook.com account and a microsoft exchange account - windows Phone I can combine the mailboxes of these accounts. I can not figure out how to do it on Windows 8 mail and have to check both and constantly move from one to the other, which is more disruptive as it sounds. Can I view a single mailbox for both accounts in Windows mail 8.1, similar to how I'm currently doing it in Windows Phone 8.0? I must warn you that any response in addition to 'Yes' is followed with a request for an explanation.

    Hi Mathenge,

    Unfortunately, no.  With the Mail application on Windows 8.1, you can have all your email from the Outlook.com account, Gmail, Yahoo! and Exchange in a single application, but not as a unique mailbox.

    You can check out this tutorial and understand the full operation of Windows Mail on Windows 8.1 application

    http://Windows.Microsoft.com/en-in/Windows-8/mail-app-tutorial

    Hope this information helps.

  • Single VMDK for multiple virtual machines in esx3.5?

    Hello

    Is it possible to use a single VMDK to host several VM in ESX3.5 or is this feature on the way?  I think the vmware view tech that allows you to host multiple virtual machines to a single image and store only the deltas for VMS replca.

    We organize several ts who are about 12 GB per image, and each server is essentially the same.  It would reduce the space if these could be consolidated at the level of vmware.

    Thank you very much.

    What you are referring to the notion of linked Clones, it's something completely different to share a single VMDK.  with linked clones, you actually run mulitple copies of a single Machine.  This fuinctionality is not available in ESX Raw but is a characteristic of Lab Manager and VMware View Premium.

    If you have found this device or any other answer useful please consider useful or correct buttons using attribute points

    Tom Howarth

    VMware communities user moderator

    Blog: www.planetvm.net

  • single source for 4.7 and 4.3 under Eclipse files

    I have a project in Eclipse, I used to establish with the 4.3 package. Now, I need support the new feature (virtual keyboard) in Strorm. I installed the package 4.7 for Eclipse. Now I have the problem:

    -If I build with 4.3, I can't use VirtualKeyboard package

    -If I build with 4.7, I can use VirtualKeyboard, but the application does not run on 8830 (older devices)

    Avdise me please. I would have to have 2 different projects with similar sources (I don't like this idea). Or can I somehow configure Eclipse to buid 4.3 or 4.7 for the same source files?

    everything is done!

    I copied

    C:\Users\Damir\.eclipse\org. Eclipse.platform_3.4.0_248562372\plugins\net. RIM. Eide.Preprocessing.hook_1.0.0.50.jar

    TO

    C:\Program Files (x86)\eclipse\plugins\net.rim.eide.preprocessing.hook_1.0.0.50.jar

    and it seems to work

  • Single connection for multiple Applications

    Hello

    I use APEX 4.2.5.

    We have 7 different applications built on different workspaces. We have an obligation to create a Master of Applications that can be used to connect to applications. The user only needs to connect to the main application and it should be able to connect again the different applications without connection.

    I tried to create the Master application on a figure who had access to all the other patterns. Then, I used common cookie for the entire application. But it's not work its asking to log in again.

    All applications use the same authentication schemes.

    Please let me how can know I achieve this.

    Thanks in advance

    Best regards

    Patrick

    ZAPEX wrote:

    We have 7 different applications built on different workspaces. We have an obligation to create a Master of Applications that can be used to connect to applications. The user only needs to connect to the main application and it should be able to connect again the different applications without connection.

    I tried to create the Master application on a figure who had access to all the other patterns. Then, I used common cookie for the entire application. But it's not work its asking to log in again.

    All applications use the same authentication schemes.

    Please let me how can know I achieve this.

    You can not. Sessions can be shared by applications that are part of the same workspace.

    Applications must be moved to a single workspace.

  • Using a single server for Multiple Instances of the APEX HTTP

    Our company DBA asked if it would be possible to outsource the server part of HTTP of APEX from DB servers. In other words, it would be highly preferable as DB servers * only * start the Oracle database software.

    We know that we can install the HTTP server on another box, but in thinking how to that, we were wondering if it's really necessary to create a separate HTTP Server installation for each instance of the APEX. What we would really like to do, is have a HTTP server for all our our boxes of Dev and several (but not one) for each of our superior environments; implementation stage, qa, prod, etc..

    Right now, each instance has a file single dads.conf on every box of DB. So, if we we to try to consolidate, we need some way to incorporate several dads files and associate each correct instance.

    Someone has already done this or (preferably) to have some examples?

    Thank you

    -Joe

    The second page on the link provided José begins immediately with the "Configuration of several databases".

    Yes, you can consolidate permanently. It is a common practice that was also available with Apache/mod_plsql, OSH and now with APEX earphone 2.

    Thank you

    Jorge

  • Is it possible to have more than one source for multiple clips Panel?

    The process of creating, I want to be able to see several clips side by side, able to scrub forward and backward to see the 'weight' of the different scenes and not just imagine in my mind, how they will work together. If first Pro will not allow this, so is there another application, no bridge please allows you to align the viewing more of a clip? The only way I can think to do this right now is to put a clip on the timeline and display it on the program monitor and then discovers the other in the source Panel.

    Forgive me for all the hypotheses.

    I understand what you're trying to do here, but it would still have its limits.

    for example, imagine if you had 10 a, clips or cameras to watch simultaneously.

    and not enough to imagine, in my mind, how they will work together.

    Editors for years have worked through their material doing exactly this. Cutting basically in what works (and looks good) as they see it.

    The NLE was a revolution, because it allows publishers to drop and change a tool for editing anywhere, anytime in a non-linear way.   But it also allows to preview easily both sides to change, as well as a source by.

    Selection of take is usually a simple linear process (logging and selects) with perhaps a bit of trial and error in the timeline.

    Editing several scenes shot in parallel is probably best served by multicam mode.  FWIW... I edit multicam the old-fashioned way and use a video layer master scene and then overlay to senior securities in the source monitor.

  • a single insert for multiple insertions, if tables from same

    Hi all

    Can I have an insert for less than 3 Insert stm.
    declare 
    v_z number;
    begin
    v_z :=0.0;
    
    INSERT INTO rd_carry_new1
    SELECT  s.ssm_id,
         s.ssm_id as adjusted_cusip,
         v_z as rolldown, --= @zero,                      
         v_z as oas, --=@zero,                      
         nvl(srm.carry_rate, 0.0) as carry,
         v_z as finance_rate, --= @zero,                            
         v_z as price_drop, --= @zero,
         sw.heldby_pco_sw,
         v_z as carry_bk1, --= @zero,        -- place holders for interim results
         v_z as carry_bk2, --= @zero,
         'Y              ' AS r_srm_flag,     --r_srm_flag     = "Y              ", /*-- Indicates value from SRM, stale these should not be updated at any point*/
         'Y              ' AS o_srm_flag,     --o_srm_flag     = "Y              ",
         'Y              ' AS c_srm_flag,     --c_srm_flag     = "Y              ",
         'Y              ' AS f_srm_flag,     --f_srm_flag     = "Y              "
         'SRM' AS oas_method                         --,          oas_method='SRM'
    
    FROM  sec_tab_sdb s, 
      sr_measures srm,
      sec_sw sw
    WHERE s.ssm_id = srm.ssm_id
    AND   s.ssm_id = sw.ssm_id;
    
    
    insert into rd_finance_new1
    select  s.ssm_id,
         v_z as rolldown,                      
         v_z as oas,                      
         v_z as carry,                         
         nvl(srm.financing_rate,0) as finance_rate,     
         v_z as price_drop,
         sw.heldby_pco_sw,
         v_z as rolldown_bk1,        -- place holders for interim results
         v_z as rolldown_bk2,
         'SRM'  as finance_method, -- audit for financing_rate queries
         'Y              ' as r_srm_flag,    -- Indicates value from SRM, stale these should not be updated at any point
         'Y              ' as o_srm_flag,
         'Y              ' as c_srm_flag,
         'Y              ' as f_srm_flag
         
    from  sec_tab_sdb s, 
      sr_measures srm,
      sec_sw sw
    where s.ssm_id = srm.ssm_id
    and   s.ssm_id = sw.ssm_id;
    
    
    insert into  pco_on.rd_rolldown_new1
    select s.ssm_id,
            nvl(srm.rolldown,0) as rolldown,     
            v_z as oas,                      
            v_z as carry,                           
            v_z as finance_rate,                            
            v_z as price_drop,
            sw.heldby_pco_sw,
            v_z as rolldown_bk1,             -- place holders for interim results
            v_z as rolldown_bk2, 
            'Y              ' as r_srm_flag,   -- Indicates value from SRM, stale these should not be updated at any point
            'Y              ' as o_srm_flag,      
            'Y              ' as c_srm_flag,      
            'Y              ' as f_srm_flag,      
            'SRM'        as  rolldown_method
    
    from  sec_tab_sdb s, 
      sr_measures srm,
      sec_sw sw
    where s.ssm_id = srm.ssm_id
    and   s.ssm_id = sw.ssm_id;
    
    end;

    Try this please

    INSERT ALL
    INTO RD_CARRY_NEW1 VALUES
      (
        SSM_ID,
        ROLLDOWN,
        OAS,
        carry,
        finance_rate,
        price_drop,
        heldby_pco_sw,
        rolldown_bk1,
        rolldown_bk2,
        r_srm_flag,
        o_srm_flag,
        c_srm_flag,
        F_SRM_FLAG,
        rolldown_method
      )
    INTO RD_FINANCE_NEW1 VALUES
      (
        SSM_ID,
        ROLLDOWN,
        OAS,
        carry,
        finance_rate,
        price_drop,
        heldby_pco_sw,
        rolldown_bk1,
        rolldown_bk2,
        r_srm_flag,
        o_srm_flag,
        c_srm_flag,
        F_SRM_FLAG,
        rolldown_method
      )
    INTO PCO_OWN.RD_ROLLDOWN_NEW1 VALUES
      (
        SSM_ID,
        ROLLDOWN,
        OAS,
        carry,
        finance_rate,
        price_drop,
        heldby_pco_sw,
        rolldown_bk1,
        rolldown_bk2,
        r_srm_flag,
        o_srm_flag,
        c_srm_flag,
        F_SRM_FLAG,
        rolldown_method
      )
    SELECT s.ssm_id,
      NVL(srm.rolldown,0) AS rolldown,
      v_zero              AS oas,
      v_zero              AS carry,
      v_zero              AS finance_rate,
      v_zero              AS price_drop,
      sw.heldby_pco_sw,
      v_zero            AS rolldown_bk1,
      v_zero            AS rolldown_bk2,
      'Y              ' AS r_srm_flag,
      'Y              ' AS o_srm_flag,
      'Y              ' AS c_srm_flag,
      'Y              ' AS f_srm_flag,
      'SRM'             AS rolldown_method
    FROM sec_tab_sdb s,
      sr_measures srm,
      sec_sw sw
    WHERE s.ssm_id = srm.ssm_id
    AND s.ssm_id   = sw.ssm_id;
    
  • HR 11 cmd line: error: impossible to analyze all project files.  Unexpected error: failed to prepare a single source

    Hello

    I am running RH (installed in Program Files x 86) 11 on a Win 7 (64-bit) machine.  I just created a new project with a lot of folders/subfolders and a single topic welcome.  This project compiles fine using the RoboHelp interface.  However, when I run RHCL from the command prompt, it refuses to start.

    Here are the details of the order and the results:

    from c:\Program Files (x 86) \Adobe\Adobe RoboHelp 11\RoboHTML

    c:\Program Files (x 86) \Adobe\Adobe RoboHelp 11\RoboHTML > rhcl 'c:\knowledgecenter\knowledgecenter.xpj'-l 'WebHelp '.

    Adobe (R) RoboHelp version 11.0.4.291 Project command line compiler

    Copyright (C) 2006-2007 Adobe Systems Incorporated and its licensors. All rights reserved.

    Project: c:\knowledgecenter\knowledgecenter.xpj

    Layout: WebHelp.

    Output:! SSL!\WebHelp\Index.htm

    Scanning for the compilation project...

    Error: Impossible to analyze all project files.  Please use RoboHelp to recover the project.

    Unexpected error: failed to prepare the data of the single source for RHCL. Please try to compile in RoboHtml.

    I tried deleting the cpd and the project from the hhp file - has not made a difference.

    Help!

    Thanks in advance,

    Claudia

    Thank you.  What I discovered yesterday, it was that after the project SVN on my local machine to test the command line build process, somehow some of the FPJs was missing!  Because the folders containing the missing FPJs were empty, I guess GUI HR could ignore and compile correctly.  It turns out that I have somehow missed tried all FPJs in source control.  Once I got all the archived FPJs, when I refresh svn at the local level, the construction of the command line worked well.

    Kind regards

    Claudia

  • A single logical Source VS. multiple Table logic Source

    When is it appropriate to use a single Table Source VS. multiple logic logic Table Source.

    Single logical Table source: Dimension or fact table extension of fact, related data or in more than one table
    Several logic Table Source: loved fact and aggregated with similar data implemented with different granularity

    Score pls correct/good

  • CSS for a single source project based on XML files

    I use the 3.5 TCS (10 FrameMaker and RoboHelp 9) to create manuals of single source and HTML help. The source files are a book of FrameMaker structured XML files. What is the secret in RoboHelp 9 to set and use a single CSS file for the entire project?

    Currently, the HTML files that RoboHelp product only contain paragraph fethi < paraname > tabs, which do not seem to relate to one of the tags in the files RHStyleMapping.css or default .css.

    Thank you very much

    Jesus-

    Hi Jesus,

    HR, go to file > Project Settings > import > FrameMaker settings > edit

    Your main CSS is likely to be RHStyleMapping.css, but you will definitely secondary CSS applied to take into account the elements not mapped. The unmapped entries are those with the prefix fethi. If you see fethi, you should consider mapping for something directly in your css to take control of the formatting.

    See integration http://framemaker.mattrsullivan.com/2011/04/02/an-overview-of-framemaker-and-robohelp-inte / for more details. This post is about unstruct FM, but is always valid for you.

    -Matt

Maybe you are looking for

  • Wake up the screen on the Crown of the Apple Watch Series 2 is not displayed

    Watch app (iPhone 7 iOs 10) not the screen showing wake on the Crown of the Apple Watch Series 2 (look at OS 3)! What's wrong? Thank you

  • Already watching series 1

    If I already own watch series 1, just buy a box of series 2.  I already have the tapes I want.

  • Look at pré-commandées don't deliver a month

    I pre-ordered just a Apple Watch 2. It says I have to wait until mid-October for shipping. Could I go to the store and buy a more eventually will be it really delayed so long? Can I cancel my order if I find one in an Apple store before that date or

  • 2 MagSafe charger or Macbook Pro problem

    Hello! I recently bought a Macbook Pro of the retina (at the beginning of 2015) here in Singapore, with the prepackaged MagSafe 2 charger with it. I always charge my computer while using it, and usually, my uses are extremely lightweight. Well, here'

  • Recovery on HP mini 110/3530NR

    Hi, my laptop must be reset to its factory condition. The partition recovery seems to have disappeared as well as the Recovery Manager and pressing F11 will start not the Panel of system recovery, or anything like that. I don't have the recovery disk