Push regex works do not within indesign plugin

Hi, while I wrote the code below in a separate project inside visual studio express, it works very well!

Now, when I use the same code in a plugin for Adobe InDesign, then boost::regex_search fails.

I do not get the exact reason...

An idea to solve this will be very useful.

void MTSTestFunctions::ParseAllMarker (inText, std::vector, std::wstring & outMarkerInfoVec)

{

departure from std::wstring:const_iterator = inText.begin ();

end of std::wstring:const_iterator = inText.end ();

model Boost::wregex (L ' ((<.)) ") * ? >). () \\[[^[].*? [^]] \\])| (\\[\\[.*?\\]\\]))");

Boost::wsmatch what;

Boost::match_flag_type flags = boost::match_default;

Int32 index = 0;

Try

{

While (boost::regex_search (start, end, who, pattern, flags))

{

MarkerInfo tmpMarkerInfo;

tmpMarkerInfo.mMarkerText.assign(what[0]);

tmpMarkerInfo.mStartIndex = (what.position () + index);

index += what.position ();

tmpMarkerInfo.mEndIndex = (index += what.position (());

tmpMarkerInfo.mMarkerTextLength = (index + what.length ());

index += what.length ();

position of research update:

Start = what .second [0];

update the flags:

flags | = boost::match_prev_avail;

flags | = boost::match_not_bob;

}

}

catch (ex std::runtime_error)

{

}

}

Thank you

Hi Dirk,

I installed the version of today and used the lib provided with InDesign CS4 SDK (InDesignCS4ProductsSDK_Build578), everthing worked.

Even once when I changed to debug and used the debug version of the lib provided by the InDesignCS4ProductsSDK_Build578, programms crashed!

For now, I'm building the latest boost library 1.49 with _SECURE_SCL set _HAS_ITERATOR_DEBUGGING to 1 the value set to 0. Because when I have my program like code below debuf

It seems that the the project setting for _SECURE_SCL is 1 and _HAS_ITERATOR_DEBUGGING value 0.

#if _HAS_ITERATOR_DEBUGGING value

CAlert::InformationAlert (PMString ("_HAS_ITERATOR_DEBUGGING value 1"). SetTranslatable (kFalse));

#else

CAlert::InformationAlert (PMString ("_HAS_ITERATOR_DEBUGGING value 0"). SetTranslatable (kFalse));

#endif

#if _SECURE_SCL

CAlert::InformationAlert (PMString ("_SECURE_SCL 1").) SetTranslatable (kFalse));

#else

CAlert::InformationAlert (PMString ("_SECURE_SCL 0").) SetTranslatable (kFalse));

#endif

I just want to be consistent / know (for Adobe used if someone reads this) that they put for these macro preprocessor when they built the Boost regex library which they delivered with the SDK version (InDesignCS4ProductsSDK_Build578). As I don't have this setting nowhere mentioned in the SDK.

Please let me know if I'm missing something!

Many thanks Dirk!

Tags: InDesign

