(c++) adding plugin functions

Id like to make my program use plugins for certain functions, ideally it would load a .so file and then check if a certain function exists in it,
if yes it uses the function in the plugin otherwise it uses its own function.
Also id need to be able to access all (or atleast some specific ones) functions/global variables of the main program from within the function in the .so file.
Is this doable somehow? if yes how? ^^
Links to some guides etc would be neat as i havent found much usefull stuff about it yet.

Since you are going to write it in C++ will you write it with classes? If you are going to do that, I have some code that uses dlopen and is written to handle classes. The code is used in a personal project which I am coding on, it will eventually be published. If you (or anyone else) is interested in the code for the module loading, I could upload it somewhere (I could have done that right now but it's on another computer that I own).

Similar Messages

  • How to use Search plugin functions in your plugin?

    Hi,
    I am developing a plugin which need to add an action for bookmarks. For this I need to search a particular word in the document and the corresponding page number.
    On going through the SDK documentation I came across the Search plugin. There are ways in which your plugin can communicate with the Search plugin. For doing so you need to do the following:
    1. Add HFT of the Search plugin by registering PluginImportReplaceAndRegister.
    2. Add "SrchClls.h" header file.
    I did the following steps and my plugin compiled successfully. But I am not able to understand how will I use the Serach plugin functions to find a word in the document from my plugin?
    Please help.
    Thanks

    The HTML help is spectacularly unhelpful, sometimes giving dozens of unrelated methods when you try to read the section for Search.  But try Search... http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/API_References/Acrobat_API_Ref erence/AV_Layer/Search.html
    It's worth making sure that you understand the difference between "Search" and "Find" functionality in Acrobat, something rather masked in the UI in recent releases.
    Find - looking for a string in the current document. The Search API has no connection to this.
    Search - managing indexes of multiple documents. API provides limited functionality (create/delete/query/search). Search results are not available to the API, they can only be displayed in the UI as a results window.

  • Question on adding one function to a submenu

    hi,dear all.
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??
    thanks in advance.

    What is the application release?
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??Please mention the steps and the navigation path you follow to reproduce the issue.
    Thanks,
    Hussein

  • Error adding partner function

    I am a newbie. I am trying to configure SD on my IDES.
    I am at the point of adding partner function (Z9) to the partner procedure (ZAG)
    but I am getting an error message:
    "Partner function Z9 cannot be used for partner procedures"
    I cannot find the answer in google.  please help.
    [click for image|http://i1181.photobucket.com/albums/x421/darkmatter1/196235/pfunction.jpg]

    Hi Anwar,
    Please check the parner function-account group and partner determination  procedure-account groups are assigned properly or not from
    SD >> basic functions >> partner determination >> set up partner determination >> Set Up Partner Determination for Customer Master,sales doc. header etc. which type partner determination you want to maintain if you want to maintain them for customer.
    In that screen, you need to maintain (Z9) to the partner procedure (ZAG) after doing Partner Determination Procedure Assignment and Account Groups - Function Assignment.
    I hope these will solve your problem.
    Regards,

  • Adding subtitle functionality to my custom flv player

    Hey all,
    I have a custom flv player and i'm slowly adding more functionality to it as I go along but i've hit a wall.
    I want to add a subtitle button that toggles between show/hide. I've seen on the internet that the best way is to use an XML file (holding the script, times etc.), which I have no problem writing.
    I'm having problems trying to replicate the 'FLVPlaybackCaptioning' component (in Flash CS3) in to my custom flv player. I.E. Adding the right actionscript to my toggle button.
    Can anybody help me as I just can't find anything on the internet.
    Any advice is welcome!
    Thanks
    egr103

    Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
    I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
    Ideally I would like to use an XML file to do the subtitles. Any ideas?

  • Adding a function once a scrollpane has loaded

    Hi
    I have a scrollpane but need to put the scrollbar on the left. I've used the code:
    _root.scrollPane.vScroller._x = 0;
    This only works once the scrollpane has loaded. Could anyone help me with setting up a function/listener? I'm useless with listeners so any help would be appreciated. I've tried on(complete) with no success. I've also heard an "added" event listener may be the answer, but I've not managed to succesfully set that up.
    Thanks
    Simon

    in as3 you should use the added event and then position using the verticalScrollBar property of your scroll pane:
    sp.addEventListener(Event.ADDED,f);
    function f(e:Event){
    sp.verticalScrollBar.x=0;
    oops.  wrong forum.  delay by some time and then change your scrollpane's vScroller (or vSB) property.  if you're loading content into your scrollpane you can use the complete event.

  • Adding a function module into a SQ01 Query

    Hi ABAP Gurus,
    I was trying to extract few dates from TSEGE Table, by linking the VTTK - HANDLE. We are trying to look at maintaining dates of shipment that were not previously used in our company.
    When I tried extracting the dates from TSEGE, they come as timestamped UTC. I was told to use the function module IB_CONVERT_FROM_TIMESTAMP with CET in a query by an external consultant we use for our services. I am familiar with creating simple queries in SQVI and convert them to SQ01, also I know to create queries in SQ01 itself. But do not know how to add a function module into an SQ01 Query.
    After checking a few threads, I realise that I should be creating a field and entering the code of the function module.
    Is there any way, anybody could instruct me in simple terms how do I go about adding a function module.
    Your help will be greatly appreciated.
    Thanks in advance!

    Dear Jogeswara,
    I have after reading a few threads, understood this small code and changed to my specification
    To convert UTC Start time from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        I_TIMESTAMP = TSEGE-EVEN_TSTFR
        I_TZONE = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    To convert UTC Start End from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp = TSEGE-EVEN_TSTTO
        i_tzone = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    I hope the above codes are correct. If yes, I have a doubt: TSEGE-EVEN_TSTFR & TSEGE-EVEN_TSTTO have different time in the same field, "Actual" & "Forecast", which is determined by TSEGE-EVEN_VERTY wherein 1 is Actual and 0 is Forecast. Is this something I would have to put in the code, or something that would work in the query "Selection Fields"?
    Thanks again!

  • There's any example of using the gateway plugin functionality?

    Hello again!!! xD
    There's any example of using the gateway plugin functionality?

    To put your custom media element loaded from a plugin on the stage, you can use a MediaContainer object:
    var adContainer:MediaContainer;
    adContainer.width = 468;
    adContainer.height = 60;
    adContainer.addMediaElement(adElement);
    addChild(adContainer); // assuming we're on a Sprite.
    The video element can be in its own container:
    var videoContainer:MediaContainer;
    videoContainer.width = 468;
    videoContainer.height = 60;
    videoContainer.addMediaElement(videoElement);
    addChild(videoContainer);
    Regardless of wheter or not the adElement and videoElement are in a parallel element together, each indiviual view will appear in the assigned container.
    Does that anwer your question?
    Cheers,
    Edwin

  • Can we get added plugins or animated logo intro's for Adobe Premiere Elements?

    Can we get added plugins or animated logo intro's for Adobe Premiere Elements12 ?  I know Adobe After Effects has them.

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for feature requests
    Or Google to find out if 3rd party vendors offer what you want

  • VOTE FOR YOUR BEST ADDED PLUGIN.   WHAT ARE SOME PLUGINS WELL WORTH THE $$

    Always like to see peoples opinions about added plugins for logic pro.
    WHAT ARE SOME GREAT PLUGINS WELL WORTH THE MONEY?
    TYPE OF SOUND CAN BE SYNTHS/EFFECTS WHATEVER YOU LIKE.

    i've stopped using external plugins cause it always ended up with some issues :
    - plugins would have some bugs
    - plugins would need to be updated all the time, and the new version would mess up with my songs
    - automation would not work properly
    - settings would not have been saved properly with the song ...
    of course i'm exagerating but :
    - logic already has plenty of plugins all sounding well and covering everything you need
    - i don't master half of them yet
    - there's always a way to achieve the same sound of an other plugin / technic, may it be less easy
    - any of my songs could be opened with any Logic Pro 7 in the world
    - i feel like plugins are the new video games. my friend don't play video game anymore, they download plugins and rave about the latest ones. i don't need plugins to get creative, and when i have an idea of a sound or a song, i've never thought "**** i need reaktor" or anything.
    just my two cents !
    bontempi

  • Best / most popular software or scripts for adding search function to website?

    I'm trying to find a good piece of software or script for implementing a site search function into our website.  I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding.  Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down.  I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that.  These are the primary needs of the website:
    --Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages.  The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc.  The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
    --We are trying to keep the price under about $50, or use a free solution
    --The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago).  We self-host both sites.
    --Our server can't run PHP
    --The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site.  It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
    --I do have a sitemap page already on it, if that matters or helps
    Some of the ones I've found so far that looked the most promising include:  Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
    Forgive me if there is a better area to post this, if so let me know.

    For a static site, your options are:
    Google ~  http://www.google.com/sitesearch/
    Freefind ~ http://www.freefind.com/
    Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Error adding new function in order template

    Hi,
    When i am trying to add a new function to order Template under /contolData/Functions/ form data dictonary
    I am getting error :
    Element with same name exist.The following nodes can not be added to the order.
    (no namespace):/ControlData/Functions/MyNewFunction
    (no namespace):/ControlData/Functions/MyNewFunction/componentKey
    Thanks
    Harman

    Hi Harman,
    You might need to be more specific before I can help you. What have you done, and which step you run into the error? I supopse you have created a new "function" Order Component, and created the required Control Data nodes in Data Dictionary (what have you added?), right? So, when you go into the Order Template tab of the new Order Component (which would be empty since it was newly created), and you try to "select from Dictionary" the corresponding ControlData for the function (e.g. /ControlData/Functions/MyNewFunction), that such an error occurs?
    Have you assigned a process for this Order Component? Studio does not allow adding control data to it unless a process is assigned.
    Btw, you should define a namespace for your Order Components (and other orchestration entities). The OSM server uses namespace to locate these entities among cartridges.
    Cheers,
    Daniel Ho
    Product Management -- OSM

  • Call Plugin-Function with parameters via JavaScript

    Hi!
    I have following problem: I wrote a plugin for Illustrator CS2 in C++ and now I would like to call a function of the plugin from outside of illustrator (from a JavaScript).
    This can be done with the Actionsuite. But how could I then give some parameters to my function?
    For example:
    In the plugin, I have a function "void myFun(char * test)" and I want to call this function in JavaScript with test="Hello World" for example.
    The only possible way right now seems to write parameters into a file and open that file in the plugin to "receive" them.

    Hi,
    Could you send your plugin coding.
    Regards,
    Maria

  • Adding new function & menu to apps

    Hi i am newbie to apps
    i am working with forms and reports and having access to apps ,I like to know how can register my function with specific menu and to specific responsibility.I searched this forum but didnt found a clear steps.I also like to know create and register menu in apps
    thnks
    ramya

    Ramya
    I will give you a brief explanation, but you will find more details in the document Oracle Applcations System Administrators Guide, whcih can be found on MetaLink.
    Functions are used to associate a form or procedure with a menu item. The seeded forms and self service functions all have functions pre-defined. If you create new forms or self service procedures, you will want to create a new function to associate your versions to.
    Once you have defined a function, you need to associate the function to a menu. If the function can be accessed directly from the menu, you need to have a menu prompt which the user can use.
    Then you associate your menu (with its functions) to responsibility. You can control which menu items you want the user to access by adding 'menu or function exclusions' to the responsibility. In this way, you can have one menu, but with different variations used in different responsibilities.
    There are manyu variations on this theme, but I hope this basic explanation points you int he right direction.
    Regards
    Tim

  • Adding setTimeout function to CS3 ?

    Dear Forum
    I am migrating a project from Flash 8 to CS3. I am keeping it
    in actionscript 2. The complier says there's no setTimeout
    function. I have added the following line to the toplevel.as class
    wich in flash 8 has worked fine for me:
    intrinsic function setTimeout():Number;
    Is there something else that needs to be done to make this
    hack work in the CS3 envirnoment?
    Thanks
    Stephank

    so adding the intrinsic line to the toplevel.as file doesn't
    do it anymore? I remember that the _global version always worked
    but I'd rather not have to dig through all my files to rewrite that
    setTimeout function... I had a feeling 3 years ago that this might
    come back and haunt me...
    or is there another file that needs to be modified so the
    compiler doesn't complain?

Maybe you are looking for

  • SAP console goods receipt purchase order

    Hi all, I'm new at SAP console, and I need it to make goods reception from a purchase order with a mobile device (PDA). Is there any way to make it without performing a Warehouse Management customizing in SAP ERP system??? I've seen a goods receipt m

  • Problem on 10gr2 for configure HS talk to mysql through ODBC

    Hello, all, did someone tried configure HS on 10gr2 talk to mysql 3.5 on xp? I tried it on my environment and got some issues here. any advice will be appreciated: 1) environment: OS=xp professional sp2. oracle database=10gr2. mysql database=mysql 3.

  • RG1-Macro

    Dear all, I Downloaded RG1 macros from Service .sap.com..Zip file. After my RG1 Report saved in Desktop.... I opend RG1 macro Excel and tools,,Udertoold Clicked on Macos...But my Noram Excel report is not updating in RG! macro Excel. How can i use RG

  • Transport Logical system  DEV To Production

    Hi friends, can you guys tell me how to transport Logical system from DEV system to Production system. please help me its urgent.. Thanks in Advance

  • Error in inserting data to database

    I am using SQL to store the data, When I am insterting the data to my table then I am getting error 2147217833. Attached image for table structure and method the way I am insterting the record. I am using LV2011. I am able to connect to database but