inDesign SDK CS5.5 - deprecated conversion of string constant in "tank."

Hello world

I am just starting with the development of an inDesign plugin, and I can't get the examples provided as example by the SDK to build (DocWatch.sdk for example). Instead, I get multiple errors:

Frowned upon the conversion of the string constant to ' *'

Deprecated conversion of string constant in "tank."

I also tried to follow the tutorial of 'WriteFishPrice' in the getting started document, but I get the same errors.

I'm on Mac OSX10.6, from:

XCode 4.0.2

GCC 4.2

base SDK: Mac OS X 10.6

inDesign SDK CS5.5

I think that the problem is due to the version of gcc. It seems that inDesign SDK is outdated.

Someone at - he informed about the same problem and found a solution?

-Bastien

Hello

You can try adding - Wno-writing-strings to CCG or put GCC 4.0

Concerning

Bartek

Tags: InDesign

Similar Questions

  • How to use the InDesign SDK on Visual Studio 2013 for C++ project?

    I had a stuck on my research on 'use InDesign SDK to develop a plugin for InDesign'. Through my research, I tried to launch a sample project comes with the SDK in Visual Studio 2013 (note that all the examples of projects are using C++). Also, I have many questions about InDesign to apply for assistance, but long unanswered forum post. And this final change that I need your help to continue my research on this issue. The issue is described as follows:

    • Document involved: plugin_sdk_CC2015_072_20150618.zip (year SDK InDesign-downloaded from the Adobe site - http://www.adobe.com/devnet/indesign/sdk.html)
    • Development environment: Visual Studio 2013 (C++)
    • I followed the guideline in the folder "plugin\docs\html\index.html".
    • I opened a sample project in the folder "plugin\build\win\prj" Visual Studio 2013.
    • In the Visual Studio 2013 window, I click on "Local Windows Debuggeer" to run the project. But after compiling the project, it generated an error message and the project cannot run more.

    Note: All draft documents and sample are belong to InDesign SDK.

    I stuck there and could not find a solution for this problem yet, I followed the document of InDesing SDK strictly. Finally, the purpose of this research is to create a sample for InDesign plugin.

    Kind regards

    Hello

    Set your path of debugging in visual studio 2013.

    If you find any problem you can contact me please on my mail ID

    [email protected]

    Thank you

    Philippe joshi

    + 91-8860697370

  • Can I switch to InDesign of CS5 CS6?

    Trying to update/download to CS6 InDesign of CS5 (CS5 v7)...

    Yes: http://www.adobe.com/mena_en/products/indesign/buying-guide-upgrades.html

  • CControlView class in Adobe Indesign SDK CC

    Hello

    I am working on porting our Indesign CS6 Indesign CC plugin plugin. I go through the differences of method between the classes of APIs common in CS6 Indesign and Indesign CC build that gave to the Indesign SDK CC (reference file). In this change of class of CControlView gave, but this class was not available in the following way,

    AdobeIndesignCC SDK-> source-> public - > java-> widgetbin - > includes.

    I don't know if the class name (CControlView) has been changed in the SDK of CC Indesign or not.so please help me if anyone has the idea in this regard.

    Hello

    Take a look at DVControlView.

  • Adobe has a team of support InDesign SDK (not InDesign)?

    I am facing a problem that can be caused by the InDesign SDK bug. See http://forums.adobe.com/message/4323748#4323748 for more details.

    Does anyone know how to contact the InDesign SDK support?

    Thank you.

    (wow, no one answered this? I hope you have your answer already, but if it isn't...)

    Yes. Just see http://www.adobe.com/support/programs/developer/incidentbundle/.

  • How to find the page contains the indesign sdk?

    PLS, someone help me, how to find the page contains the indesign sdk?

    Thank you

    screen410099

    Don't know, if you find a shorter way, but it works:

    UIDRef language = YOUR_TABLE;

    Error result code.

    do

    {

    InterfacePtr textModel;

    TextIndex beginning;

    Len Int32;

    result = table_get_text_model (read, 0, 0, textModel, start, len);

    If (result! = kSuccess) break;

    If (! textModel) break;

    UIDRef frameRef = text_query_frame (textModel, start);

    If (! frameRef) break;

    Int32 pnum = - 1;

    PageRef UIDRef = page_getref (frameRef, &pnum);)

    If (! pageRef) break;

    :

    :

    } While (false);

    //***************************************************************************

    Error code (Table_get_text_model)

    Language UIDRef,

    Int32 left,

    top of Int32,

    InterfacePtr & textModel,

    TextIndex & start,

    Int32 & len)

    {

    Result ErrorCode = kFailure;

    do

    {

    Inits

    textModel = InterfacePtr (Nile);

    Start = 0;

    Len = text::kTextLen;

    Make sure that we have a valid table model

    InterfacePtr tableModel (label, UseDefaultIID());

    if(!tableModel) break;

    convert the network to a network ID address

    GridAddress gridAddress (top, left);

    get the container text table so we could make the text template.

    InterfacePtr tableTextContainer (tableModel, UseDefaultIID());

    if(!tableTextContainer) break;

    textModel = InterfacePtr (tableTextContainer-> QueryTextModel());

    if(!textModel) break;

    InterfacePtr tableTextContent (tableModel, UseDefaultIID());

    if(!tableTextContent) break;

    GA GridArea (up, left, top + 1, left + 1);

    Len = tableTextContent-> GetTextChunk (ga, start);

    If (! len) break;

    result = kSuccess;

    } While (false);

    return the result;

    }

    //***************************************************************************

    #if (csversion_<>

    # define ITextFrameC_ ITextFrame

    #else

    # define ITextFrameC_ ITextFrameColumn

    #endif

    UIDRef text_query_frame (InterfacePtr txt, TextIndex istartPos)

    {

    UID uid = kInvalidUID;

    TextIndex startPos = istartPos;

    do

    {

    If (! txt) break;

    INNERE Textrahmen of the items

    InterfacePtr frameList (txt-> QueryFrameList ());

    If (! frameList | frameList-> GetFrameCount ())<= 0)="">

    First INNERER Textrahmen of the items

    InterfacePtr textFrame (frameList-> QueryNthFrame (0) / * QUF,: UseDefaultIID () * /);

    #ifndef (csversion_<>

    Location of RangeData (startPos, startPos);

    #else

    TextIndex location = startPos;

    #endif

    Int32 frameIndex = - 1;

    InterfacePtr tf = InterfacePtr (Nile);

    If (startPos < txt-=""> tf TotalLength ()) = InterfacePtr (frameList-> QueryFrameContaining (location, & frameIndex));

    of other tf = InterfacePtr (frameList-> QueryNthFrame (frameList-> GetFrameCount () - 1));

    If textFrame (tf) tf =;

    If (! textFrame) break;

    //

    Aus dem first inner Textrahmen bilden wir jetzt eine hierarchy.

    In der Ebene uber hierarchy suchen wir jetzt nach nach einem dieser

    Objekt, das ein Graphicrahmen ist. Dieses element ist der gesuchte

    ÄUßERE Rahmen.

    //

    InterfacePtr child (textFrame, UseDefaultIID());

    If (! child) break;

    do

    {

    InterfacePtr parent (child-> QueryParent());

    If (parent == nil) break;

    InterfacePtr graphicFrameData (parent, UseDefaultIID());

    If (graphicFrameData! = nil)

    {

    We have a regular text frame.

    UID =: GetUID (graphicFrameData);

    break;

    }

    child = parent;

    } While (child! = nil);

    } While (false);

    If (uid == kInvalidUID) return UIDRef (Nile, kInvalidUID);

    Return UIDRef (: GetDataBase (txt), uid);

    }

    //***************************************************************************

    #if (csversion_<>

    # define GLayout_:

    #else

    # define GLayout_ Utils ()->

    #endif

    UIDRef page_getref (const UIDRef & frameRef, int32 * pgNum)

    {

    UIDRef result = UIDRef::gNull;

    do

    {

    If (pgNum) * pgNum = 0;

    If (! frameRef) break;

    InterfacePtr itemHier (frameRef, IID_IHIERARCHY);

    If (! itemHier) break;

    If (! pause frameRef.ExistsInDB ());

    ES more like evil EIB GetOwnerPageUID AB. ICH denke badly, at least

    Ein muss ein Rahmen wohl schon haben Parent. Wenn wir da keinen find,.

    tschüss Dann.

    InterfacePtr parent (itemHier-> QueryParent());

    If (! parent) break;

    PageUID UID = GLayout_ GetOwnerPageUID (itemHier);

    If (pageUID == kInvalidUID) break;

    result = UIDRef (frameRef.GetDataBase (), pageUID);

    If (pgNum)

    {

    IDataBase * db = frameRef.GetDataBase ();

    If (! db) break;

    UIDRef docRef (db, db-> GetRootUID ());

    InterfacePtr PageList (docRef, IID_IPAGELIST);

    If (!.) (Break from PageList);

    Int32 pageIndex is PageList-> GetPageIndex (pageUID);.

    * pgNum = pageIndex;

    }

    } While (false);

    return the result;

    }

    //***************************************************************************

  • Orders series does not work with the string constant

    I have a single serial device, I used.  The device requires no handshake.  Simply send a command to the device and the device responds.  I modified the example labview for simple serial communication and that works when I enter the chain command and click the button to send the command to the device.  But when I tried to put the same example of communication series in a simple state machine where I replace the chain control on the front panel with a string constant on the scheme that the standard equipment does not respond.  Where do I go awry with the constant string and the state machine?

    Thank you

    Control of the working channel is \-codes display, while the constant diagram is in normal display. Once you pass the constant \-codes diagram, you will see that it is in fact "/ 1ZR\\r\\n". Switch to \-codes, re - enter the text you want and see if things improve.

  • InDesign CS4, CS5.1, CS5.5 all the crash when saving files

    Hello

    One of our users has an accident trying to save files in InDesign.  It has OS X 10.7.  This happens in the CS4, 5.1 and 5.5 versions - all three versions, he has installed on his computer.  We ran finagler fonts which has solved problems for us before, but it has not solved the problem.  We have also reset the preferences in each version using the keyboard shortcut.  It doesn't work any more.

    I downloaded a CS5.5 pastebin crash log:

    http://pastebin.com/9MLThyPw

    Any help would be greatly appreciated.

    Looking at your crash report, suitcase does not seem to be involved.

    Instead, your accident is in this odd plugin:

    com.adobe.InDesign.Telescope.sdk

    That seems to be in:

    0 x 17274000 - 0x17292ff3 + com.adobe.InDesign.Telescope.sdk (7.1.2?)- <97F7B6BF-280E-4A72-4820-09258E50379F>/Applications/Adobe InDesign CS5.5/*/Telescope.sdk

    I guess that's the North Plains telescope DAM system? Shame on them! They are not allowed to name their plugin 'com.adobe.anything' if they are not Adobe!

    In any case, try to remove the plugin. Assuming that suits it, contact them.

  • image file conversion to string base64encoding

    I tried conveting image base64 encoding stirng to send to the server... I am able to retrieve the file path with success using the file picker, but there are concerns the conversion of image to a string. I used base64outputstream n all that kind of stuff... But sometimes they work, sometimes they used... I want to have a snippet of code that performs my task... Some1 can help me?

    I suggest the developers who are coding of the image to resize the programitically image before encoding... This will allow to reach the time of 99 / 100 task coding ...

  • [CS6] [InDesign SDK] Any way to export SWF without a memory leak?

    I use the part of a code example in the example file SnpExportDynamicDocument.cpp that will:

    ErrorCode SnpExportDynamicDocument::ExportSWF (const UIDRef & documentUIDRef, IDFile & swfFileName)
    {
    Status of ErrorCode = kFailure;
    OutStream InterfacePtr < IPMStream > (StreamUtil::CreateFileStreamWriteLazy (swfFileName, kOpenOut | kOpenTrunc));

    FileHelper (swfFileName) SDKFileHelper;
    If (fileHelper.GetPath () .empty ())
    {
    ASSERT_FAIL ("invalid or missing filename.");
    Return kFailure;
    }

    create the order export SWF action
    InterfacePtr < ICommand > swfExportCmd(CmdUtils::CreateCommand(kSWFExportCommandBoss));)
    If (swfExportCmd is nil)
    {
    Assert (swfExportCmd);
    Return kFailure;
    }

    Target
    UIDList items (documentUIDRef.GetDataBase ());
    InterfacePtr < IPageList const > pageList (documentUIDRef, UseDefaultIID());
    for (int32 pageIndex = 0, pageCount = pageList - > GetPageCount(); pageIndex < pageCount; ++ pageIndex)
    elements. Append (pageList-> GetNthPageUID (pageIndex));
    swfExportCmd-> SetItemList (items);


    Cmd adjustment data
    IID_IDYNDOCSEXPORTCOMMANDDATA
    DynamicDocsCmdData InterfacePtr < IDynamicDocumentsExportCommandData > (swfExportCmd, UseDefaultIID());
    dynamicDocsCmdData-> SetStream (outStream);
    dynamicDocsCmdData-> SetUIFlags (kSuppressUI);

    IID_ISWFEXPORTPREFERENCES
    SwfCmdData InterfacePtr < ISWFExportPreferences > (swfExportCmd, UseDefaultIID());
    InterfacePtr < IWorkspace > iAppWS (GetExecutionContextSession ()-> QueryWorkspace());
    ISWFExportPrefs InterfacePtr < ISWFExportPreferences > (iAppWS, UseDefaultIID());
    swfCmdData-> Copy (iSWFExportPrefs);


    process the order
    retourner CmdUtils::ProcessCommand (swfExportCmd);

    }

    He fled on the very last line. In other words, if I remove the ProcessCommand() then there is no memory leak.

    There seems to be 'leaks 2, 130072 bytes' leaks every time I call the above.

    I'm just stick the code that ships with SDK CS6 examples, so I don't see what the problem is.

    I checked the code

    Any suggestions?

    It could also be a bug in InDesign. You can check if you have a newer version of the ID? 8.0.2.413

    SDK Build 406

  • Date Validation /Conversion as string to date

    Hello Oracle experts

    I'm trying to find the right date conversion/validation. The problem is that I get as string(dd-Mon-yy) format date in a text file. I need to load it into an Oracle table in the form of text, then post the text as a date is valid.

    I can check the day and year. But how to check the month. If the date is * 1 April 11 * it's OK but if it is as * ODA / 01/11 * so how to check the string of months is one channel of 12 months. I mean from January to December.

    If I use the conversion to this day, I get the error ORA-1843.

    with t1 as
    (
    SELECT ' 01-CCA-11' stringdate FROM DUAL Union all the
    SELECT 1 December 11 ' stringdate FROM DUAL Union all the
    SELECT ' 01-Juk-11' stringdate FROM DUAL Union all the
    SELECT 1st April 11 ' stringdate FROM DUAL
    )

    The first and 3 record is incorrect month.

    Help, please.


    I use
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options


    Thank you

    Rajesh

    If you want to just check the month (and assuming that the month is English), you could do something like

    SQL> ed
    Wrote file afiedt.buf
    
      1  with x as (
      2  (SELECT '01-Apd-11' stringdate FROM DUAL union all
      3   SELECT '01-Dec-11' stringdate FROM DUAL union all
      4   SELECT '01-Juk-11' stringdate FROM DUAL union all
      5   SELECT '01-Apr-11' stringdate FROM DUAL ))
      6  select (case when regexp_instr(
      7                       x.stringdate,
      8                       '-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-'
    ) > 0
      9               then 'Valid'
     10               else 'Invalid'
     11           end) status,
     12         stringdate
     13*   from x
    SQL> /
    
    STATUS  STRINGDAT
    ------- ---------
    Invalid 01-Apd-11
    Valid   01-Dec-11
    Invalid 01-Juk-11
    Valid   01-Apr-11
    

    Justin

    Published by: Justin cave on July 30, 2011 19:32

  • Find, edit, and remove the tag XML (Adobe InDesign Server CS5)

    Hi all

    I work with Indesign CS5 server and JavaScript, although having some difficulties to come with a solution to a problem...

    I have to build a script JS (called through SOAP) that will allow me to search for an XML tag in an InDesign file.

    After you find the XML tag, if the variable 'action' is set to remove, it should remove the tag and its content.

    If the action is set to edit, he should change the content of the tag to the user-defined content.

    The main warning is that the XML tag is variable, as is the XML of the InDesign file structure.

    Here's what I have in mind, in pseudocode:

    function findXMLTag (tag, action) {}

    app.searchForTag (tag);

    If {(tagIsFound)

    If (action == 'delete') {}

    tag. Delete;

    } Else if (action == 'edit') {}

    tag.contents = "update content";

    }

    }

    }

    Any help would be greatly appreciated!

    Thank you

    Ben Kay

    'searchForTag' can be implemented as a recursive function.

    Recursion is defined as follows: I thought: "I'll just get this forum for"recursion"." The first post I found was one of my own, which suggests that the poster should search the forum for "recursion".

    Here is an example: find the XML element []

    And another: remove the xml using JS [CS3] element (read carefully, as the OP is stuck on how to remove an item and continue successfully)

    And the other using XML rules - which I am quite familiar with, but may work for you: changing values in XML tags

  • IMAQ JPEG image conversion problem string

    Hi, I'm using the format JPEG decode VI to decode an image string I get a camera at Black fins. It works fine when I run VI himself, but when I use it as a subvi the program crashes. Anyone have advice?

    This is a picture of my program

    It's the way the file is returned to the camera

    'I '. «#IMJxs0s1s2s3...» » Enter the JPEG compressed video image

    x = size of the frame in pixels:
    1 = 80 x 64, 3 = 160 x 120, 5 = 320 x 240, 7 = 640 x 480, 9 = 1280 x 1024

    s0s1s2s3 = size of the image in bytes (s0 * 256 ^ 0 + s1 * 256 ^ 1 + s2 * 256 ^ 2 + s3 * 256 ^ 3).
    ... = full frame JPEG

    Note that sometimes the 'I' command returns nothing if the robot camera is busy, then the 'I' command should be called as many times as necessary until a framework is returned

    I changed the format JPEG decode VI by changing the plans of red and blue color. I don't know if this caused the problem though.

    Hello

    This can be useful for you:

    http://forums.NI.com/NI/board/message?board.ID=200&message.ID=21845#M21845

    Andrey.

  • Conversion to String table

    Hi all...

    I'm doing a program to read data from the buffer of 2182A (nanovoltmeter) using VISA (SCPI Programming). Now, I can get the data in the buffer, but it is in the form of a string. Can you tell me how I can convert it to a (separate for each reading) table (screenshot of my test data is attached)...

    There is also a small scan only steps 10 and 11. Insofar, the scan may be more than 100 steps so please keep this in mind so...

    Found my solution... Post here for everyone perhaps it may be useful for someone

  • missing the conversion of string number of digits

    I have a quite unusual problem and cannot find any solution. The problem is the sequel.

    I get a multimeter string action, and it looks like this: '3.7260900E + 00. Then, I want to put this number on a waveform graph, and I need to convert them to numbers. Regardless of the VI to convert I use, everyone returns only the first digit in this case: '3 '.

    What should I do to get the complete number on the chart? I already tried to use more digits in the properties of the graph, but this has no effect.

    Thanks for help.

    Hello Marlon.

    You probably use a PC with the locale 'German', that is by using the comma as decimal separator. So, you should try this:

    The format code "%."; defines the point to be used as the decimal separator, however for your locale.

    This is the reason why I put all measurement systems using the English locale (atleast swap settings German point/comma).

    BTW. increasing the accuracy of the map does not change data related to it

Maybe you are looking for

  • Portege M930 - entry of the finger on the touch screen no longer works

    Got one of these https://www.MyToshiba.com.au/products/computers/Tablet/M930/pdw04a-00c001/specifications Is no longer able to use the entrance of finger on the touch screen.Pen works on touch screen OK. It's like if I had accidentally disbled it som

  • FN key doesn't work is not Windows XP - Satellite L305-S5885

    Hello, I recently downgraded my Toshiba Satellite L305 S5885 from Vista to Windows XP. Everything works well except the function (Fn) keys to control the screen brightness, volume. Some function as mute but most do nothing when I try to use them. All

  • Can I install El Capitan 10.7.5

    I installed OS 10.7.5 Lion in my MacPro 1,1 and want to update my OS. At what level of the operating system can I go? (My MacPro was made in March 2007)

  • El Capitan OS - bookmarks scrambled

    After you download OS El Capitan - scrambled bookmarks (Safari). How is - a to recreate the order of bookmarks before new OS download?

  • HP Officeject 4635 language change

    I have somehow - English, my language to another language I don't recognize. HOW CAN I CHANGE IT BACK TO ENGLISH? Thank you