How do I programmatically display the specify module dialog?

I am writing a C++ class that programmatically adds steps to a sequence file. The steps are ActiveX Automation types, making calls to properties and methods on a COM server.
I have been successful in creating a step, filling in the TS.SDATA.CALL parameters and adding it to the main sequence. When I open the sequence in the TS sequence editor and bring up the specify module dialog, all of the dialog fields fill out properly.
However, I've recently been wanting to bring up the specify module dialog programmatically. I have a smart pointer to the step object ( TS:tepPtr ) and tried calling spStep->SpecifyModule(0). This hangs the app, which leaves me scratching my head wondering what TS is objecting to. Rememb
er I can then go to the TS sequence editor and successful bring up the specify module dialog on the very same step.
I pretty sure the window handle I've passed to the engine is valid. I can successfully display the engine options dialog programmatically.
Any idea? Do I have to call some setup function before calling Step:pecifyModule( long specModOptions )?
Thank you much.
Aaron

Hello Aaron -
The short answer to your question is 'no you should not need any special configuration commands before calling Step:pecifyModule( ). Once you have a valid step object you should be able to call the method. However it is worth mentioning that the function help for SpecifyModule points out that there are different restrictions on each type of step as far as what options are available. For TestStand 2.0.1 for example, the ActiveX Automation Adapter steptype will make no use of the options set, so setting it to 0 is ideal. Other issues with using this method may be the result of working with an active sequence. Are you adding steps to a new file on your harddrive? Or are you working with a sequence already loaded into TestStand? Asking to 'specify module'
of a step already loaded for execution can result in some different behavior, most commonly a 'user-defined' error code of '0'. Checking to see that you are doing this, or if you have any file references (via Get SequenceFile ) that are not closed (with Release SequenceFile) before discarding the object handle they may also be a source of your hang-behavior.
To have a better idea of what is happening on your system I would need more information about your version of TestStand and also about how you are creating your sequence but any other information about the error would be helpful in troubleshooting further.
Regards,
Elaine R.
National Instruments
http://www.ni.com/ask

