Configuration file locations with the FDK

Is there a way to determine the directory a DLL created from the FDK is loaded from?
I need to persist some data assocaited with my DLL and figured putting a file in the same directory would be the most logical place to put it. It also  guarantees the directory will exist and I won't have to create some random place to put my configuration file.
Thanks,
- m

Hi Michael,
Assuming Windows, I don't know of an easy way to find this out. I'm curious, though, are you unable to control where somebody installs it? I'm guessing you are using the maker.ini method of registration, otherwise you would know the folder (init\plugins, something like that). Since it has to be registered in maker.ini and you at least know the DLL name, you could search the two maker.ini files for it and find out its path there, I suppose. There could be some overhead involved, though, especially if it is a relative path.
There are some who would disagree (not necessarily me) that the installation directory is the best place to store config files. I've heard the opinion that the Documents and Settings (ie, the "home" directory area) is a better place. You would have to read system variables to find out that path, which isn't too difficult.
Russ
[edit] I should have said "environment" variables, not system variables. Big difference there, in a FrameMaker forum.

Similar Messages

  • Open file located in the HTMLResources with adobeDPS.dialogService.open()

    Is it possible to open file located in the HTMLResources with adobeDPS.dialogService.open()?
    Method adobeDPS.dialogService.open('http://www.google.com/') - works well, but it not support relative URLs
    I can make button in InDesign layout with url "HTMLResources/faq.html",
    but how to make HTML-button in web-overlay that opens file from HTMLResources in slideup webview?
    Thanks

    Hi, Why do you need to use HTMLResources?
    You can try use all HTML files (faq.html too) in web content.
    Do you want a lightbox effect, than your webcontent frame need to be the same size of page
    I believe that the results is quite similar.
    regards

  • Struts Support: "Cannot  parse the struts configuration file" when using the Struts Portlet Wizard

    I'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
    168 and Struts Support" patch.
    I select the struts module successfully "struts-example" and am prompted for the
    location of name mangled configuration file (i.e "struts-config.xml" for struts-example
    becomes "jpf-struts-config-struts-example.xml").
    As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
    "Cannot parse the struts configuration file."
    Given that this is a file supplied with the struts distro and that I can deploy
    the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
    with my attempt to use the Struts Portlet.
    Can anyone please help?
    Thanks,
    --Andy Hull

    I'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
    168 and Struts Support" patch.
    I select the struts module successfully "struts-example" and am prompted for the
    location of name mangled configuration file (i.e "struts-config.xml" for struts-example
    becomes "jpf-struts-config-struts-example.xml").
    As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
    "Cannot parse the struts configuration file."
    Given that this is a file supplied with the struts distro and that I can deploy
    the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
    with my attempt to use the Struts Portlet.
    Can anyone please help?
    Thanks,
    --Andy Hull

  • Configurations file location | visual administrator parameter | path ??

    Hi folks ,
      I have installed the GDS console . As suggested in the installation guide " GDS 1.0 - Installation Guide.pdf " I have copied the GDS folder in the path E:/usr/sap which is where my WAS is installed  (This GDS folder comes when you unzip the file GDS1005_1.zip in the software for MDM 5.5 SP05 ase release . It contains the subfolders namely " configurations" , "IncomingMessages" , "MessagesToDataPool"). The WAS and the GDS console are at the same machine .
    Now there is a step in the configuration of visual administrator parameters where I need to configure the parameter "Configurations file location" . I gve the path as "E:\usr\sap" as suggested in the example for the configuration in the installation guide (my GDS folder is inside "sap" folder ) but when I try to access the page for GDS through http://<host-name><port>/gds it says resource not found .
    What I am not able to figure out is what would be the appropriate path for this parameter so that I am able to access the page ?
    Could you please help me out !!!
    Regards
    Deepak Singh

    Hi ,
       Actually I did all that you suggested but the problem was , for J2EE to accept my changes I was required to restart the engine from the console which I was not doing . This morning I did that and could move on to the next set of problems . But thanks for the suggestions . I do appreciate that .
    - If you look at the " GDS 1.0 - Installation Guide.pdf " then under " Editing the application properties " there is a table which has five columns , Property/Default/<b>1Sync</b>/Description/Example . What exactly does the " 1Sync " column convey ??? . Guess it is the External data pool ??
    - I am doing this more as a personel training excercise so I have some  infrastructural constraints .I have a WAS 6.40 SP15 installed on my machine . I have MDM 5.5 SP05 with the GDS component .  I don't have a XI/R3 system yet in the landscape . I don't have any external data pool . I don't have an AS2 adapter either . So now I am getting a couple of configuration errors which are for some parameters in visual administrator .
    The parameters are
    > DestinationDataPoolGln
    > DestinationDataPoolName
    > 'GDS.PrincipalHeader'
    > ProviderGln
    > ProviderName
    > ProviderTimeZone
    > 'GDS.SchemaLocation'
    > 'LinksItemKeyCombination'
    > 'SystemExternalValidations'
    Is there a way I can configure these values without adding anything further systems in my landscape ??
    Would appreciate your inputs !
    Regards
    Deepak Singh

  • Cannot shrink log file 2 because the logical log file located at the end of the file is in use ?

    HI,
    I am getting this error frequently.. any recomendations :
    Executed as user: DB0\sqlservices. Processing database: dbin [SQLSTATE 01000] (Message 0) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB_ [SQLSTATE 01000] (Message 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB [SQLSTATE 01000] (Message 0) 
    DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023) 
    Processing database: DB_AC [SQLSTATE 01000] (Error 0)  
    [SQLSTATE 01000] (Error 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528). 
    The step failed.
    Please give any receomendations to avoid this error in future :
    Yangamuni Prasad M

     
    Hi Yangamuni,
    Are there any progress?
    Please have a look on the below threads with the similar issues as yours:
    http://www.sqlservercentral.com/Forums/Topic652579-146-1.aspx
    http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ae4db890-c15e-44de-a2af-e85c04260331
    The solution is change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.
    Thanks,
    Weilin Qiao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Configuring Guided Procedures with the Universal Worklist

    hi experts,
    Pls give me the steps to Configure Guided Procedures with the Universal Worklist....
    I have the help file with me but it doesn't work ... and my configuration is NWDS 7.0 sp9.
    pls help me
    with regards,
    sriram

    Hi,
    You can configure your system so that the tasks generated in Guided Procedures (GP) workflows, both on local and remote systems, are displayed in the Universal Worklist (UWL) together with the tasks pertaining to other SAP NetWeaver Portal work areas.
    You perform the configuration steps on the consumer side:
           1.      Create a portal system, specifying the host name, HTTP port of the GP tasks provider and, if available, the WSDL of the relevant service.
           2.      Register the system as the item provider for UWL and configure it for remote access.
    You establish the connection between GP and the UWL by assigning a system alias.
           3.      In UWL, browse all pending GP tasks assigned to your user.
    You can only view tasks assigned to your user, that is, the logon ID of the user on both systems must match.
    Prerequisites:-
    a)  You have been assigned the System Admin portal role to be able to create portal systems and aliases. For more information, see Administration Roles.
    b) You have been assigned the Standard User role to be able to access UWL in the portal. For more information, see Default Portal Content for Standard Users.
    c) You know the host name of the system from which you want to retrieve GP tasks
    Step by Step Procedure guide can be found out at
    [Step by Step Procedure for COnfiguring GP with UWL|http://help.sap.com/saphelp_nw04s/helpdata/en/43/ef06a7860c7061e10000000a1553f6/frameset.htm]
    Hope this helps,
    Regards,
    Shailesh Nagar

  • Error while accessing a file located in the server from JSP

              Hi
              I am having problem while accessing the file located in the server from a JSP
              page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              The same code is working if the jsp placd under defaultwebApp directory and not
              working if i create a war and deploy the same.
              I am using weblogic server 7.0 trail version.I am setting the context path also.
              Can any help me in this regard.
              Thank And Regards
              Anand Mohan
              

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • Looking for answers on XMP files - where should they be stored as sidecar files?  With the original raw file or in a separate folder?

    Looking for answers on XMP files - where should they be stored as sidecar files?  With the original raw file or in a separate folder?
    Relatively new user of Adobe LR5 and PS CC, about a year old. 
    If they should be stored somewhere beside the folder that contains the originals, where and how to change the settings?
    If I choose to write metadata to the original files, is that sidecar files or does the XMP file show separately?
    To be honest, I usually find a video and I cannot figure this out.  I have never received an answer on any of my questions by the way. 

    Hi there,
    You answered a prior question from me so I wanted to reach out to you about this.   I just need a step by step on how, if possible, to View LRCC on my MacBookPro when the main interface is on my iMac

  • Camera-raw plugin for NEF files, made with the new Nikon D7200

    Hi, does anyone know when there will be a camera-raw plugin for NEF files made with the new Nikon D7200?

    I think that camera is too new. Even the DNG converter will not support it. If you have Nikon software with the camera, you could convert to tiff and then use the tiff files in Elements whilst awaiting the next Camera Raw update for PSE13.

  • Hi, I godt 2 Questions: 1) My Adobe PhotoShop Elements 10.0 for MAC cannot read the RAW files taken with the new Canon 7D Mark II camera. 2) My Photoshop Elements has changed from the danish language to german language, how do I put this back ?

    Hi, I godt 2 Questions: 1) My Adobe PhotoShop Elements 10.0 for MAC cannot read the RAW files taken with the new Canon 7D Mark II camera. 2) My Photoshop Elements has changed from the danish language to german language, how do I put this back ?

    You're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • HT1766 where is the Itunes backup file located in the computer ?

    where is the Itunes backup file located in the computer?

    Read here:
    http://support.apple.com/kb/ht4946

  • If i restore a user folder from time machine. is it just restoring all files associated with the user or programs also?

    If i restore a user folder from time machine, is it just restoring the files associated with the user or programs as well? Im asking because Apple Store just reset my system and said to restore files i needed and not to do a full restore. to try and determine if it was a software issue causing the problems.

    Just the user's folder. Nothing else. See Pondini's TM FAQs, for details.

  • Lightroom 5.6 does not recognize nef (RAW) image files generated with the new Nikon D750: who can help here or knows what to do? Thanks, Peter

    New Nikon D750:
    Lightroom 5.6 does not recognize nef (RAW) image files generated with the new Nikon D750: who can help here or knows what to do? Thanks, Peter

    LR 5.6 doesn't support the new Nikon D750. You have to wait to the next update.
    You con also install the release candidate of the DNG converter and convert your NEF files to dng.
    http://blogs.adobe.com/lightroomjournal/2014/10/1366.html
    Axel

  • How to configure portal server with the Backend Oracle database

    Hi Portal Experts,
    we are planning to install Netweaver 04s sp stack 9 full java edition with Oracle 8i on windows platform.
    we have the installation docs of portal but we didn't have any idea about how to configure Portal server with the Backend Oracle database at the time of installation or after ost installation of portal.can anyone provide the documentation about this or guide me how to achieve this.
    PLZ share ur views---your help would be highly appreciable.
    Regds
    Phani.

    HI
    if you r working in Sap enterprise portal use for connection url
    jdbc:sap:sqlserver://ilsql01.tlv.sap.corp:1433;DatabaseName=Northwind
    ilsql01.tlv.sap.corp:1433 this is your portal url with port number
    Northwind is your database name.
    for dirver you need to give
    com.sap.portals.jdbc.sqlserver.SQLServerDriver
    in case if you r working on other than sap say windows along with oracle try to use
    Connection URL as jdbc:oracle:<drivertype>:@<database>
    Driver name as oracle.jdbc.driver.OracleDriver
    ex jdbc:oracle:thick:@localhost:3036:mydb
    Oracle implements two types of JDBC drivers:
    Thick JDBC drivers built on top of the C-based Net8 client, as well as a Thin (Pure Java) JDBC driver to support downloadable applets. Oracle JDBC drivers are used to create JDBC applications to communicate with Oracle databases.
    Oracle extensions to JDBC include the following features:
    Data access and manipulation
    LOB access and manipulation
    Oracle object type mapping
    Object reference access and manipulation
    Array access and manipulation
    Application performance enhancement
    *************if the information is helpful to you please reward points************

  • Verify whether the dispatcher configured has registered with the l

    Hi,
    How to verify whether the dispatcher configured has registered with the listener after the database startup?
    I think this task is possible with "lsnrctl services"
    bt dnt knw how to figure out.....
    plz let me know how to do this ..... how to verify whether the dispatcher configured...by looking at the below code segment. .....
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linux-tkuk.site)(PORT=15 21)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:89 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:972 state:ready
    DISPATCHER <machine: linux-tkuk, pid: 7417>
    (ADDRESS=(PROTOCOL=tcp)(HOST=linux-tkuk.site)(PORT=13729))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:89 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    LSNRCTL>

    "D000" established:0 refused:0 current:0 max:972 state:ready
    DISPATCHER <machine: linux-tkuk, pid: 7417>You have a dispatcher D000 registered with listener listening on PORT=13729

Maybe you are looking for