Trouble to call ActiveX control

 Manufacture provides an ActiveX control to use in LabVIEW. One function "OpenConnection (ServerName: PChar; out Result: OleVariant) requires a Pascal PChar type; when accessed from LabVIEW, it is converted to String type. I tried to wire a normal LabVIEW string, it returned an error saying the ActiveX Server is not installed or registered. I manually registered the server, but it still returns the same error.
I tried to convert the LabVIEW string to a Pascal type, like shown in the picture (put the string length in the beginning and a NULL in the end to make it a null-terminated string), still the same error. My guess is that the problem still lies in the string, it is not compatible with the Pascal type. But how can I convert the string in this case? 

The first call to "OpenConnection" returns '-2' (no LabVIEW error), which means 'the ActiveX server' is not installed or registered. Then at closing, it returns a LabVIEW error saying "Catastrophic Failure", which I think is because the connection was never established in the first place. 
So I still think it is the LabVIEW string is not compatible with the Pascal string, when I feed the name of the ActiveX server, although it looks to the right name, it is converted to a different pascal string. Then the program cannot find the proper server.
I don't think anything can be done from LabVIEW to fix it in this case.  

Similar Messages

  • Calling ActiveX Control in Oracle Developer 2000 - Forms 5

    Hi All,
    I am looking for sample code to call an ActiveX control from my application.
    I have a data input form once i submit the data, the ActiveX control is called and the data is transmitted to a 3rd party application. Could you kindly provide me some pointer here please.
    Thanks

    You're using a very old version of forms and also of SQL*Net.
    to be sure that the problem is forms/sql*net related and not due to other reasons (e.g. network), you could install the current version (forms 10g) and just see if the connect is any faster. If it is, you could try to run Forms 5 with a newer version of the oracle-client /Sql*net to see if that works better.
    hope this helps.

  • Handling events of ActiveX controls in TestStand!rol

    Hi,
    I want to use the Microsoft WINSOCK control with existing ActiveX Automation Adapter of TestStand. These control generates an event in case of incomming data.
    Question:
    Is there any way to treat the events of such controls in TestStand (same problem with MSCOMM control) or can this only be realized by polling the size of incomming buffer?
    In case of answer two, i would be interested in any realized example.
    Regards,
    Sunny

    Hi Sunny,
    Currently, you cannot call ActiveX controls using the ActiveX Automation Adapter in TestStand. To do this, you would need to call a code module that was set to display/utilize the control, and retrieve all of the events generated by the control. TestStand can only currently call ActiveX servers (either DLL or EXE) that support the IDispatch interface. Hope this answers your question.
    Regards,
    Bob

  • Is it possible to call a activeX control from PL/SQL...?

    Hi all,
    Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
    Thanks,
    Pal

    The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
    Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
    You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
    However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
    So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
    On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    )No idea how this applies and works on the Windows side.

  • Can I call any ActiveX control in the Forms under Oracle EBS 11.5.10 ?

    Hi All,
    I have a custom form that works under EBS 11.5.10 (Windows Envoirnment). Is there any way for me to call an ActiveX control on this form? My requirement is to show a URL ( a web application) in Microsoft Web Browser.
    I can successfully call ActiveX outside of the EBS i.e as forms runtime.
    In EBS I get FRM-41344 OLE object not defined for <<block item>> in the current record and then FRM-40735 for exception ORA-305500.
    WEB.SHOW_DOCUMENT is an option to accomplish but ActiveX will provide more control and better look and feel.
    Thanks,
    from Houston.

    Hi;
    Please check below and see its helpful:
    ActiveX controls in Oracle Forms
    ActiveX controls in Oracle Forms
    Forms 6i to Oracle9i Forms Upgrade Reference
    http://www.oracle.com/technology/products/forms/pdf/forms_upgrade_reference.pdf
    Please also check:
    http://www.oracle.com/technology/products/forms/htdocs/forms904FAQ.html
    R12: Publish via Report Manager, Activex Component Can't Create Object [ID 788958.1]
    Hope it helps
    Regard
    Helios

  • How to call SAP GUI Graphical interface by using SAP ACTIVEX Control?

    Hi,all
    I want to connet my delphi system with SAP system. But we still need to call SAP GUI Graphical interface into our delphi system. Could we use SAP ACTIVEX Control to implement this funciont?
    Or, is there any other method to Call SAP GUI Graphical interface into other system?
    Besides call SAP GUI into IE by using portal
    Thanks and best regards.

    check out this thread
    Re: Calling SAPGUI transaction out of BSP application

  • Integrating custom ActiveX control with SapGUI

    Hi everybody
    I'm in the process of writing a custom MFC based ActiveX control written in C++ that we want to use in a product. I am currently at the point where I can instantiate the control and interact with the various methods that it exposes but I have a problem integrating the control more tightly with the SapGUI e.g. change of colors, fonts etc.
    I want to make the control to reflect the user changes when the user modifies any settings of the SapGUI. I've tried catching various events that are exposed by some of the dictionary classes such as cl_gui_props_consumer=>color_change/global_prop_change and cl_gui_resources=>resources_changed but these events only fire in my control once the PAI of the client program that encapsulates the control fires which is hardly appropriate since it means that the control will have to wait for user input before it will change reflect any changes in user settings.
    I've written a test program for my control and when I change my SapGUI colors the rest of the controls etc on the screen do change color but my control only change color once I've performed some action that fires the PAI. Personally I think the controls written by SAP intergrates with the SapGUI through some interface that is called behind the scenes by the SapGUI since the GUI will have some way of knowing the set of ActiveX controls instantiated inside it  and I cannot find any event in the ABAP controls framework (e.g. CL_GUI_OBJECT, CL_GUI_CONTROL) that will allow this type of integration. I'll be digging for the answer but any suggestions will by greatly appreciated.
    Thank you in advance for any help.
    Kind regards
    Ettienne Hugo

    Hello Ettienne Hugo,
    To get the SAP GUI Theme or font changes events you need to add your MFC application or ActiveX MFC dll into u201CSAP Configuration->Application Tab->Addu201D and u need to call the functions SapHookInit and to stop getting the change events u need to call SapHookExit.(sapfhook.dll provides these functions)
    I tried with exe, never tried with ActiveX MFC dll/ocx. With EXE it works.
    Thanks and Regards,
    Ashwini

  • How to control and display video from IP camera using ActiveX control over Internet.

    Hello,
    I need to control my IP cameras over the internet. I need to log into the cameras and then display the video.  There's an ActiveX control registered on the computer and works fine with IE to access and control the cameras. Controlling the cameras using IE works fairly well, but there are some quirks that I'd like to eliminate by using my own custom code.
    Has anyone created a vi that controls a Foscam FI8905W over the Internet? I’ve attempted, but I keep getting a catastrophic failure when I try to call ManagementConnect Method in the DVM_IPCam2 ActiveX Control Module V1.0. I'm not sure whether I need to establish an IP connection with the cameras first, or allow the ActiveX control to establish it for me.
    Some example code would be greatly appreciated. Running LabVIEW 2011 on a Win7 32bit.  Even some code used to control a similar device using ActiveX over Internet would be helpful.

    I have an example vi for interfacing to the foscam activex.
    I plan on using mouse click events within the activex window to trigger the PT function.
    I only have the basic up/down/right/left directions and not the down-right/down-left/up-right/up-left in the enum.  You can load the camera's web page and view the source to see the Java script code that uses the activex control.  There are definitions for the other directions.
    I had to mark the control as "Disabled" to keep click events from going to the activex control.  If I double click the control, it goes full screen.  If I then click on it to get out of full screen mode the video never returns or returns to the wrong spot in the VI.
    Attachments:
    Foscam Demo.vi ‏24 KB

  • No longer able to insert ActiveX controls or use existing ActiveX controls in Word documents

    Using Word 2010 32bit on Windows 7.1 64bit OS.
    I have a document with several ActiveX controls that I use as a template to generate new documents.  This morning I installed the monthly roll-out of Windows/MS Office updates and then rebooted.  After rebooting, when I opened my Word document,
    I could not use the controls. 
    As far as I can tell, the controls are not disabled in security but are actually not recognized.  If I go into Developer Mode and open the Properties from the context menu on one of the ActiveX controls, the Properties dialog opens but shows properties
    for the main document and not for the control.  If I try to drop a new ActiveX control in a blank document, I get the following message from Microsoft Word: "The program used to create this object is Forms.  That program is either not installed
    on your computer or it is not responding.  To edit this object, install Forms or ensure that any dialog boxes in Forms are closed."  I have not been able to find any information on a program called "Forms".  Is this some component
    of Word that has been corrupted?
    I don't think there is any problem with the actual document because I can still open and use it on another machine running Word 2010 (where the latest updates have not been installed).

    Among the monthly updates for March 2015 is a series of updates that should correct the problem. Use Windows Update to get them.
    The relevant updates are:
    Word 2007: http://support.microsoft.com/KB/2956109
    Excel 2007: http://support.microsoft.com/KB/2956103
    PowerPoint 2007: http://support.microsoft.com/KB/2899580
    Word 2010: http://support.microsoft.com/KB/2956139
    Excel 2010: http://support.microsoft.com/KB/2956142
    PowerPoint 2010: http://support.microsoft.com/KB/2920812
    Office 2013: http://support.microsoft.com/kb/2920754
    Word 2013: http://support.microsoft.com/KB/2956163
    PowerPoint 2013: http://support.microsoft.com/kb/2965206
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • OCX ActiveX controls obsolete in ECC6?

    We have a Visual Basic (well, VBA in Excel) program that runs RFCs in SAP using the ActiveX controls supplied with the SAP GUI.
    We have been told that this method is obsolete from SAP ECC6 onwards.
    However, I can connect our system to an ECC6 system without any problems.
    Can anyone confirm whether this method is, indeed, obsolete, or maybe just no longer supported but still in place?

    Hi Tristan,
    SAP is alwyz backwards compatible. So Active X will still be working.
    Also simply connecting to SAP ECC6 system doesnt confirm whether the VB program is working fine. Execute the VB program, so that the RFC is called in ECC6.0.
    This will confirm whether it works.
    Best regards,
    Prashant

  • ActiveX controls disappear when VI is loaded in a Sub-Panel with Start Modal Dialog usage

    Hi,
    I have a subpanel in a VI (VI1) in which another VI (VI2) is loaded. VI1 is used as a module for an Action step in TestStand. VI2 has ActiveX controls like ExpressionEdit and Adobe PDF reader etc. VI1 loads VI2 in a sub-panel and calls Start Modal Dialog.vi. I have set 'Show front panel when called' to true for VI1 so that the VI pops up when the sequence is run. When the sequence runs and when the Start Modal Dialog VI is called from VI1, all ActiveX controls in VI2 (loaded in the sub-panel) disappears. Here is the screenshot of the frontpanel of VI1 when the sequence is run:
    This problem occurs in TestStand 4.2.1, TestStand 2010 and TestStand 2010 SP1 (as far as I have tested. May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi'. The attached sequence is developed in TestStand 2010 SP1.
    How can this issue be solved?
    Thank you,
    Ganesh Kumar
    Solved!
    Go to Solution.
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏23 KB

    Hi,
    An update on this issue: I tried changing the order of loading the VI in the SubPanel and the start modal dialog. I called start modal dialog and then loaded the VI (VI2) in the SubPanel. When I ran the sequence, the activeX controls did not disappear (I was pretty sure that the ActiveX controls in VI2 would not disappear since I am calling Start Modal Dialog before loading the VI in the Subpanel). Then I just changed the sequence of operations back to the previous order (loading the Subpanel with the VI and then calling the Start Modal Dialog). When I ran the sequence, the activeX controls where still displayed. But when I ran the sequence with the VI1 backup (that I had taken before making all these modifications) the activeX controls were not displayed. I a nutshell, I now have 2 versions whose codes are the same. But when I run the sequence with action steps for these VIs, the activeX controls disappear when the unmodified backup VI runs and does not disappear when the modified VI is run. I have attached the files that I used along with the sequence file. The details are as follows:
    ExprEdit Test (Not Working).vi - The unmodified backup VI for which the ActiveX controls disappear.
    ExprEdit Test (Working).vi - The modified VIs in which the ActiveX Controls do not disappear (But same code as ExprEdit Test (Not Working).vi).
    ExpreEdit Test.seq - The sequence file containing 2 action steps one each for theabove mentioned VIs.
    SubpanelLoad.vi - The VI that contains activeX controls and is loaded in the SubPanel.
    Note that the sequence is created in TestStand 4.2.1.
    Thank you,
    Ganesh Kumar
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏36 KB

  • Acrobat Reader 9.1 ActiveX control problems

    We have an application written in VB.NET 2005 which displays a PDF file using embedded ActiveX control from Acrobat Reader (using AcroPDF.dll).
    The code to open the file is very simple:
    Me.AxAcroPDF1.LoadFile(_path)
    The application was compiled on the machine that had Acrobat Reader 8 installed and distributed. The users also had Acrobat 8 installed.
    Some of the users upgraded to Acrobat 9.1. I understand that it shouldn't really matter as the ActiveX control from 9.1 should be backward compatible.
    Yet some users cannot open the file and receive the following error message:
    "Error HRESULT E_FAIL has been returned from a call to a COM component"
    Some other users can open the file but have the following message when closing the application (which calls Me.AxAcroPDF1.Dispose() ):
    "The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be "read"."
    What can cause those problems? How can I fix them?

    OK, no one responsed to my questions but I found answers for them so I thought I might put them here for those interested.
    As for "HRESULT E_FAIL" message, all that was wrong was the "Display PDF in browser" option in Adobe Reader preferences. It needs to be ticked. A bit weird but considering that it uses the same OCX in a web browser, it makes some sense.
    As for the memory issues message, I need to unload libraries manually before exiting the application (as suggested in some other thread in this forum):
    <DllImport("ole32.dll")> _ 
    Friend Shared Sub CoFreeUnusedLibraries() 
    End Sub
    Me .AxAcroPDF1.Dispose()UnmanagedCode.CoFreeUnusedLibraries()

  • Can you use ActiveX controls in PL/SQL?

    I am trying to find a way to start email from within a database trigger. Someone told me I could use an ActiveX Control (custom made by a colleague). Although I have never worked with ActiveX or OLE, I know that it is possible to use them in Forms. Is is also possible to call an ActiveX in PL/SQL? How? And if it is impossible, could someone tell me another way to start email (the application is to be implemented in a Windows NT Network).
    Lots of thanks for any answer or advice,
    Joeri Folman
    null

    Joen,
    I am not totally sure what you mean when you say 'start email', but you should check out the utl_smpt packages in the database. They can be used to send email messages from the database. I believe that you need to have an email server (like sendmail) running on the machine for these to work correctly.
    Check out Oracle Built-In Packages by Steven Feuerstein. Steven also has a real good book on PL/SQL programming that you may find helpful.

  • LabView TEDS library into DLL or ActiveX Control so that I can use it in C or Visual Basic?

    We are developing software in LabWindows/CVI and Microsoft C. I heard that LabView can generate DLLs. Can I turn LabView TEDS library into DLL or ActiveX Control so that I can use it in C or Visual Basic development environment?

    Technically what you are proposing is possible with LabVIEW. With LabVIEW's application builder, VIs can be built into dlls. Also, LV has ActiveX hooks and so you could create a system for calling into it from CVI. However, this is not what I would recommend.
    The LabVIEW VIs have been written to a preliminary version of the IEEE specification (1451.4) that describes the TEDS data which is primarily why I'm advising you against using them. Once the IEEE spec is approved (the current timeline is currently late March), it will become public and you can write your own code according to the specification (or wait for someone else to write it). To help you get started, the spec includes flex and bison code that describes the syntax and structure of the template files
    Internally, we've written some C, C++ and Java code to the preliminary version of the spec and we've found that we can duplicate the functionality of the TEDS Library for LV in roughly 2 weeks in any other language.

  • Calling ActiveX from WebDynpro ABAP application

    Hello everyone,
    I am looking for the possibility of calling an ActiveX control based application by extending my Web Dynpro ABAP application. Is this possible at all?
    Thanks,
    Amber
    Message was edited by: Amber Gupta

    Saraa_n wrote:
    Hello Bala,
    >
    > I doubt whether you can pass parameter for the TCODE ME23N because in the ME23N transaction, you can select the PO only via the popup dialog and you cannot directly enter the PO number.
    >
    > I dont think while calling TCODE via ITS you can set value in the popup dialog and execute it. Alternative would be to use ME23 TCODe.
    >
    > BR, Saravanan
    It is correct taht ME23N can be tricky (as can MIGO and MIRO) because of the way they launch.  I've done this in the past by creating a new custom program and TCoce.  The custom program has a simple parameter for the PO # so it can be passed in via URL. The logic of the custom program then starts a call transaction and handles the popup and supplies the PO #.

Maybe you are looking for