Variable Function Names

What I'm trying to do is add event listeners for each position up to the total of compPositions. This way, each one will have a dymanic function name. Right now, they all launch function "clicked1" but I can't figure out how to make it add numbers to the function name dynamically. Is there a different method I should be using to accomplish this goal?
Right now, compPosition = 5 so it should create 5 event listners, but I want them each to have their own function they exucute.
          var i;
          for (i = 1; i < compPositions +1; i++)
                    currentPos = "pos" + i;
                    this["pos" + i].addEventListener(MouseEvent.CLICK, clicked1)
Edit:
Actually, after thinking about it, I think this is a better approach, but I'm not sure how to pass over a variable using a click event.
            var i;
            for (i = 1; i < compPositions +1; i++)
                  var currentPos; //now it's private to this for loop
                  currentPos = "pos" + i;
                  this["pos" + i].addEventListener(MouseEvent.CLICK, posClicked)
In this version, I just need to pass over the currentPos variable to the function, but I'm not sure if that's possible.
Thanks,
Corey

Before solving, I would caution why you need them to have a unique function/unique function name. You should be able to have them all hit the same function and do different logic within depending on the target.
That aside, you could do something like this:
for (i = 1; i < compPositions +1; i++)
          currentPos = "pos" + i;
          this["pos" + i].addEventListener(MouseEvent.CLICK, this["clicked" + i])
However, you would have to manually define each function. Alternatively, you can use closures:
for (i = 1; i < compPositions +1; i++)
  currentPos = "pos" + i;
  this["pos" + i].addEventListener(MouseEvent.CLICK, getFunction(i))
function getFunction(i:int):Function
          return function(e:MouseEvent):void { trace("Clicked " + i); };
EDIT:
Using the closure method you could also pass the current pos if you needed to:
for (i = 1; i < compPositions +1; i++)
  currentPos = "pos" + i;
  this["pos" + i].addEventListener(MouseEvent.CLICK, getFunction(i, currentPos))
function getFunction(i:int, currentPos:String):Function
          return function(e:MouseEvent):void { trace("Clicked " + i + " currentPos = " + currentPos); };

