Using NI controls in a DLL running from a non-MFC application

Hello,
I am developing a DLL library for use with a non-MFC third party application. The DLL I am currently working on displays a MFC dialog, and works fine from the third party app, as long as I don't add any NI Measurement Studio controls. When I add in a CNiGraph control, the dialog window can't be created.
Does anyone have any suggestoins about this?
Thanks,
-Robert

Hello Robert,
The setup that you have here sounds perfectly valid and should have no errors. The firts thing to check is that you have enabled support for ActiveX in your MFC DLL. When you run the new project wizard one of the options is to enable ActiveX this adds some initialization code to enable the ActiveX container.
You can test this by adding any other ActiveX control to your dll and give it a try. If you get the same error then most likely the ActiveX container is not properly initilized.
Let me know how this goes.
Regards,
Juan Carlos
N.I.

Similar Messages

  • Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. iTune out??

    Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. And, of course, on startup, a window opens with the error and tells me find QTMovie.dll and delete it because this may be the source of the hangup. Also, in trying to delete iTunes, I get the additional message that I must get approval from the System Administrator to take this action. I am the System Administrator.
    Any ideas would be welcomed.
    Thank you.
    James
    <E-mail Edited by Host>

    Thank you for asking this question.  I'm having the same issues. 
    Liz

  • Using CW UserInterface Control in non MFC application.

    Is it possible to use CW++ controls in non MFC application ?
    I need to display a graph in a dialog based application that does not
    use MFC (written with all windows procedures).
    Dimitri

    Dmitri,
    This is not directly supported in CW++. CNiGraph derives from CNiControl,
    which derives from MFC's CWnd.
    The controls are ActiveX controls, however, so it should be possible to use
    it in a non-MFC application just as you would any other application. The
    downside to this is that you will have to use the automation data types such
    as SAFEARRAY and VARIANT instead of the C++ data types such as CNiVector.
    David Rohacek
    National Instruments
    "Dimitri Ghinis" wrote in message
    news:[email protected]..
    > Is it possible to use CW++ controls in non MFC application ?
    >
    > I need to display a graph in a dialog based application that does not
    > use MFC (written with all windows procedures).
    >
    > Dimitri

  • Retrieve data from a non-peoplesoft application using HTTP Get

    I need to retrieve data from a non-peoplesoft application. They want us to submit a HTTP GET request to their URL with a series of parameters. I am thinking about using HTTP Targert connector to accomplish this. Does anyone have sample peoplecode?
    Currently we are on 8.51.10 Tools...
    If there is any better way .. please let me know ..

    I have used HTTP Get to get XML file from a government sanction list by hitting URL http://www.treasury.gov/ofac/downloads/sdn.xml
    There is a delivered PS program that does that for vendor sanctions. I had to get the online setup correctly by creating a new custom Node with HTTP Target Connector. The program name is BSP_IMPORT. The below code is responsible for the calling the node and retrieving the data. Play around with the code below see if you can get it to meet your needs.
    BSP_IMPORT_AET.BANKNODE.Value is just the custom external code that I created.
    PMT_FLAT_FILE_INBOUND message is just a none rowset based message to use the web service call.
    Local TR:FileUtilities:FTP &oFTPUtil = create TR:FileUtilities:FTP();
    +/* HTTP */+
    +/*******************************************************************************/+
    Local Message &msgHTTP;
    Local Message &msgResult;
    +&msgHTTP = CreateMessage(Message.PMT_FLAT_FILE_INBOUND);+
    +&oFTPUtil.PopulateFTPGetIBInfo(&msgHTTP, BSP_IMPORT_AET.BANKNODE.Value);+
    +&msgResult = %IntBroker.ConnectorRequest(&msgHTTP);+
    +/* check to see if the file is wrapped */+
    +&strAllLines = &msgResult.GenXMLString();+
    +&strAllLines = Substitute(&strAllLines, Char(26), " "); /* Added this line to remove invalid characters */+
    +/*******************************************************************************/+
    Edited by: Maher on Mar 20, 2012 3:28 PM

  • Re: [iPlanet-JATO] from a non jato application to jato application

    Without getting into the details, the session id is passed around in a
    cookie, but once you leave your JATO app "sandbox", you no longer have
    access to the same session. This is not a JATO limitation, but a J2EE
    spec constraint. The war file creates a Servlet Context. Other servlet
    contexts have separate session sandboxes. If you deployed all your apps
    within the same war file, your sessions would be mutually accessible.
    or
    You could do something like use a Session EJB and pass its reference
    between apps I suppose.
    Also, see JATO Tip #0011 for forwarding to a "non-JATO" target.
    Hopefully, my reply will open up a conversation for more solutions,
    ideas, if what I have proposed is insufficient.
    craig
    raju_jato wrote:
    how can we forward a request from a non jato application(build using
    jsp and servlet) to a jato application and back and have only one
    session for both the applications.
    thanks
    For more information about JATO, including download information, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Without getting into the details, the session id is passed around in a
    cookie, but once you leave your JATO app "sandbox", you no longer have
    access to the same session. This is not a JATO limitation, but a J2EE
    spec constraint. The war file creates a Servlet Context. Other servlet
    contexts have separate session sandboxes. If you deployed all your apps
    within the same war file, your sessions would be mutually accessible.
    or
    You could do something like use a Session EJB and pass its reference
    between apps I suppose.
    Also, see JATO Tip #0011 for forwarding to a "non-JATO" target.
    Hopefully, my reply will open up a conversation for more solutions,
    ideas, if what I have proposed is insufficient.
    craig
    raju_jato wrote:
    how can we forward a request from a non jato application(build using
    jsp and servlet) to a jato application and back and have only one
    session for both the applications.
    thanks
    For more information about JATO, including download information, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Invoking SOLMAN WS from a NON-SAP application

    Hello All,
    Has any one accessed the SAP SolMan web services from a non-sap application ? For my project, I need to talk to solman through its exposed operations as defined in the WSDL file
    http://mycompany.com:8003/sap/bc/srt/rfc/sap/ict_service_desk_api?wsdl
    When I invoke this WS through eclipse, after taking in the UID & PWD, it is returning appropriate values for:
    RequestSystemGuid
    RequestGuid
    Getpossiblevalues
    It fails for all other operations. For e.g. ListUnclosedIncidents returns and error called :
    ErrorCode (unsignedByte):  13 
    Similary for the operation 'ReadCompleteIncident'
    What is it that needs to be done to surmount this error ? Any pointers, suggestions ?
    Thanks
    Karthik

    Hi, did you accomplish to solve your problem using the list unclosed incidents operation?
    Best Regards
    Nasoft

  • Open Apex page from a non-apex application

    Hello,
    I'm calling an Apex page from another (non Apex) application. The way it works is that you click on a map and a browser window is opened with a Apex data entry form. This way you can edit information about the object you clicked on in the map.
    I got this working but what I'm trying to avoid is that you have to enter your logon credentials every time. I can't provide a session ID in the URL from the other application.
    Is this possible at all?
    Rene

    Hi Scott,
    I tried following your example here:
    http://apex.oracle.com/pls/otn/f?p=9947:1
    Page 1 and 2 are normal, but rather empty, pages. Page 3 is the public page with the redirect proces.
    First login (demo/demo_12) and notice the session ID.
    Then try to redirect to page 2 through page 3
    http://apex.oracle.com/pls/otn/f?p=9947:3::2
    You get the login page again with a new Session ID.
    Once you logon you get redirected to page 2 and have joined the previous session.
    Is this the expected behaviour of your example? I was trying to get rid of the login screen the second time. Maybe I'm doing something wrong?
    thanks Rene

  • Submit a webdynpro IView from a non-Portal application

    Hi,
    i have create a WebDynpro application. This application shows in a table a list of '. This reports are IView for Bex Web Application in a SAP portal. For navigation to this BW IView the WebDynpro application must be also embedded in a WD iView.
    The problem is:
    This WD IView will be requested by a non-sap/portal application with dynamic parameters and also with the POST method.
    In the WD application i have implemented the parameter request with following code:
    int i = 1;
    String name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var_name_" + i);
    If the non-portal application submit the WD application directly -> the parameters are available.
    But when the non-portal application submit the WD IView, then the Parameters are 'null'.
    Thank you for quick response
    Anne

    Hi,
    yes I'm use the statement to submit the iView:
    <form action="http://server:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.kwl.kwl-01.KWL-01%2Fcom.kwl.kwl-01-iviews.KWL-01-Iviews%2Fcom.kwl.WEB_DP%2Fcom.kwl.IW_GISBW&DynamicParameter="
    method="post">
    var_name_1<input name="var_name_1" type="text" value="ZHAMFSB"><br>
    var_value_ext_1<input name="var_value_ext_1" type="text" value="129191"><br>
    var_name_2<input name="var_name_2" type="text" value="ZHAMFSB"><br>
    var_value_ext_2<input name="var_value_ext_2" type="text" value="129761">
    <input type="submit" value=" Senden ">
    In this case the DynamicParameter will be send by GET.
    But i want use the POST Method.
    I get the parameters in both cases not in my WD application.
    What is the problem?
    Thank you
    Anne

  • I have programmed a visual basic application using activex controls. WHen I run this application through internet, it appears a message box indicating that the measurement studio is a demo, but I have the correct license. What can I do?

    I run the application in a computer without measurement studio because my application is stored in a web server and I access to the application downloading it from a web page of that server.

    Have you included the lpk file with your control? I've attached the tool you'll need and here is a nice link that goes thru it step by step.
    Hope this helps
    Bilal Durrani
    Bilal Durrani
    NI
    Attachments:
    lpk.zip ‏74 KB

  • How to run an iPhone non-GUI application in background

    Hi All,
    While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background.
    This app will continuously query certain requests to iPhone regardign some internal iPhone events.
    Thanks in advance.
    Regards.
    Amit

    No.

  • COM Exception while using CWGraph controls

    Hi,
    I am trying to use activeX controls(AxInterop.CWUIControlsLib.dll, AxInterop.CW3DGraphLib.dll) provided by NI in my sample application (wriiten in C#) but I am receiving COM exceptions after the activeX controls gets instantiated.
    Has anyone encountered such a problem before. Any help will be highly appreciated

    I am trying to migrate a vb6.0 project which is using a CWGraph control to C# application. The installation of the vb6.0 application also adds cw3dgrph.ocx ,cw3dgrph.ocx and cwanalysis.ocx controls in System32 folder and I am referencing the same control in the C# application and trying to access the CWGraph control (C# itself creates the wrapper for this ActiveX controls:AxInterop.CW3DGraphLib,AxInterop.CWUIControlsLib,etc).
    When I enable the CLRExceptions from the Debug menu in Visual studio and run the code , an unhandled exception of type COMException occurs without any description about th exception(it displays Unknown Error). everything runs fine if I disable the CLRException from debug menu.

  • How to use gApp.MenuItemExecute("BatchEdit") then programmatically Run Sequence

    I am attempting to use the Acrobat 9 SDK - IAC API from a VB.NET application to select and run a batch sequence.
    It is running on Windows XP SP3 with Acrobat 9.1.
    So far my code :-
    Dim gApp As Acrobat.CAcroApp
         If Not gApp.MenuItemExecute("BatchEdit") Then
    If Not gApp.MenuItemExecute("BatchEdit") Then
          MsgBox("Batch Sequences menu was not found.") 
    End
    This successfully displays the Batch Sequence dialog.
    How do I now select the desired sequence and then Run Sequence and execute the resulting dialog?

    Thanks for your prompt reply.
    If I can't run sequences can I instead run other meni items?
    Can I run MenuItemExecute on other menus and then control the resulting dialog e.g. Optimize Scanned PDF or PDF Optimizer or Reduce File Size.
    If I can't control these dialogs, what is the point of the MenuItemExecute command?
    Russ

  • How to Delete rows in the database table by using Table Control

    Hi Experts,
    I wrote one program.
    In that program i used table control.
    I displayed data from database table in the table control, but i want to delete selected rows.
    Can anybody please tell me this by writing sample code
    thank you
    Basu

    Hi ,
    Pls try this coding below or check the prg demo  - RSDEMO02 in se38
    WHEN 'DELL'.
    * remove marked lines
          LOOP AT IT_SPFLI WHERE MARKED = 'X'.
            DELETE IT_SPFLI.
          ENDLOOP.
          IF SY-SUBRC <> 0.
            GET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
            SET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
            IF FLD CP 'IT_SPFLI*' AND SY-SUBRC = 0.
              LINNO = LINNO + TC_SPFLI-TOP_LINE - 1.
              DELETE IT_SPFLI INDEX LINNO.
              TC_SPFLI-LINES = TC_SPFLI-LINES - 1.
            ENDIF.
          ENDIF.
    or another eg :
    MODULE USER_COMMAND_0100 INPUT.
        SAVE_CODE = OK_CODE.
        CLEAR OK_CODE.
        CASE SAVE_CODE.
    WHEN 'DELE'.
                CALL FUNCTION 'COPO_POPUP_TO_GOON'
                    EXPORTING
                         TEXTLINE1 = 'Selected rows will be deleted!'
                         TEXTLINE2 = 'Are you sure?'
                         TITEL     = 'Delete rows'
                    IMPORTING
                         answer    = confirmation.
                IF CONFIRMATION = 'G'.
                    REFRESH ITAB_PHONELIST.
                    CLEAR ITAB_PHONELIST.
                ENDIF.
    MODULE EXTRACT_USERDATA INPUT.
        CASE SAVE_CODE.
            WHEN 'DELE'.
                IF SELECTION IS INITIAL AND
                   confirmation = 'G'.
                     CLEAR ITAB_PHONELIST.
        ITAB_PHONELIST-NAME = RECORD-NAME.
        ITAB_PHONELIST-PHONE = RECORD-PHONE.
        ITAB_PHONELIST-EMAIL = RECORD-EMAIL.
        APPEND ITAB_PHONELIST.
    <b>Reward pts if found usefull :)</b>
    regards
    Sathish

  • How can we know WD Appl is running from portral or normal

    Hi Experts,
    Could any body help in this...
    How can we know one application is running from portal or normal application??
    Thanks,
    kris..

    Hi,
    Below code might help you.
    data: lo_api_component    TYPE REF TO if_wd_component,
      lv_cl_environment   TYPE        i,
    lo_wd_application   TYPE REF TO if_wd_application.
    * get application environment: portal or non-portal environment
      lo_wd_application = lo_api_component->get_application( ).
      lv_cl_environment = lo_wd_application->get_client_environment( ).
      IF lv_cl_environment = if_wd_application=>co_client_environment-portal.
    endif.
    Thanks,
    Kranthi.

  • I was told that my new imac with Lion could burn dvds..so I bought it..now have finished editing a wedding in iMovie full of HD stills mixed with video from a non HD  SonyDCR-SX63.. just saw the scary question.. "Where is your iDVD?  How do I make a DVD?

    How to I burn to a DVD my project edited on mynew  imac with Lion in imovie? I used some HD stills and some video from a non HD sony DCR-SX63..was ready to burn a DVD then saw the haunting question "Where is iDVD?" Please help..this wedding edit is long ovedue.

    How to I burn to a DVD my project edited on my new  imac
    If you are still within your 15 day return period.  Call Apple they will sent out iDVD at no charge.  (There are no realistic substitutes.)
    Nicely explain that you may return the computer without iDVD.  You MUST speak to a senior advisor to get a free copy. The first tier people cannot do it.
    408-996-1010
    800-692-7753
    If that doesn't work you can purchase iLife 11  (includes iDVD) on disk.
    IDVD is a wonderful piece of software and well worth the low cost of $40.
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    http://dealmac.com/lw/artclick.html?1,527850,1872219

Maybe you are looking for

  • Error message on screen: No bootable device -- insert boot disk and press any key comes on

    Error message comes on screen: No bootable device -- insert boot disk and press any key.  What do I do?

  • 'Not assigned' Value is appearing in Report?

    Hi Folks, Let me go through the whole scenerio so that it would be easy to answer you people. There was one IO by 0CAT_GROUP for this there was already data was available.Due to some changes in the requerement we have created one navigational atterib

  • Infopackage routine --- Help!!

    Hello all, I am doing daily full loads to a cube.......there is no ODS....so when I do loads daily since its a full load the records are basically duplicating ...I would like to have a routine in my infopackage in such a way that if the request date

  • Drop down list in web-dynpro abap

    Hi friend, i want to drop down list in WEB-DYNPRO abap kindly give me one example . regards vikash

  • UCF_AcroForm error

    Hi, we have a custom WD4J app which uses an Adobe Interactive Form.  We are using Adobe reader 9.  Suddenly I started getting this error when trying to access the interactive form: "Server error: UCF_AcroForm Could not send message" The form is being