Similar Questions

  • After the update to iOS 9.3 push mail works do not under any circumstances

    I have an iPhone 6 Plus.  I have updated to iOS 9.3 and now none of my email (gmail, work email, outlook.com) push works.  I have to go periodically and click on mail and let get it back (as if it was the battery saver mode).

    I restarted the phone, I uninstalled and reinstalled some of the mail accounts.  No luck.

    Anyone else out there there is this problem?  All the patches that do not include a restore?

    Whenever Apple says that "restore your device" or "Exchange your device" which is the answer the more B.S. ever and is the last option, not the first.

    In addition, Apple, if you're reading this, I'd appreciate a battery that works above 40 degrees.  Samsung works well below zero, but the iPhone stops and asks to plug you because it's too cold below 40 degrees.  Your answer to my question was "our batteries are assessed to the don't work from 32 degrees.  Failure of engineering.

    Steve, I think that his shocking on a dedicated forum Apple for help with problems that NOT 1 person of apple responded with a solution.

  • ATL + tab doesn't work is not within the remote computer

    I connect remotely to my work computer. The shortcut alt + tab does not work with the remote computer. When I hit alt + tab when in the remote computer, it will show take me out of the remote control in my computer is open programs. He used to work, but I don't know what happened. How to restore this function?

    Hi Michelle,

    Thanks for joining us out on Microsoft Community Forums.

    According to the description, it looks like you are facing a problem while access Atl + Tab using the remote connection.

    The question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    TechNet: http://social.technet.microsoft.com/Forums/en-US/category/w7itpro

    For any help about Windows, you can still post on the Microsoft Community Forums and we will be happy to help you.

  • Request buttons not working do not within dynamic regions

    Hello

    Use: Jdev 11.1.1.2.0

    I created an index page with a menu whose menu items navigate dynamic regions. On each of the jsff pages, I have a query with Table ADF Panel.

    Problem, none of the keys on the Panel of the application seems to work. By clicking on search do not update or populate the table. In addition, by clicking on the Advance button is doing the research advance controls appear or change the label of the button getting base. Seems that the page is not refreshing with the latest information / actions.

    If I follow these steps in a normal page outside dynamic regions then everything works fine. No idea where to start looking for the problem?

    Kind regards
    Mario

    Hello

    If the region is dynamic, make sure that the managed bean allows you to switch between the taskflows is in a longer than the request scope: for example viewScope, pageFlowScope, sessionScope

    Frank

  • NAV bar doesn't work DO NOT within a layer

    I created a vertical nav bar of 5 elements, inside a layer nested on a JPG homepage. I finished the bar of navigation with all the images, but when I test it by F12, I get a finger pointer, within the area of nav bar, but no action that is to say the color of the image remains unchanged, even if it appears in the composition of nav bar. Nothing else happens. Is there a solution to this, please?

    I created a vertical nav bar of 5 elements, inside a layer nested on a JPG homepage. I finished the bar of navigation with all the images, but when I test it by F12, I get a finger pointer, within the area of nav bar, but no action that is to say the color of the image remains unchanged, even if it appears in the composition of nav bar. Nothing else happens. Is there a solution to this, please?

  • Hey... I have install CS5 on my new PC, Windows 8, and now some features do not work! example: in InDesign, I can't work with levels... Can Sombody help me?

    Hey... I have install CS5 on my new PC, Windows 8, and now some features do not work! example: in InDesign, I can't work with levels... Can Sombody help me?

    Please refer CS5 - Windows 8

    (Double post)

  • SWF animations works does not properly during export to PDF from InDesign

    I use InDesign CS5 and you have created a document that I want to add interactivity and animations to. I created buttons and page destionations, etc., which all work perfectly when you export to PDF, but the simple animation that I wanted to include do not work. The animations were created in InDesign, then exported as a SWF file and then imported selection placed in InDesign and then exported as an interactive PDF where animations either do not work, have not been picked up or gift does not work as it should. What I am doing wrong, how can I get the animations work properly?

    First of all, if you care about your audience, stop using SWF that has now

    ZERO support on mobile devices.

    However after that make sure that InDesign is fully patched, I would recommend

    Place the SWF file in the PDF file in Acrobat Pro instead.

    Bob

  • InDesign does not display all plugins

    Hi all

    I created two sample plugin for indesign cs3. I copied the relase of two plugins (WhiteFishPrice.InDesignPlugin and MyProject.IndesignPlugin) version in the Indesign/Plugin Directory. When I started the application indesign I got an error that States "conflict of WhiteFishPrice.IndesignPlugin with MyProject.IndesignPlugin. Try to remove one of the plugins form the plugin folder and restart

    Adobe indesign. »

    Whe I remove one of the plugins in the plugins folder. I am able to see my plugin in indesgin adobe.

    But I need to see both plugins in adobe indesign, when I start the adode indesign. How to get the two plugins in adobe indesign?

    Thank you

    Santini

    I assume here that you have created MyProject by copying the sample WriteFishPrice, in which case you have the same Plugin prefix and a conflict.  Get a plugin from Adobe ID so that you have a unique prefix of Plugin and use it in your plugin.  See page 42 to find out how to get a prefix plugin ww - plugins.pdf.

    Ian

  • How to debug an InDesign plugin (PluginConfig.txt)

    I added a PluginConfig.txt. (Users/user/Library/Preferences/Adobe InDesign / Version / en_US)

    But nothing happened. (When you use the Plug-Ins folder was work well.)

    Texts of PluginConfig.txt test.

    = Path

    "OS_HD:Users: user: Desktop:Project:inDesign:plugin:build:mac:debug:Hoo.

    = Path

    "": OS_HD:Users: user: Desktop:Project:inDesign:plugin:build:mac:debug:Hoo".

    = Path

    ""OS_HD/users/user/Desktop/project/inDesign/plugin/build/mac/debug/Hoo".

    = Path

    "" /OS_HD/users/user/Desktop/project/inDesign/plugin/build/mac/debug/Hoo".

    = Path

    "" User: user: Desktop: project: inDesign: plugin:build:mac:debug:Hoo".

    = Path

    "": Users: user: Desktop:Project:inDesign:plugin:build:mac:debug:Hoo".

    = Path

    ""Users/user/Desktop/project/inDesign/plugin/build/mac/debug/Hoo".

    = Path

    "" /Users/user/Desktop/project/inDesign/plugin/build/mac/debug/Hoo".

    . InDesignPlugin file in folder Hoo

    What is the problem?

    I searched in the Indesign 11.0 folder and you are right the file PluginConfig.txt is not pre-exist, but when I created a plugins loaded fine once again on my machine. I don't know what is different on your computer. One thing I suspect it is the locale of your InDesign installation, it is English of the United States or something else. I'll paste a screenshot of how this file looks like on my machine, maybe that gives you some indication of what is different for us two.

  • functions of YouTube works do not (such as adding to the playlist comment)

    Hello.
    functions of YouTube works do not (such as adding to the playlist comment) has stopped working, they are still working for the same account on chrome or another browser. (when it happened I didn't update or downgrade programs, addons, plugins that run in firefox or chrome, I don't see why all of a sudden).
    so I can't like videos, I get the message 'feature not available try later', can't add videos to the playlist (whole playlist including fav, as: Watch more later playlist pre made by youtube) and can't comment, for these 2 functions, I get the message 'invalid request '.
    all this happen again and many times, they stop or I can't make it work with reboot, refresh, try again.
    I did a fresh install of firefox and all it's the addons, plugins, same installation fees of adobe and divx, vlc products (which have the plugins or addons in firefox)
    After installing I could like comment add to playlist, before the snap all the addons, but I could only play HTML5 in youtube, any video that had no HTML5 support required at adobe. (after that I installed adobe it worked until I restarted the browser).
    now it does not work yet. (to disable, uninstall all the addons, plugins does not affect the problem)

    Some issues may also occur because of ProxTube - at least, I realized that I was was instantly redirected to the first film in the playlist on youtube - having no chance to see the entire playlist. It works when I disabled ProxTube.

  • Why will not identify check plugin that adobe Acrobat is current?

    Whenever I open a Firefox window, I get a tab plugin check telling me that my Adobe Acrobat is obsolete. I installed the new version three times now. I even downloaded the installation of the page ftp from Adobe, rather than the page that check plugin sent me just to be sure. The plug-in control page even says that I am running version 10.0.1, the latest version I can find, but still insists on the fact that one is obsolete. What happens here?

    My problem: as well as update Adobe Acrobat is not recognized, the Plugin Check page don't stop posting at the start of Mozilla.

    My Solution: I have uninstalled Viewpoint Media Player from Windows. There is no need for me to remove the GOAL (in reference to the previous answer). If the 2 were installed at the same time seem irrelevant because GOAL still works without perspective and two of my Plugin problems have been resolved.

  • How can I create a slide show with keys working on an interactive InDesign document?

    I am trying to create a slideshow of images with keys working on an Interactive InDesign document and followed the steps of "InDesign CC Classroom in a Book", but when I saw the document as they do not seem to work, I had the idea where I went wrong, can anyone help?

    Why do you have it convert again? It is no more a button. And the action the button must be on the release or press.

    And to be more specific. Interactive document doesn't mean anything. What's your game to end here? EPUB? Publish online?

  • problem with the effect cc 27 instagram (not compitable photoshop plugins

    I bought a photoshop for my mac computer and tried to install a plug in 27 photo adobe effects it shows an error because it is not compitable with adobe application since I'm on a last cc of photoshop help me in this problem

    Hi Dineshb,

    Please go ahead and download Photoshop CC 2014 and check whether the plugin works or not.

    Click on the link below to download the previous version.

    Download and install Adobe Creative Cloud apps

    Let me know if it helps.

    ~ UL

  • Premiere Pro is not recognize my plugin

    Hello

    I develop an Adobe Premiere Pro exporter Plugin. Working version: Adobe Premiere Pro 2014

    In line with the first Pro SDK, I installed MSVC & Adobe first Pro 2014 in a single machine. I put all the environment variables and started my exporter plugin development.

    My final output has,

    Exporteri265.PRM, + 2 x DLL files. In the PC where I developed the exporter, I copied Exporteri265.prm to C:\Program Files\Adobe\Adobe first Pro CC 2014\Plug-ins\Common

    and 2 x DLL C:\Program Files\Adobe\Adobe first Pro CC 2014\ files

    In my PC development (in MSVC + first Pro 2014), everything works fine. Premiere Pro is able to load the plugin.

    Recently, we purchased a license more and installed in a Test PC (only Premiere Pro, no. MSVC). In this machine, I copied the executable file in the same way. But Premiere Pro does not load my plugin.

    It gives a loading error (log file).


    Loading C:\Program Files\Adobe\Adobe Premiere Pro 2014\Plug-ins\Common\Exporteri265.prm CC

    Found invalid registry entry so the plugin will be loaded from the disk.

    Loading the disk...

    The library could not be loaded.

    The same technique works very well in my development PC. But not in the Test PC.

    I checked all the registry settings. HKEY_LOCAL_MACHINE. Also, I moved my .prm to C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore. Does not.

    Can someone help me? What is missing in my approach?

    Kind regards

    Subash

    Hi Philippe,.

    If you are relying on a single system and specifically the problems loading the plug-in on a another system, make sure that you build the plug-in using the Release, not the debug configuration configuration.

    See you soon,.

    Zac

  • DNG Converter doesn't work is not on a camera called raw photo

    DNG Converter doesn't work is not on a raw photo camera that always comes back with this Message "check if the camera is recognized.   "

    Supported cameras Camera Raw plugin | Compatible cameras

Maybe you are looking for