Similar Messages

  • [JS CS3] Variable Function Name

    Hello everyone,
    Does anyone know if you can put a variable into a function name?
    Bellow is a function that I am working on to avoid using an if statement with 33 possiblilites. It does work but I get a "undefined is not an object error".
    function myFunction(){
    var myDoc = app.activeDocument;
    var myRootXMLElement = myDoc.xmlElements.item(0);
    var myData = myRootXMLElement.xmlElements.item("xyzTag");
    for (b = 2; b <= 34; b++){
    if(b = myData.contents){
    myNewFunction = "my"+b+"VariableFunction()";
    try{
    eval(myNewFunction);
    }catch(e){
    alert(e);
    Because this physically does what I intend it to do I believe this should work but I can't get past this error. Could someone please let me know if there is a way to make this error free?
    Regards,
    Brett

    Change this line:
    >if (b = myData.contents)
    to this:
    >if (b == myData.contents)
    and it probably works. It is possible to use variables and eval() to call functions. This script works ok:
    for (i = 0; i < 3; i++)
       f = 'my' + i + 'Func()'
       eval (f)
    function my0Func ()
       $.writeln ('this')
    function my1Func ()
       $.writeln ('that')
    function my2Func ()
       $.writeln ('and the other')
    Peter

  • Call a function with variable function name

    Hey guys,
    I have a func_table which maintains function names (each one makes reference to a dynamically generated stored function)
    I need to make a procedure that calls the functions in that table one by one using its name retrieved from SELECT func_name FROM func_table;
    Thanks

    929955 wrote:
    I have a func_table which maintains function names (each one makes reference to a dynamically generated stored function)
    I need to make a procedure that calls the functions in that table one by one using its name retrieved from SELECT func_name FROM func_table;Okay, first the bit where I, foaming at mouth and vigorously waving a well used lead pipe around, tell you that this is HIGHLY SUSPECT and likely a FLAWED DESIGN. That dynamic code is 99% of the time wrong. That dynamic code opens securities hole for code injection. That dynamic code often results in severe performance penalties as the coder is clueless about what the Oracle Shared Pool is about. And so on...
    As for a basic procedure template to do this - assuming all functions get the same parameter as input and that all functions returns the same data type:
    create or replace procedure FooBarFunctions( paramVal number ) is
      .. variables and types and cursor definitions..
    begin
      for c in (
        select function_name from my_fubar_functions order by function_order
      ) loop
          plsqlBlock := 'begin :result := '||c.function_name||'( param => :p ); end;';
          execute immediate plsqlBlock using out funcResult, in paramVal;
          .. do something with funcResult ..
      end loop;
      .. more code..
    end;
    {code}
    Looks not like a sensible approach though - and begs for justification as to why this approach is needed. What justification do you have?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using variable coulmn name in sql function

    Hi there,
    I am not an expert with PL/SQL and I can not figure out how to use variable column names in my function.
    My function is:
    CREATE OR REPLACE FUNCTION RESET_TRIGGERS(aTrigger VARCHAR2) RETURN NUMBER IS
    TEMP_ID NUMBER;
    TEMP_USER_ID NUMBER;
    BEGIN
    SELECT 'LIMS.'||'$aTrigger'||'.NEXTVAL' INTO TEMP_ID FROM DUAL;
    SELECT 'LIMS.'||'$aTrigger'||'_USER.NEXTVAL' INTO TEMP_USER_ID FROM DUAL;
    IF TEMP_ID > TEMP_USER_ID THEN
    LOOP
    SELECT LIMS.SQ_U_FINALRESULT_USER.NEXTVAL INTO TEMP_USER_ID FROM DUAL;
    EXIT WHEN TEMP_USER_ID = TEMP_ID;
    END LOOP;
    ELSE
    WHILE TEMP_ID < TEMP_USER_ID LOOP
    SELECT LIMS.SQ_U_FINALRESULT.NEXTVAL INTO TEMP_ID FROM DUAL;
    END LOOP;
    END IF;
    COMMIT;
    RETURN (TEMP_ID);
    END;
    What I want is that I pass a seqencename with aTrigger and that two triggers will be equal if not.
    eg ifaTrigger = 'SQ_U_FINALRESULT'
    than I want the triggers LIMS.SQ_U_FINALRESULT and LIMS.SQ_U_FINALRESULT_USER to be set equal.
    The above function will not work, but what will?????
    I hope you can help me out!
    Cheers

    A very strange function indeed.
    But here is what I think he meant to do:
    SQL> create procedure reset_sequences
      2  ( p_sequence_name in  varchar2
      3  , p_nextval          out number
      4  )
      5  is
      6    l_nextval1 number;
      7    l_nextval2 number
      8    ;
      9    procedure reset_sequence_value
    10    ( p_sequence_name in varchar2
    11    , p_current_value in number
    12    , p_new_value     in number
    13    )
    14    is
    15      l_dummy number;
    16    begin
    17      execute immediate 'alter sequence ' || p_sequence_name || ' increment by ' || to_char(p_new_value-p_current_value);
    18      execute immediate 'select ' || p_sequence_name || '.nextval from dual' into l_dummy;
    19      execute immediate 'alter sequence ' || p_sequence_name || ' increment by 1';
    20    end reset_sequence_value
    21    ;
    22  begin
    23    execute immediate
    24      'select ' || p_sequence_name || '.nextval,' || p_sequence_name || '_user.nextval from dual'
    25    into l_nextval1, l_nextval2
    26    ;
    27    if l_nextval1 < l_nextval2
    28    then
    29      reset_sequence_value(p_sequence_name,l_nextval1,l_nextval2);
    30    end if
    31    ;
    32    if l_nextval1 > l_nextval2
    33    then
    34      reset_sequence_value(p_sequence_name || '_user',l_nextval2,l_nextval1);
    35    end if
    36    ;
    37    p_nextval := greatest(l_nextval1,l_nextval2)
    38    ;
    39  end reset_sequences;
    40  /
    Procedure is aangemaakt.
    SQL> show err
    Er zijn geen fouten.
    SQL> create sequence testseq start with 5 increment by 1
      2  /
    Reeks is aangemaakt.
    SQL> create sequence testseq_user start with 2 increment by 1
      2  /
    Reeks is aangemaakt.
    SQL> declare
      2    l_new_value number;
      3  begin
      4    reset_sequences('testseq',l_new_value);
      5    dbms_output.put_line(l_new_value);
      6  end;
      7  /
    5
    PL/SQL-procedure is geslaagd.
    SQL> select testseq.currval from dual
      2  /
                                   CURRVAL
                                         5
    1 rij is geselecteerd.
    SQL> select testseq_user.currval from dual
      2  /
                                   CURRVAL
                                         5
    1 rij is geselecteerd.Regards,
    Rob.

  • Location of variable and function names in SWF bytecode?

    Ok, so I'm looking at the specification PDF for v10 of a SWF file.
    Here is a link to it: http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf
    I can't find anything in there about where or how a SWF stores variable and function names in the bytecode, though SWF decompilers can find them in any SWF file. So they must be in there somewhere.
    Can any one help me on this one?

    Hi check the varaibles by giving ur tech.name of report input parameter to the below program,
    RSRQ_QUERYDEFINITION
    it will all the query details. So you can find ur varaibles where it is used exactly.
    bhaskar

  • Module Function Name Resolution - Issues with DefaultCommandPrefix

    Just getting started on module development, running PS4, and I've run into an... inconsistency... that I'm trying to understand. I've got two test functions, Get-Something and Set-Something in a script module. In my manifest file I specify a DefaultCommandPrefix
    of 'Test'.
    My issue is the function name resolution doesn't result in an executable result if you leave PowerShell up to it's own process.
    To begin with I closed all sessions and deleted all files in the CommandAnalysis directory. After starting a session I waited for the CommandAnalysis cache to populate. Then I ran a series of test commands to illustrate how, most of the time, the function
    name PowerShell registers with tab completion can't be executed because it lacks the 'Test' prefix. Even worse, much of the time tab completion won't recognize the correct (i.e., with prefix) name of the function and honor tab completion for it.
    Having just learned of the CommandAnalysis cache I assumed I would see it change as PowerShell 'learned' more about the module because the name resolves differently over time. I've included three files at the end of this post, the module code (ModuleTest.psm1),
    the manifest (ModuleTest.psd1) and the capture of output to the PowerShell session (ModuleTest.txt). I've tried to include the times I used <tab> and <ret> for tab completion and execution as well as (comments in parenthesis for things I did like
    starting a new session and checking the CommandAnalysis cache for changes).
    An example is, when first starting a session typing 'get-som<tab>' will resolve to 'Get-Something' (prefix 'Test' missing) and typing 'get-test<tab>' won't resolve to 'Get-TestSomething'. Try to execute the 'Get-Something' from tab completion
    and you'll get the 'name not recognized, blah, blah'.
    Now if you type 'get-som<tab>' PowerShell will resolve to 'ModuleTest\Get-Something' - looks promising... but no.  Try to execute the 'ModuleTest\Get-Something' from tab completion and you'll still get the 'name not recognized, blah, blah'.
    Even though the same key strokes resolved differently there were no changes made to the CommandAnalysis cache so I'm lost on why it produces two different (though equally useless) results.
    Manually importing the module and sometimes running Get-Command -Module ModuleTest will make tab completion of the function names behave correctly. Is this a known issue with using DefaultCommandPrefix in script modules or is there something I need to include
    in the manifest to enforce strict name recognition (including the prefix)?
    <ModuleTest.psm1>
    function Get-Something
     Write-Host "Get-Something Executed"
    function Set-Something
     Write-Host "Set-Something Executed"
    <ModuleTest.psd1>
    # Script module or binary module file associated with this manifest
    ModuleToProcess = 'ModuleTest.psm1'
    # Version number of this module.
    ModuleVersion = '1.0.0.0'
    # ID used to uniquely identify this module
    GUID = '241877ff-64be-40c8-a603-8d5acf7a48d8'
    # Author of this module
    Author = 'wb3'
    # Company or vendor of this module
    CompanyName = ''
    # Copyright statement for this module
    Copyright = '(c) 2015. All rights reserved.'
    # Description of the functionality provided by this module
    Description = 'Module description'
    # Minimum version of the Windows PowerShell engine required by this module
    PowerShellVersion = '2.0'
    # Name of the Windows PowerShell host required by this module
    PowerShellHostName = ''
    # Minimum version of the Windows PowerShell host required by this module
    PowerShellHostVersion = ''
    # Minimum version of the .NET Framework required by this module
    DotNetFrameworkVersion = '2.0'
    # Minimum version of the common language runtime (CLR) required by this module
    CLRVersion = '2.0.50727'
    # Processor architecture (None, X86, Amd64, IA64) required by this module
    ProcessorArchitecture = 'None'
    # Modules that must be imported into the global environment prior to importing
    # this module
    RequiredModules = @()
    # Assemblies that must be loaded prior to importing this module
    RequiredAssemblies = @()
    # Script files (.ps1) that are run in the caller's environment prior to
    # importing this module
    ScriptsToProcess = @()
    # Type files (.ps1xml) to be loaded when importing this module
    TypesToProcess = @()
    # Format files (.ps1xml) to be loaded when importing this module
    FormatsToProcess = @()
    # Modules to import as nested modules of the module specified in
    # ModuleToProcess
    NestedModules = @()
    # Default command prefix
    DefaultCommandPrefix = 'Test'
    # Functions to export from this module
    FunctionsToExport = '*'
    # Cmdlets to export from this module
    CmdletsToExport = '*'
    # Variables to export from this module
    VariablesToExport = '*'
    # Aliases to export from this module
    AliasesToExport = '*'
    # List of all modules packaged with this module
    ModuleList = @()
    # List of all files packaged with this module
    FileList = @()
    # Private data to pass to the module specified in ModuleToProcess
    PrivateData = ''
    <ModuleTest.output>
    PS C:\Scripts\PowerShell> Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules' -Recurse<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    Mode                LastWriteTime     Length Name
    d----          3/5/2015   9:06 AM            ModuleTest
        Directory: C:\Program Files\WindowsPowerShell\Modules\ModuleTest
    Mode                LastWriteTime     Length Name
    -a---          3/5/2015   8:50 AM       2907 ModuleTest.psd1
    -a---          3/5/2015   9:01 AM        140 ModuleTest.psm1
    PS C:\Scripts\PowerShell> Get-Module -ListAvailable<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    ModuleType Version    Name                                ExportedCommands
    Script     1.0.0.0    ModuleTest                          {Get-Something, Set-Something}
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> Get-Something<ret>
    Get-Something : The term 'Get-Something' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Get-Something
    + ~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> ModuleTest\Get-Something<ret>
    ModuleTest\Get-Something : The term 'ModuleTest\Get-Something' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
    correct and try again.
    At line:1 char:1
    + ModuleTest\Get-Something
    + ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (ModuleTest\Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Import-Module ModuleTest<ret>
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Get-Command -Module ModuleTest<ret>
    CommandType     Name                                              
    ModuleName
    Function        Get-TestSomething                                 
    ModuleTest
    Function        Set-TestSomething                                 
    ModuleTest
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    PS C:\Scripts\PowerShell> moduletest\get<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    William Busby, PMP

    Hi William,
    yes, that's something you'll either have to do the hard way or live with admin confusion.
    If you're using Sapien's PowerShell Studio as an Editor (hint: Usually a great idea), you can very easily rename a function, even in a multi-file module project, by rightcklicking on the function-name and selecting "rename".
    Alternatively you can do a bulk rename with Powershell:
    Get all functions in your module (Load it and check exportedcommands)
    loop over each function-name
    calculate new name
    search your entire project for all references and replace them.
    Let me see ...
    function Rename-ModulePrefix
    [CmdletBinding()]
    Param (
    [Parameter(Position = 0, Mandatory = $true)]
    [string]
    $ModuleName,
    [Parameter(Position = 1, Mandatory = $true)]
    [string]
    $OldPrefix,
    [Parameter(Position = 2, Mandatory = $true)]
    [string]
    $NewPrefix,
    [Parameter(Position = 3)]
    [string]
    $Path
    # Catch all typos
    Import-Module $ModuleName -ErrorAction 'Stop'
    # Get root path if not manually passed
    if (-not $PSBoundParameters["Path"])
    $Path = (Get-Module $ModuleName).Path
    # Get module files
    $Files = Get-ChildItem -Path $path -Recurse -Include "*.ps1", "*.psm1", "*.psd1"
    # Iterate over each file
    foreach ($file in $Files)
    # Null variable in case you get an empty file somewhere and run this from Win 7
    $data = $null
    # Get Content of file
    $data = Get-Content $file
    # Replace strings
    foreach ($c in (Get-Module $ModuleName).ExportedCommands)
    $newName = $c.Name -replace $OldPrefix, $NewPrefix
    $data = $data | ForEach-Object { $_ -replace $c.Name, $newName }
    # Write back to file
    $data | Set-Content $file
    While I didn't proof it, in theory this should do it (Make a backup before running it :) ).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How to get current function name?

    Hello, everyone!
    I want to get the current function name for debug purpose. I simply want to dump out current class name, function name (and better line number) of current executing statement. For example, I can embed my debugger inside my source codes if I can get the current function name as the following,
    <code>
    class foo
    void function goo()
    //operations
    myDebugger (getCurrentFunctionName(), informationString)
    </code>
    Then my debugger will have richer information which indicates in which function information is dumped. Have I made myself understood? If Java does not have such apporach to get current function name automatically, I have to define a function local variable which contains function name manually in each function I want to debug. And pass the variable to my debugger which seems rather silly.
    Can anyone help?
    Thanks in advance,
    George

    To elaborate a little: be sure to read the API on getStackTrace: because of JVM optimization
    there may be missing stack trace info, so look before you leap:
    public class Client {
        public static void main(String[] args) {
            f();
        static void f() {
            Debugger.log("testing");
    class Debugger {
        public static void log(String msg) {
            StackTraceElement[] trace = new Throwable().getStackTrace();
            if (trace.length >= 1) {
                StackTraceElement elt = trace[1];
                System.out.println(elt.getFileName() + ": " + elt.getClassName() + "." +
                    elt.getMethodName() + "(line " + elt.getLineNumber() + "): " + msg);
            } else
                System.out.println("[UNKNOWN CALLER]: " + msg);
    }

  • Error- Unexpected Signal : 11 and Function name=pthread_key_delete

    Really hoping that someone might be able to help us with this problem.
    We use Apache with a Tomcat, RedHat 7.2, JDK 1.3.1_02 and a postgreSQL database.
    Thanks in advance for any help.
    We have run a deamon on our system and sometimes we get a unexpected exception like this:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x40025bc6
    Function name=pthread_key_delete
    Library=/lib/i686/libpthread.so.0
    Cannot obtain thread information
    Dynamic libraries:
    08048000-0804c000 r-xp 00000000 68:01 181728 /usr/java/jdk1.3.1_02/bin/i386/native_threads/java
    0804c000-0804d000 rw-p 00003000 68:01 181728 /usr/java/jdk1.3.1_02/bin/i386/native_threads/java
    40000000-40016000 r-xp 00000000 68:01 508012 /lib/ld-2.2.4.so
    40016000-40017000 rw-p 00015000 68:01 508012 /lib/ld-2.2.4.so
    40018000-40019000 r--p 00000000 68:01 491538 /usr/lib/locale/en_US/LC_IDENTIFICATION
    40019000-4001a000 r--p 00000000 68:01 49508 /usr/lib/locale/en_US/LC_MEASUREMENT
    4001a000-4001b000 r--p 00000000 68:01 393306 /usr/lib/locale/en_US/LC_TELEPHONE
    4001b000-4001c000 r--p 00000000 68:01 393863 /usr/lib/locale/en_US/LC_ADDRESS
    4001c000-40029000 r-xp 00000000 68:01 131197 /lib/i686/libpthread-0.9.so
    40029000-40031000 rw-p 0000c000 68:01 131197 /lib/i686/libpthread-0.9.so
    40031000-4003a000 r-xp 00000000 68:01 378355 /usr/java/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
    4003a000-4003b000 rw-p 00008000 68:01 378355 /usr/java/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
    4003b000-4022b000 r-xp 00000000 68:01 115881 /usr/java/jdk1.3.1_02/jre/lib/i386/client/libjvm.so
    4022b000-40329000 rw-p 001ef000 68:01 115881 /usr/java/jdk1.3.1_02/jre/lib/i386/client/libjvm.so
    40340000-40343000 r-xp 00000000 68:01 508037 /lib/libdl-2.2.4.so
    40343000-40344000 rw-p 00002000 68:01 508037 /lib/libdl-2.2.4.so
    40344000-40476000 r-xp 00000000 68:01 132807 /lib/i686/libc-2.2.4.so
    40476000-4047c000 rw-p 00131000 68:01 132807 /lib/i686/libc-2.2.4.so
    40481000-40494000 r-xp 00000000 68:01 508042 /lib/libnsl-2.2.4.so
    40494000-40495000 rw-p 00012000 68:01 508042 /lib/libnsl-2.2.4.so
    40497000-404b9000 r-xp 00000000 68:01 131195 /lib/i686/libm-2.2.4.so
    404b9000-404ba000 rw-p 00021000 68:01 131195 /lib/i686/libm-2.2.4.so
    404ba000-404ee000 r-xp 00000000 68:01 295089 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    404ee000-404fa000 rw-p 00033000 68:01 295089 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    404fc000-4050d000 r-xp 00000000 68:01 115900 /usr/java/jdk1.3.1_02/jre/lib/i386/libverify.so
    4050d000-4050f000 rw-p 00010000 68:01 115900 /usr/java/jdk1.3.1_02/jre/lib/i386/libverify.so
    4050f000-40530000 r-xp 00000000 68:01 115891 /usr/java/jdk1.3.1_02/jre/lib/i386/libjava.so
    40530000-40532000 rw-p 00020000 68:01 115891 /usr/java/jdk1.3.1_02/jre/lib/i386/libjava.so
    40533000-40547000 r-xp 00000000 68:01 115901 /usr/java/jdk1.3.1_02/jre/lib/i386/libzip.so
    40547000-4054a000 rw-p 00013000 68:01 115901 /usr/java/jdk1.3.1_02/jre/lib/i386/libzip.so
    4054a000-4127b000 r--s 00000000 68:01 279835 /usr/java/jdk1.3.1_02/jre/lib/rt.jar
    412a8000-4154d000 r--s 00000000 68:01 279826 /usr/java/jdk1.3.1_02/jre/lib/i18n.jar
    4154d000-41563000 r--s 00000000 68:01 279836 /usr/java/jdk1.3.1_02/jre/lib/sunrsasign.jar
    4360b000-4360c000 r--p 00000000 68:01 393862 /usr/lib/locale/en_US/LC_NAME
    4360c000-4360d000 r--p 00000000 68:01 475291 /usr/lib/locale/en_US/LC_PAPER
    4360d000-4360e000 r--p 00000000 68:01 131181 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    4360e000-4360f000 r--p 00000000 68:01 49292 /usr/lib/locale/en_US/LC_MONETARY
    4360f000-43610000 r--p 00000000 68:01 491850 /usr/lib/locale/en_US/LC_TIME
    49c6f000-49c75000 r--p 00000000 68:01 327799 /usr/lib/locale/en_US/LC_COLLATE
    49c75000-49c76000 r--p 00000000 68:01 458866 /usr/lib/locale/en_US/LC_NUMERIC
    49c76000-49ca1000 r--p 00000000 68:01 458876 /usr/lib/locale/en_US/LC_CTYPE
    49ca1000-49ca5000 r--s 00000000 68:01 182059 /usr/java/jdk1.3.1_02/jre/lib/ext/pop3.jar
    49ca5000-49caf000 r-xp 00000000 68:01 508058 /lib/libnss_files-2.2.4.so
    49caf000-49cb0000 rw-p 00009000 68:01 508058 /lib/libnss_files-2.2.4.so
    4a51c000-4a528000 r--s 00000000 68:01 182050 /usr/java/jdk1.3.1_02/jre/lib/ext/activation.jar
    4a528000-4a59f000 r--s 00000000 68:01 182051 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix32.jar
    4a59f000-4a5b9000 r--s 00000000 68:01 182052 /usr/java/jdk1.3.1_02/jre/lib/ext/imap.jar
    4a5b9000-4a6af000 r--s 00000000 68:01 180385 /usr/java/jdk1.3.1_02/jre/lib/ext/libereco.jar
    4a6af000-4a6f4000 r--s 00000000 68:01 182054 /usr/java/jdk1.3.1_02/jre/lib/ext/mail.jar
    4a6f4000-4a71a000 r--s 00000000 68:01 182055 /usr/java/jdk1.3.1_02/jre/lib/ext/mailapi.jar
    4a71a000-4a735000 r--s 00000000 68:01 182056 /usr/java/jdk1.3.1_02/jre/lib/ext/mm.mysql-2.0.4-bin.jar
    4a735000-4a77b000 r--s 00000000 68:01 180387 /usr/java/jdk1.3.1_02/jre/lib/ext/utils.jar
    4a77b000-4a788000 r--s 00000000 68:01 182058 /usr/java/jdk1.3.1_02/jre/lib/ext/mxlookup.jar
    4a788000-4a7c2000 r--s 00000000 68:01 182061 /usr/java/jdk1.3.1_02/jre/lib/ext/sapdbc-7.3.0.18.jar
    4a7c2000-4a7cc000 r--s 00000000 68:01 182062 /usr/java/jdk1.3.1_02/jre/lib/ext/servlet.jar
    4a7cc000-4a7cf000 r--s 00000000 68:01 182063 /usr/java/jdk1.3.1_02/jre/lib/ext/smtp.jar
    4a7cf000-4a844000 r--s 00000000 68:01 180226 /usr/java/jdk1.3.1_02/jre/lib/ext/iText.jar
    4a844000-4a846000 r--s 00000000 68:01 180378 /usr/java/jdk1.3.1_02/jre/lib/ext/jcert.jar
    4a846000-4a847000 r--s 00000000 68:01 180380 /usr/java/jdk1.3.1_02/jre/lib/ext/jnet.jar
    4a847000-4a8b9000 r--s 00000000 68:01 180381 /usr/java/jdk1.3.1_02/jre/lib/ext/jsse.jar
    4a8b9000-4a8cc000 r--s 00000000 68:01 180379 /usr/java/jdk1.3.1_02/jre/lib/ext/jce1_2_2.jar
    4a8cc000-4a8e6000 r--s 00000000 68:01 180227 /usr/java/jdk1.3.1_02/jre/lib/ext/jdom.jar
    4a8e6000-4aa9b000 r--s 00000000 68:01 180376 /usr/java/jdk1.3.1_02/jre/lib/ext/xerces.jar
    4aa9b000-4ab4c000 r--s 00000000 68:01 180375 /usr/java/jdk1.3.1_02/jre/lib/ext/xalan.jar
    4ab4c000-4ab4d000 r--s 00000000 68:01 180386 /usr/java/jdk1.3.1_02/jre/lib/ext/local_policy.jar
    4ab4d000-4ab6e000 r--s 00000000 68:01 180389 /usr/java/jdk1.3.1_02/jre/lib/ext/sunjce_provider.jar
    4ab6e000-4ab6f000 r--s 00000000 68:01 180391 /usr/java/jdk1.3.1_02/jre/lib/ext/US_export_policy.jar
    4ab6f000-4ab99000 r--s 00000000 68:01 180377 /usr/java/jdk1.3.1_02/jre/lib/ext/pg73jdbc2ee.jar
    4ab99000-4ac71000 r--s 00000000 68:01 182573 /usr/java/jdk1.3.1_02/jre/lib/ext/xercesImpl.jar
    4ac71000-4ac86000 r--s 00000000 68:01 182574 /usr/java/jdk1.3.1_02/jre/lib/ext/xmlParserAPIs.jar
    4ac86000-4ac88000 r--s 00000000 68:01 182575 /usr/java/jdk1.3.1_02/jre/lib/ext/javaxml2.jar
    4ac88000-4ac8a000 r--s 00000000 68:01 182576 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxm-api.jar
    4ac8a000-4ac92000 r--s 00000000 68:01 182577 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxr-api.jar
    4ac92000-4acdc000 r--s 00000000 68:01 182578 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxr-apidoc.jar
    4acdc000-4adc0000 r--s 00000000 68:01 182579 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxr-ri.jar
    4adc0000-4adc8000 r--s 00000000 68:01 182580 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxrpc-api.jar
    4adc8000-4aee8000 r--s 00000000 68:01 182581 /usr/java/jdk1.3.1_02/jre/lib/ext/jaxrpc-ri.jar
    4aee8000-4aef1000 r--s 00000000 68:01 180392 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-jce-api.jar
    4aef1000-4aef7000 r--s 00000000 68:01 180393 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-jce-compat.jar
    4aef7000-4af38000 r--s 00000000 68:01 182582 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-jce-provider.jar
    4af38000-4af54000 r--s 00000000 68:01 182583 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-jce-tests.jar
    4af54000-4af58000 r--s 00000000 68:01 182584 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-message-api.jar
    4af58000-4af93000 r--s 00000000 68:01 182585 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-openpgp-provider.jar
    4af93000-4af98000 r--s 00000000 68:01 182586 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix-pki-api.jar
    4af98000-4af9c000 r--s 00000000 68:01 182587 /usr/java/jdk1.3.1_02/jre/lib/ext/certpath-api-compat.jar
    4af9c000-4afa5000 r--s 00000000 68:01 182588 /usr/java/jdk1.3.1_02/jre/lib/ext/ftp.jar
    4afa5000-4afc8000 r--s 00000000 68:01 180382 /usr/java/jdk1.3.1_02/jre/lib/ext/cryptix32-pgp.jar
    4afc8000-4afce000 r--s 00000000 68:01 182566 /usr/java/jdk1.3.1_02/jre/lib/ext/PagoStatusChangeHandler.class
    4afce000-4afd1000 r--s 00000000 68:01 182567 /usr/java/jdk1.3.1_02/jre/lib/ext/WhiteLabelStatusChange.class
    4afd1000-4afd4000 r--s 00000000 68:01 182568 /usr/java/jdk1.3.1_02/jre/lib/ext/WhiteLabelRefund.class
    4afd4000-4afe0000 r--s 00000000 68:01 182569 /usr/java/jdk1.3.1_02/jre/lib/ext/RegistrationForm.class
    4afe0000-4afe3000 r--s 00000000 68:01 182570 /usr/java/jdk1.3.1_02/jre/lib/ext/CancelViaPost.class
    4afe3000-4afe7000 r--s 00000000 68:01 182571 /usr/java/jdk1.3.1_02/jre/lib/ext/CancellationForm.class
    4afe7000-4afec000 r--s 00000000 68:01 182572 /usr/java/jdk1.3.1_02/jre/lib/ext/ArticleForm.class
    4afec000-4aff5000 r-xp 00000000 68:01 115898 /usr/java/jdk1.3.1_02/jre/lib/i386/libnet.so
    4aff5000-4aff6000 rw-p 00008000 68:01 115898 /usr/java/jdk1.3.1_02/jre/lib/i386/libnet.so

    In pthreads, the threading model that must be used in your system, thread local variables need to be implemented, and it appears as though during deallocation of this thread specific data is where it's dying. That said, I would attempt upgrading your pthread libraries, appearing as though there is nothing in Java that is going wrong. That doesn't mean unfortunately that this is the source of wrongdoing, but it couldn't hurt to eliminate.
    I know there is libpthread-0.10.so out there, so there should be /some/ update to it. Reply if you need specifics.

  • How to get a called procedure/function name within package?

    Hi folks,
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    For example:
    CREATE OR REPLACE PACKAGE BODY "TEST_PACKAGE" IS
       PROCEDURE proc_1 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
       PROCEDURE proc_2 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          proc_1;
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
    END; I would like to replace "???????" with a function which would return a name of called procedure, so result of trace data after calling TEST_PACKAGE.proc_2 would be:
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_2*
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_2*I tried to use "dbms_utility.format_call_stack" but it did not return the name of procedure/function.
    Many thanks,
    Tomas
    PS: I don't want to use an hardcoding

    You've posted enough to know that you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    >
    I usually use this method
    1. Create a SQL type for logging information
    2. Put the package name into a constant in the package spec
    3. Add a line to each procedure/function for the name.
    Sample package spec
          * Constants and package variables
              gc_pk_name               CONSTANT VARCHAR2(30) := 'PK_TEST';Sample procedure code in package
          PROCEDURE P_TEST_INIT
          IS
            c_proc_name CONSTANT VARCHAR2(80)  := 'P_TEST_INIT';
            v_log_info  TYPE_LOG_INFO := TYPE_LOG_INFO(gc_pk_name, c_proc_name); -- create the log type instance
          BEGIN
              NULL; -- code goes here
          EXCEPTION
          WHEN ??? THEN
              v_log_info.log_code := SQLCODE;  -- add info to the log type
              v_log_info.log_message := SQLERRM;
              v_log_info.log_time    := SYSDATE;
              pk_log.p_log_error(v_log_info);
                                    raise;
          END P_PK_TEST_INIT;Sample SQL type
    DROP TYPE TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE TYPE_LOG_INFO AUTHID DEFINER AS OBJECT (
    *  NAME:      TYPE_LOG_INFO
    *  PURPOSE:   Holds info used by PK_LOG package to log errors.
    *             Using a TYPE instance keeps the procedures and functions
    *             independent of the logging mechanism.
    *             If new logging features are needed a SUB TYPE can be derived
    *             from this base type to add the new functionality without
    *             breaking any existing code.
    *  REVISIONS:
    *  Ver        Date        Author           Description
    *   1.00      mm/dd/yyyy  me               Initial Version.
        PACKAGE_NAME  VARCHAR2(80),
        PROC_NAME     VARCHAR2(80),
        STEP_NUMBER   NUMBER,
        LOG_LEVEL   VARCHAR2(10),
        LOG_CODE    NUMBER,
        LOG_MESSAGE VARCHAR2(1024),
        LOG_TIME    TIMESTAMP,
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
                    RETURN SELF AS RESULT
      ) NOT FINAL;
    DROP TYPE BODY TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE BODY TYPE_LOG_INFO IS
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
         RETURN SELF AS RESULT IS
        BEGIN
          self.package_name  := p_package_name;
          self.proc_name     := p_proc_name;
          self.step_number   := p_step_number;
          self.LOG_level   := p_LOG_level;
          self.LOG_code    := p_LOG_code;
          self.LOG_message := p_LOG_message;
          self.LOG_time    := p_LOG_time;
          RETURN;
        END;
    END;
    SHO ERREdited by: rp0428 on Jan 11, 2013 10:35 AM after 1st cup of coffee ;)

  • DLL Adapter: Change function name & params without unloading the DLL

    Hi,
    I'm using teststand adapters API to dynamically build a DLL call step. Each dll function is called thru this "DLL Manager" sub-sequence. 
    Tried 2 methods (here is an abstract of the code): 
    1. ActiveX steps: 
    CommonCModule.ModulePath = myDllpath
    CommonCModule.FunctionName = myFunction  (note: this call unload the previously loaded DLL)
    Module -> LoadPrototype
    for( to set params)
    2. Statement steps: 
    RunState.Sequence.Main["Call DLL function"].TS.SData.Call.LibPath = myDllpath
    RunState.Sequence.Main["Call DLL function"].TS.SData.Call.Func = myFunction (note: this one not, but the info seems to not be updated => The new function is not called properly)
    Module -> LoadPrototype
    for( to set params)
    The two methods don't have exactly the same behavior, but work well for the 1st function that I call or work well if I unload the dll after step execute. 
    However, is there a way to use these steps (or others) to setup the step, but without unloading the DLL between each call. In my test sequence, I have to OpenConnection with the UUT before launching my commands, so the dll must not be unloaded to keep the connection opened... 
    e.g. 
    1) OpenConnection()  => This function keeps the communication handle with the device
    2) myCommand1()
    3) myCommand2()
    4) CloseConnection()
    Thank you for help
    C.
    Solved!
    Go to Solution.

    Hi all, 
    To recap:
    I'm looking for a method to dynamically loads and executes C/C++ DLL functions without unloading the DLL between each call. I already have a DLL manager that dynamically loads and executes dll functions, but it unloads the DLL between each call even if I set the unload option to: "Unload when sequence file is unloaded"...
    The problem is: 
    When I change the name of the function to execute (using the CommonCModule.FunctionName property), teststand automatically unloads the DLL before applying the change. Therefore, I can't open a connection handle with my UUT using one function and sends my commands with the others...
    To help you with the understanding of my issue:
    I created a simple example that will let you experiment the problem that I try to describ... You will notify that TestStand unloads the dll even if I don't request it... 
    1) download the attached zip file
    2) extract it anywhere
    3) open sequence file "dll_called_dynamically.seq"
    4) read comment of the first step of the sequence
    >> To analyse the case:
    >> 1) Break and run the sequence using step-by-step (use F10)
    >> 2) Run one iteration of the loop to execute the dll once, ,
    >> 3) Execute launch_listdlls.bat and verify in the outputfile.txt that the dll has been loaded (search for testlib.txt)
    >> 4) Then, step over the step "Set Dll Function Name to call"
    >> 5) Execute launch_listdlls.bat and you will notify that the dll has been unloaded... ...
    The testlib.dll file provided in the zip file is a basic dll that I used to confirm my test engine. Mainly, it only performs additions on the variables passed as argument to the dll. 
    The provided batch file executes the free application ListDlls.exe and create an outputfile.txt listing all currently loaded dll.
    Please note that I use TestStand 2013
    Thank you very much for your help,
    C.
    Attachments:
    dll_unexpected_unload_ex.zip ‏313 KB

  • Link options to hide function names

    We are looking for a better way to keep function names hidden in our executable. Strip is still leaving names we'd like to remove and using -Beliminate seems to remove everything including environment variable names we are passing from the shell, breaking Tcl scripts we use in conjunction with the app. Is there a way to tell the linker to strip functions and allow exported vars?
    Thanks!

    You can have fewer global symbols in the executable by restricting their scope. Refer to the C++ Users Guide, chapter 4, under Linker Scoping. You can get the same effect with a linker map file, but the source code extensions are usually more convenient.

  • User Function Name wrong resultset in Oracle Apps Query

    Hi,
    I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.
    select distinct frv.menu_id, frv.responsibility_id, frv.responsibility_name, fff.function_name, ffft.user_function_name
    from
    fnd_responsibility_vl frv,
    fnd_responsibility frp,
    fnd_form_functions fff,
    fnd_form_functions_tl ffft,
    fnd_resp_functions resp,
    fnd_menu_entries mnu,
    fnd_menus fmn
    where
    fff.function_id = ffft.function_id
    and mnu.menu_id=frp.menu_id
    and mnu.menu_id=fmn.menu_id
    and frv.responsibility_id=resp.responsibility_id
    and mnu.function_id=ffft.function_id
    and resp.rule_type='M'
    and frv.menu_id in (select me.menu_id
    from fnd_menu_entries me
    start with me.function_id = fff.function_id
    connect by prior me.menu_id = me.sub_menu_id )
    and (frv.responsibility_name like '%Order%')
    order by 1
    Kindly any help will be helpful for me

    What is your application release?
    I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.Please try the queries in these docs.
    Script To Extract Submenu And Function Information About A Menu [ID 458701.1]
    HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
    Thanks,
    Hussein

  • Print message in function name not present

    I have to execute a function from a table . It is like
    cursor c1 is select fun_name from config_Table loop
    v_format_sql := 'select '||c1.fun_name|| ' from dual ';
    execute immediate v_format_sql into format_count;
    end loop;
    But if the function in the config_Table is not there or the function name is wrong it exits from the program
    Please help me to print the text "function name wrong" if the function name does not exists in the database.

    Hi,
    You can do it like this:
    SELECT COUNT(*) INTO v_func_count FROM user_objects
    WHERE OBJECT_TYPE='FUNCTION' AND STATUS='VALID'
    AND object_name = TO_UPPER(c1.fun_name);
    IF v_func_count = 0 THEN
    -- Function does not exist or not in valid state.
    END IF;
    Regards

  • I'm getting a "The procedure entrypoint ssSr192x__​ssSr192drv​ssSrReset could no be located in the dynamic link library ssSR192x.d​ll" because the ActiveX instrument driver DLL doesn't have the function names in the export table.

    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project?
    Thanks much.
    I'm confused on how CVI uses ActiveX components and hope someone can help.
    I'm using an ActiveX driver from an instrument manufacturer and I use the .TLB to generate a .fp, .c, and .h file. If I register the .dll and load the .fp in my project, all is well. Unfortunately in my application the functions to control this instrument are in another DLL whose .lib I include in my CVI projec
    t. Running the CVI project this way gives me "The procedure entrypoint ssSr192x__ssSr192drvssSrReset could no be located in the dynamic link library ssSR192x.dll" because the instrument function names aren't in the export table in the instrument DLL. Non-ActiveX DLLs have the export tables so everything works for them.
    Program structure with non-ActiveX DLLs:
    CVI project (.exe with common.lib in project list)
    |
    V
    Common DLL (MeasDMM() with hp1234.lib in project list)
    |
    V
    Instrument DLL (hp1234_measure())
    Since I get a .c and .h file from the .TLB, I've tried recompiling the DLL (.dll and .lib produced) and the functions seem to work, but I get "Class not registered" errors unless I play games with the registry so I'm obviously violating numerous Microsoft rules!
    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project? Thanks much.
    Jeff Fish
    Advisory Test Engineer
    StorageTek

    Hello Jeff,
    Where were your getting the .lib file for the ActiveX DLL? Did you use the "hp1234"
    ActiveX driver generated by the "Create ActiveX Automation Controller" CVI Tool to build a static library? If you open an include file and choose Options >> Generate DLL..., it will generate source code or a static import library to load the specified DLL and load functions specified in the include file (this only works if the functions are exported from a DLL). However, in the case of our ActiveX Automation Controllers, ActiveX calls are used to access a DLL. This means that you do not need an import library. You should be able to open the "hp1234" source file and click Options >> Create Object File. Simply #include "hp1234.h" and add "hp1234.obj" to your Common DLL project;
    the .fp file is not necessary. If this does not answer your questions or if you experience further difficulty, please post further details on what you are doing and the errors that are being encountered ("play games with the registry" and "recompiling 'the' DLL" are a bit vague in this case).
    Jeremiah
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Using a variable to name a window?

    Is it possible to use a user-defined variable to name a
    window? I'm hoping to set up a "template" system of sorts for a
    family of products, all of which are very similar. I'd just like to
    name the window accordingly to the product name via a variable if
    possible.

    Hi there
    If this is a feature you feel would be a valuable addition to
    those offered by RoboHelp, consider telling the Adobe RoboHelp
    Development team about it. You may do that by
    clicking
    here and completing the form.
    Cheers... Rick

Maybe you are looking for

  • Getting information from PC external hard drive to Mac external hard drive

    I am a photographer and have recently made the switch from PC to Mac to be able to work better and also to use the programs I like to use in full-functionality. However my only issue right now is that I have Past work that is complete and saved onto

  • Lost IP address

    Today for the first time ever my MBP lost internet connection. I thought it was the modem or the router so I restarted both. I've had to do this before no big deal. After everything restarted I checked the network settings and it won't connect. Diggi

  • Web auth supporting fragmented SSL&TLS packets in 7.0.116?

    Dear collegues and Cisco experts. I hope anyone of you can reply if this is supported on thew current platform (WLC5508 sw rel 7.0.116) I have not been able to reproduce this myself, but some problems have been reported after mid january, when KB2585

  • Nanos won't update or restore

    Hello all, I'm new to the forums and fairly new to apple products. I have never really been a big fan of apple just because, and itunes and the nano are now giving me a good reason. I have several gripes about overall itunes functionality, but thats

  • Optimize partly over exposed mp4 files.

    I want to optimize my partly over exposed mp4 files. no experience with FCPX or any other editor. what steps do i tkae after importing the file?