Similar Messages

  • Programatically Launching the Specify Module Dialog

    I am calling some ActiveX modules written in VB6 from TestStand 3.1. I am developing a user interface (UI) in VB6 that reads the specific instruments I have installed on my station (from StationGlobals) and allows the application developer select which instrument to configure. I have worked out how to read the type library for these modules and to programatically set the TestStand hidden properties for Server, coClass and Interface ID's. What I'd really like to do now is to call the ActiveX specify module dialog from within the VB6 UI so that the application developer can select the applicable methods/properties and parameters.
    Does anyone know if this is possible (e.g. in a method similar to the way the expression browser can be programatically launched using the TS Engine.DisplayBrowseExprDialogEx method)?
    Thanks,
    David

    Thanks Allen.
    Yes - that did just the trick. I found that I was able to obtain a reference to my current step using the sequence class's GetStepByUniqueId method, and passing the step's TS.ID property. I was then able to call the specify module method, which displayed the specify module dialog for this step. For anyone interested, code similar to that below worked for me in VB6.
    Dim objSeqContextPO As PropertyObject 'reference to TS SeqContext property object
    Dim objSeqContextSequence As Sequence 'reference to TS SeqContext Sequence
    Dim objTSStep As TS.Step 'reference to TS step
    Set objSeqContextPO = SeqContext.AsPropertyObject()
    Set objSeqContextSequence = SeqContext.Sequence
    'Obtain a step reference and call the Specify module box
    Set objTSStep = objSeqContextSequence.GetStepByUniqueId(objSeqContextPO.Step.TS.Id)
    If Not objTSStep.SpecifyModule(0) Then
    'log an error
    End If
    Thanks again for your help.
    David

  • The operation could not be completed. The specified module

    Microsoft Visual Studio
    The operation could not be completed. The specified module could not be found.
    OK
    i get teh above erro r msg when i am trying to open the crystal report rpt file in design mode
    i tried taking a new crysttal report but that too gives me same error msg

    Does it say what dll/module it can't find? Check the Application log for more info.
    What happens if you create a new report? What happens if you open an old report?
    Have you install any VS 2005 CR patches?
    Try one of these samples:
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Thank you
    Don

  • Error messages:  "itunesobjspl/jenetsvc.dll The specified module could not be found."  And Error -2032  "Quicktime failed to initialize."

    I initially got the Error -2032 message after downloading the newest version of itunes.  I read a geek blog that said to uninstall Quicktime and I did that a bunch of times.  I also uninstalled and reinstalled itunes repeatedly.  None of this works.  I noticed that the apple website said the requirements for the new quicktime/itunes download included an intel processor and I have a celeron processor, so I wondered if that was the problem, although everything has been running fine up until now, so I don't know.  It also doesn't address the missing .dll file, but I may have accidentally deleted that because I went into the registry to try and unload some Quicktime files when I uninstalled Quicktime.  I did this at the suggestion of the blog, but I may have screwed it up.  Now I need to repair the missing .dll and still try to get itunes running

     ErikEJ wrote:
    Have you set your solution target to "Any CPU" ?? If so, set to "x86", as SQL Compact only runs in WoW mode on x64. Or use corflags.exe /32BIT+ against your project output (.exe file).
     ErikEJ wrote:
    Look at this blog post for a walk-through: http://erikej.blogspot.com/2008/01/x64-and-sql-compact.html
    Hello everyone,
    I have the same problem as mentioned above "Unable to load DLL 'elev.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ", when trying to load the dll file into a window application.  I developed a window application in VS2005 and want to import a dll file from another program into my project and use it.  But when I try to call one of the function in the dll file, I got the error message "Unable to load dll 'elev.dll".  I try all options that say it works to solve this problem, but somehow it doesn't work for me. I put the "elev.dll" file in the bin folder and use P/Invoke to import the dll file into my project.  Can anyone help me out with this?  thanks and really appreciated!
     Here is how I import the dll:
    [DllImport(@"D:\elev.dll")]
    //[DllImport("emap.dll", SetLastError = true)]
    private static extern void EMA_Init();
    and in the code,  I call the function above but failed to load the dll file
    EMA_Init();

  • Installing SQL 2012 SP2 - The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    I am trying to install the SQL 2012 SP2 in one of the servers. I am getting the error as :
    TITLE: SQL Server Setup failure.
    SQL Server Setup has encountered the following error:
    The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    Error code 0x84B10001.
    The same setup is working in other servers, but on a particular server I am getting this error.
    Server configuration: Windows server 2008 r2 standard edition, servvice pack 1 , 64 bit OS
    How to fix this?
    Thanks

    Hi Venkatzeus,
    Based on my research, the issue is caused by that some .dll files are corrupt or missing during the installing of SQL Server 2012 SP2.
    In order to troubleshoot this issue, please view the detail error message in SQL Server Setup Log Files. We can read the Summary text under %programfiles%\Microsoft SQL Server\110\Setup Bootstrap\Log\, and the Detail text in the place %programfiles%\Microsoft
    SQL Server\110\Setup Bootstrap\Log\<YYYYMMDD_HHMM>\Detail.txt. For more details, please see:
    View and Read SQL Server Setup Log Files
    Besides, here are some similar issues for your references:
    https://social.technet.microsoft.com/Forums/en-US/29e3cef1-4699-4710-9aa5-d56cf4a279c5/the-specified-module-could-not-be-found-exception-from-hresult-0x8007007e-systemwindowsforms?forum=sqlanalysisservices
    https://social.technet.microsoft.com/Forums/en-US/b2faae67-19af-4f50-88c6-5a427556df3e/error-encountered-when-creating-new-integration-services-project-0x8007007e?forum=sqlintegrationservices
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    I'm new to ADO.NET and need help with this error.
    Currently running Vista Home Premium 64 and Visual Studio 2008 Trial.
    1. Create Win form app.
    2. Add new data source...
    3. New connection - SQL Server Compact 3.5 - Northwind.sdf
    4. Highlight Products and Suppliers.
    5. Drag both onto Win form
    6. Run with debug
    7. Error message "Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
    some blogs advice change dir in SQL Server Compact 3.5 in regedit but regedit doesn't even have SQL Server Compact 3.5; only SQL Server\SQLExpress.
    reinstall SQL Server Compact 3.5 and problem still exists.
    anyone knows how to fix this problem?

     ErikEJ wrote:
    Have you set your solution target to "Any CPU" ?? If so, set to "x86", as SQL Compact only runs in WoW mode on x64. Or use corflags.exe /32BIT+ against your project output (.exe file).
     ErikEJ wrote:
    Look at this blog post for a walk-through: http://erikej.blogspot.com/2008/01/x64-and-sql-compact.html
    Hello everyone,
    I have the same problem as mentioned above "Unable to load DLL 'elev.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ", when trying to load the dll file into a window application.  I developed a window application in VS2005 and want to import a dll file from another program into my project and use it.  But when I try to call one of the function in the dll file, I got the error message "Unable to load dll 'elev.dll".  I try all options that say it works to solve this problem, but somehow it doesn't work for me. I put the "elev.dll" file in the bin folder and use P/Invoke to import the dll file into my project.  Can anyone help me out with this?  thanks and really appreciated!
     Here is how I import the dll:
    [DllImport(@"D:\elev.dll")]
    //[DllImport("emap.dll", SetLastError = true)]
    private static extern void EMA_Init();
    and in the code,  I call the function above but failed to load the dll file
    EMA_Init();

  • C:\Users\..\AppData\Roaming\lprers.dll; The specified module could not be found."

    Recently, when I reboot/start up my Windows 7 HP laptop, an error pops up:  "There was a problem starting C:\Users\..\AppData\Roaming\lprers.dll;  The specified module could not be found." How do I fix this?
    I have already run the Malwarebytes Anti-Malware program to remove all "threats", "viruses"; etc.

    Recently, when I reboot/start up my Windows 7 HP laptop, an error pops up:  "There was a problem starting C:\Users\..\AppData\Roaming\lprers.dll;  The specified module could not be found." How do I fix this?
    I have already run the Malwarebytes Anti-Malware program to remove all "threats", "viruses"; etc.
    Very few authentic dll files reside in that folder. It sounds as though you’ve had a recent infection and one of your ‘anti’ programs has removed the malware files, or some of them, but missed the entry in the registry, possibly due to an out-dated definitions
    database.
    Try one of these, but it is prudent to create a system restore point before you change the registry in (1) below by going to Control Panel > All Control Panel Items > System > System Protection (in the left pane) > System Protection Tab >
    Create and make sure you give it a meaningful name.
    1. The entry is probably in one of the \Run keys, but as the rascal could be hiding in a number of other keys, it’s quicker to search the whole registry. Open a Run window (Windows Logo key+R), type regedit and press Enter. Click Edit > Find and type the
    rogue’s name, put ticks in Keys, Values and Data, then click Find Next. When it’s found in the right pane, right-click it and delete it. There should be only one entry but press F3 to continue searching, just to confirm there are no more.
    2. If you’re concerned about making registry changes disable the entry using the system configuration utility, but bear in mind that you’re disabling the entry not deleting it as you would in (1) above. Open a Run window (Windows Logo key+R), type msconfig
    and press Enter. Go to the Startup Tab and remove the tick alongside the rogue’s name. Click Apply, OK, etc. and restart the computer. When it restarts, put a tick in ‘Don‘t show this again‘ as you‘re effectively doing a selective start up.

  • SAPMMC -Error 126 = "The specified module could not be found."

    Hi,
    Finally i could install SAP Netweaver 2004s ABAP Trial version. But when i get started SAP Systems at SAPMMC, process List , the dispatcher does not work properly:
    Thu Mar 22 08:19:14 2007
    ERROR => DlLoadLib: LoadLibrary(dbsdbslib.dll) Error 126 [dlnt.c       237]
            Error 126 = "The specified module could not be found."
    sysno      00
    sid        NSP
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    95
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        1468
    Does anybody know this problem?
    Thx!!

    Hello,
    could it be that the disp+work.exe starts and then ends after a few seconds? I've had the same problem some days ago. Finally after 5 reinstallations and one new Windows installation, all works fine.
    So maybe you could answer some questions
    <b>Have you installed the MS Loopbackadapter or are you connected to a network?</b>
    You need the MS Loopback if you aren't connected to a network.
    <b>How is the size of your virtual memory?</b>
    Should be great enough: 4096MB works fine.
    <b>What's the name of your computer?</b>
    Shouldn't be more than 13 characters.
    Maybe this will help.
    Michael

  • Error code "The specified module could not be found"

    I am getting the error code "The specified module could not be found" whenever I try to open the editor

    Hi owenskier,
    Please try the steps mentioned in the given link:- Error message (The Specified module could not be found) how do I fix the problem?
    Let me know if this helps.
    Sarika

  • Please help with "Error writing the project file. The specified module could not be found." error.

    I am a student.  I've been trying to install and use Visual Studio 2013 Professional for three weeks now and I cannot get it to work.  I am now two weeks behind in my Visual Basic class.  I've installed, uninstalled, ran the repair option... 
    I've tried everything I know how to do.  I just spent 45 minutes on the phone with Microsoft, was transferred four times and finally told I will have to use the forums to find an answer.  I'm almost completely out of patience with this.
    I got the software through the Dream Spark program as a student.  I installed it with the web installer and it appeared to install fine.  When I try to create a new project, I get the error:  "Error writing the project file.  The
    specified module could not be found."
    When I exit the application, I also get:  "The automatically saved settings file 'c:\users\user\documents\visual studio 2013\Settings\CurrentSettings-2015-02-02.vssettings' is not available for write.  You can change this file on the 'Import
    and Export Settings' Tools Options page."
    Please tell me you can help.

    Hi,
    could you please try the points mentioned here:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems to eliminate the possible cause of your issue?
    Please update the result in the forum after you try the method above!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Deskjet 2542 all in one error: 'the specified module could not be found' when installing to USB

    Installation proceeds OK until the USB cable is connected, when the error message is displayed and installation ceases.
    I have successfully istalled and run the printer on another XP PC of a similar age - ie old.
    I have upgraded the XP OS to SP3 with numerous updates;
    Checked that the USB ports read Data sticks OK;
    run a/v and malware programs, including Microsoft Safety Scanner;
    checked that USB drivers are up to date;
    uninstalled driver software and re-installed with software downloaded from HP;
    carried out the procedures detailed in HP Support Forum 4022116
    Error message the same.  
    This is for my elderly neighbour - help please!
    This question was solved.
    View Solution.

    Hi @bodger50,
    Welcome to the HP Forums! 
    I understand that your HP Deskjet 2542 gives you the error: 'the specified module could not be found' when installing to USB, on Windows XP.
    I would recommend going through the steps in this post, Re: Install Error "The system cannot find the file specified" (hpzprl40.exe). When you get to the printer install wizard section, just use the full feature software and drivers found at this website, HP Deskjet 2540 All-in-One Printer series Full Feature Software and Drivers. As the printer install wizard is only for Windows 7 and up.
    Hope this is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • How to insert data to the specified row column of the multi column list box

    Hi All
    How do i insert data into the specified column of the multi cplumn list box?
    I have a table that containsall station nos and name.Then another table contains the data the various stations having at  for 24 hrs.That is 12 am to 11 pm.
    And i want to display each stations details as follows using a multi column list box/table
    My stationinfo table
    stnno   stnname......................
    s1           stn1
    s2            stn2
    s3             stn3
    The other table
    stnno      sysdatetime       data
    s1             12am                   1
    s2              12am                   4
    s1               1  am                 2
    So the station s1,s2.... will have data for 24 hrs.
    And i want to display it as follows using a multicolumn listbox
    stnname        12am   1 am ......................................11pm
    s1                   ...................
    s2                 ........................
    What i have in my  mind is to get all station nos
    and in a for loop get the station's data from 12 am to 11 pm
    or
    select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
    Or any other better query available?
    Can anybody suggest me a good idea?
    One more thing...how to insert data into the specified field row or column of a multi column list box?
    Thanks in advance

    hi
    i want to know,,can u say ur need clearly...and i attached two image u see that one
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    station.JPG ‏35 KB
    station2.JPG ‏79 KB

  • System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    I have a asp.net web application running on windows server 2008 with oracle server 10g installed.
    now we are planning to run application on another server with same server as database server. but when the deployed on new server the login page comes up and after login System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) exception is thrown. any help would highly be appreciated.

    Did you run the ODAC installer, OUI or xcopy, or did you just copy over Oracle.DataAccess.dll to the new machine? If the latter, then you need to run the installer to put in all the necessary Oracle DLLs ODP.NET references.

  • HT2500 How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it.

    How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it. New macbook pro with LION OS

    Just drag the divider line between the preview pane and the message list all the way to the edge so the preview is completely closed. Selected messages will open in a new window with a double-click or the return key.

  • How do I programmatically reference the current page in 902?

    Hello,
    How do I programmatically reference the current page in 902?
    The Portal Smart Text option for Current Page is not flexible enough, and I wish to create my own custom greeting using PL/SQL.
    Cheers,
    John

    hi,
    If you are developing a PLSQL Portlet, then you do have a way for getting the page URL.
    The page URL can be obtained from the record, portlet_runtime_record. There is a filed page_urlavailable with portlet_runtime_record.
    The portlet_runtime_record is passed as a argument to the show_portlet procedure.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Is window 8 to blame for me not being able to sync my ipod?

    I just upgraded my computer and it is Windows 8 operating system. My ipod will no longer sync from itunes. Is there a driver I need to download for itunes to get this to work?

  • WLST issue in weblogic 11g

    Hi friends , I installed weblogic 11g on redhat enterprise linux (5) server. I choosed jrocket 1.6.x as jdk version for my weblogic. I created domain as well. The problem is when I am trying to run the Admin server using WLST tool, for this I ran %WL

  • Lyrics input glitch when melody crosses middle C

    I'm adding lyrics to a score. Everything is cool if all the melody notes are on a single staff. However, if the region has two staves (e.g. bass clef & treble clef) and the melody crosses middle C (i.e. changes staff), the lyrics input won't recogniz

  • Safari V4.0.2 (5530.19)

    We are running the latest Safari on Mac OS X Version 10.5.7, Processor 2.8 GHz Intel Core 2 Duo, Memory 4 GB 1067 MHz DDR. The problem is that when we open a window in Safari, in order to open a second window, it is necessary to completely close the

  • CS 5.5 design standard for PC

    We bought a site licence for CS5.5 design standard for macs and PC's at our school (Redondo Union High School). I can't seem to find the CS5.5 design standard download for PC download.  Here is our key for PC: [serial number removed] Please send me t