Registering ActiveX Control

Hello,
is it possible to create an installer that automatically registers an
ActiveX-Control if this is not available on the system? If not what can I do
instead?
I want to use a TreeControl (MS Common Controls) in my project (LV 6.1).
Which version of the control should I use to assure that it runs on any
Windows up from 95 to XP? Has any Windows System this Control installed by
default or is it delivered with other software?
Thanks, Marko.

Hi,
This is possible.
This is how. You have to make a vi, that calls "reg32svr.exe" with the name
of the control (ocx, or dll). Make an executeble from this vi.
BTW, you should check if the are installed first. Make a sub vi with the
controller, and get any property. If the control is not loaded, it needs to
be register.
In the installer, you can give a name of an executabel to start after the
run time engine is installed. Tell it to start the fresh executable.
For the tree, you need mscomct2.ocx and mscomctl.ocx. Don't know about the
version, just use the ocx's that are on the PC.
Regards,
Wiebe.
"Marko Aschoff" wrote in message
news:b4hn5c$20deoj$[email protected]..
> Hello,
>
> is it possible to create an installer
that automatically registers an
> ActiveX-Control if this is not available on the system? If not what can I
do
> instead?
>
> I want to use a TreeControl (MS Common Controls) in my project (LV 6.1).
> Which version of the control should I use to assure that it runs on any
> Windows up from 95 to XP? Has any Windows System this Control installed by
> default or is it delivered with other software?
>
> Thanks, Marko.
>
>

Similar Messages

  • How do I register ActiveX controls?

    As fas as I know I have two copies of the same version of MS6.0. When I bring code in from one copy to the other I get the message
    "The Active X Control cannot be instantiated."
    I hit OK and it says:
    "The Active X Control {bunch of hex values} is not registerd on this computer. Register the control and try again."
    If I remove all my cwdiolines and cwdioline and cwdioport and cwdioports stuff and add the control again from the Registered ActivX Controls folder it doesn't help. If I remove any DAQ device I have installed and reboot the computer and then run the program's exe file it works. It's always when I load the project's workspace that I have this problem.
    Any info on how to register ActiveX controls without d
    oing another reinstall?
    Grant
    Grant M. Johnson
    Project Engineer
    LECO Corporation

    Sorry. Please disregard this post. I thought it was trying to register two of my cwdio DAQ controls but it was complaining about an ActiveX text box control that I forgot to reinstall after I rebuilt my system.
    Grant
    Grant M. Johnson
    Project Engineer
    LECO Corporation

  • Register activeX in "create installer"

    Hi
    Dose anybody knows how to register an activeX during setup
    with the installer that has been created with the "application builder of Labveiw".
    Best regards
    Behzad

    If you have activex controls that you need registered after an install, do as Jean-Pierre suggested and use the 'run executable after install' option in the installer. Create an executable that registers the activex controls. I'm attaching code I use to register controls.
    Attachments:
    Register Activex Controls Folder.zip ‏15 KB

  • Flash player 10.1 Help ( ActiveX control and Download manager)

    I've been trying for several hours to download the new flash player 10.1. I tried everything in the FAQ and still nothing. I tried un-installing the older version that I had (9.3.3),   and still nothing.Then when the download manager gets to the end of the download, it keeps saying Error: Installation failed but Adobe Air was still able to download so the problem is obviously flash 10.1. Then it tries to finish installing it and when its done it says that it couldn't register ActiveX control and that error 19166 occured. I already enabled ActiveX so I dont know what the problem could be.
    Help would be appreciated and could someone explain what error 19166 is and how to register or install activex
    ps. I had this problem a while back but somehow I was able to download flash version 9.3.3, so even if I can't download 10.1, can someone give me a link to download version 9 instead.
    System information: Windows 7
                                  Internet explorer 8
                                  32-bit
                                  Norton 360

    Thanks for your reply.I've tried/done everything on that page and I'm still having issues. And I've already disabled Norton and windows firewall and still nothing works.

  • Registerd ActiveX Controls

    When I select the Project Menu and then add Components and controls I am presented with two folders, Registered ActiveX Controls and Visual C++ Controls which are both in the .\Gallery folder.
    What determines the contents of these folders? Why would I have different entries in one computer running MS6.0 and VC6.0 as compared to another? Is it a service pack issue? I can't think of what else could possibly be different.
    For example, one computer has a RichText control plugin that says I have to have a license to instantiate and the other computer, with apparently the same installation, doesn't have anything similar to that. Conversely the second computer has Microsoft Forms 2.0 controls that the first doesn't have.
    Grant Jo
    hnson
    Grant M. Johnson
    Project Engineer
    LECO Corporation

    Thanks Chris. It turned out to be Microsoft Office 97 that was dropping the Microsoft Forms 2.0 controls into the Registered ActiveX Controls directory. I used the Microsoft Forms 2.0 TextBox control to create a CVI style text box. I can't type in it from the dialog, like in CVI, but it's easy to setup from the dialog box and the ActiveX interface is friendly. Seems like it might be something people would want to experiment with since so many people have Office.
    Grant
    Grant M. Johnson
    Project Engineer
    LECO Corporation

  • "the activex control for flash player could not be registered" - Solutions Roundup

    I recently ran into this problem on my computer:
    http://at32.s3.amazonaws.com/flash_install_problems2.jpg
    I am a Flash developer (as in I write SWFs, I don't work for Adobe).  and when I updated IE to 10.2, "the activex control for flash player could not be registered".  Since I am a developer, I also have Firefox and Chrome installed, with Flash running without problems.  For a long time now, Internet Explorer has used a different version (ActiveX) to the other browsers, which use plugins.  I am a strong supporter of Flash, it's great to develop with and has a very wide feature set which is growing all the time, unlike fixed technologies/standards.  However, the weakest part is the install process - I don't understand why their is a Download Manager.  Google Chrome does it's best (so far) by managing the install/update process entirely in the background.  Anyway, it was in my best interest to try and get to the bottom of this.
    For the record, on the problem machine I have Windows 7 with IE8, but I have seen almost  identical symptoms with IE9, Windows XP SP3, as well as various  iterations of Flash Player (10.0, 10.1, 10.2 and even some final  editions of version 9).
    First I tried the standard support here:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Basically, doing the manual uninstall and manual install of the latest version (without using the download manager, or have IE open).  This did not work.  I also tried the Microsoft "subinacl" program, together with "reset_fp10.bat".  This didn't work either.  However, you should try all of these things first before progressing further.
    A quick note about people who had tried running the following at a command prompt: "secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose"
    I didn't do this, because on investigating further it didn't seem to work with Windows 7, only Windows XP, Windows 2000 or Windows 2003 - though there was a few threads where this had fixed the problem for some users.
    For my solution, it is recommended you use the manual uninstall / installers, so you should have them downloaded ready to use.
    I then heard about problems with permissions in the registry with the key: HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    So I opened regedit.exe (start - run - typed "regedit.exe"), navigated to the key and sure enough, I couldn't open it - permission denied - even though I had an administrator account.  If for some reason, you can access this key (and any subkeys), then it's likely the following fix will not resolve the problem.
    I then done further diagnosis, by using Process Monitor to try and install Flash Player, and I got the following:
    http://at32.s3.amazonaws.com/flash_install_problems.gif
    This shows all the access denied errors the Flash Player install was experiencing when trying to write to the registry key.  This confirmed that this was the problem.  I only stress this because several people said it was unwise to tinker with the registry.  Though this is common advice, this is the only known fix for this precise problem at present, since you need to manually adjust the permissions yourself.  I don't know who is at fault here - Microsoft or Adobe - but let's just get Flash fixed...
    The solution:
    Firstly, you may want to backup your registry, or the exact key.  I didn't do this so I've provided no instructions on how to, but it is recommended for the paranoid.  Also make sure as much software is closed down as possible - browsers, IM software, any junk in your system tray. As way of example, I happened to have "BBC iPlayer" installed and running in the background which uses Adobe AIR and Flash Player, so I exited that too.
    1) Open regedit (start - run - type "regedit.exe").  You may need to right click on it and select "Run As Administrator", but I didn't as my account was already administrator.
    2) Navigate to the key. HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    Click on it to confirm that you cannot access it (you will get an error) - if their are no problems - this probably isn't the cause of your issues.
    3) Right click on it and click Permissions, and ignore any message that may pop up.
    4) Under "Group or Usernames" click "Add".  Type your account name name, or "Administrators" in the box, then "Check Names" to format it correctly, then Ok.
    5) Now on the next screen click the checkbox to enable Full Control (this will also automatically enable "Read" permission too).
    6) Click Advanced, then the "Owner" tab at the top.  You will see that their is no "Current Owner".  This is what we will now fix.
    7) Click on your name to change the owner to (I went for Administrators).  Also enable the checkbox entitled "Replace Owner on subcontainers and objects".  Then click Ok.  You will get an error message, which you can try clicking Retry to, but hit Cancel - this is not a problem.
    8) Click Ok a couple of times and this part of your registry is now fixed.
    9) Now it's a simple case of running the manual Flash uninstall program, then finally the manual Flash installer (for Active X - not the Firefox/Chrome plugin versions).  To my surprise, after a couple of days looking into this - I finally had a solution and Flash in IE once more.  If you are using Firefox too you may find Flash is no longer installed their (the uninstaller removed it).  In this case just install via the Adobe site or try to watch a video on You Tube and you will be prompted or linked to the install.
    Hope this provides a good round up of the possible solutions to this problem.  Hopefully Microsoft or Adobe can find out what causes this issue in the first place so we don't have to go down this route for much longer.  Chrome's implementation of Flash shows how effortlessly things can work!

    They will stay on the screen.  However, Process Monitor is only intended for advanced users.  It is recommended that users try to navigate to the troublesome registry key using regedit, and see if they can access it or not without an error.  This is far easier than trying to use Process Monitor, which is very complicated.
    I used Process Monitor to confirm that it was just that key which was causing the problem, and not others.  Process Monitor is not to be confused with the new Resource Monitor which is accessible via Task Manager in Windows 7 (and possibly Vista).  If you must experiment (and Process Monitor is very useful for diagnosing many deep-level problems if you know what you're looking for) Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    It replaces the older Sysinternals "FileMon" and "RegMon".  For those interested in the technical side, I had to setup a number of filters to be able to get the results display as in the screenshot.  First of all to just show Registry events.  Then to just show events from the manual Flash activeX installer executable.  The I added a filter to show only non-successfull results.  And finally, for the purposes of the screenshot, added a filter to just show those with "Access Denied", since other non-critical errors are also picked up due to missing keys because installation has not yet been fully completed I guess.   When experimenting, most of these filters were applied using the "is not" boolean logic, which will make sense if you experiment with the program.
    Without adding any filters, it picks up so many events (hundreds per second) that it's otherwise unusable.  e.g. 40,000 events within the first few seconds of opening the program. For this reason, I recommend simply using Regedit to diagnose the problem with the particular Flash registry key.

  • ActiveX control for Flash Player could not be registered - no solutions work

    I am getting the "ActiveX control for Flash Player could not be registered" when I try to install 11 on IE9 (Windows 7 64-bit).  I have tried everything that has been suggested in other posts and forums to no avail.  This is driving me crazy and hindering me from work.  Can someone please help?  Thank you!

    I just had this issue and have been searching and searching for a way to fix this issue. I have a Windows 7 64 bit system and this was happening with IE 9. But I have found the solution.
    Go to http://kb2.adobe.com/cps/494/cpsid_49419.html and follow these instructions. This worked for my system and I was able top install the newest flash with no problems.
    Make sure you are logged into a Windows Administrator account. If you are not, you will not be able to use SubInACL.
    Download SubInACL from the Microsoft Download Center.
    Follow the installation instructions. Make sure you install SubInACL (subinacl.exe) to the directory C:\Program Files\Windows Resource Kits\Tools.
    Download the reset_fp10.zip file.
    Open the fp10.zip file and extract the reset_fp10.cmd file to the directory C:\Program Files\Windows Resource Kits\Tools\.
    Both this file and SubInACL (subinacl.exe) must be in this directory.
    Double-click reset_fp10.cmd. A command window will open, and SubInACL will run.
    Do not use the machine while SubInACL is running.
    After SubInACL finishes, you will see a prompt "Press any key to continue".
    Install Flash Player from the Flash Player download page.
    To confirm that your installation succeeded, visit the About Flash Player page. At the top of the screen, you should see a message that reads "Adobe Flash Player Successfully Installed."

  • The activex control for flash player could not be registered.  Please help!

    Can't install flash player.  Keep getting activex control for flash player could not be registered.  I have tried all of the solutions provided on this forum.  Running windows 7 32-bit running IE8.
    Please help.

    Hi, Did you use the Administrator Account? If you received that message it is usually a Permissions Issue.
    We have had several reports this past week of a Virus(AntiVirus8 or AV8) that can set a Kill-bit on the very Registry Key that FP uses for that ActiveX Control.
    You may want to look and see if this is perhaps the problem. This needs to be ruled out first before we proceed, because if that key has the Kill-bit, then it wouldn't matter what you do.
    http://forums.adobe.com/thread/782435?tstart=0
    Thanks,
    eidnolb

  • The activex controls for flash player could not be registered

    the activex controls for flash player could not be registered
    i have had this problem for a while and cannot seem to get around it please post anyreliable suggestions

    Just to add some additional misery to this thread. I have this exact same issue. Windows 7.
    The issue started several weeks ago, when a flash update failed to install. Everything seemed fine other than every reboot, this flash update would fail (and in fact would "hang"), but flash itself continued to work.
    Yesterday, it stopped completely. It said flash wasn't installed.  I've tried:
    1. Completely uninstalling flash (it is not in Add/remove programs) but using the techniques and videos offered by Adobe to remove the files, using their uninstaller, etc.
    2. Perform the fix as outlined in http://forums.adobe.com/thread/987370 which including installing SubACL, the batch file, etc.  The batch file ran successfully, but did not solve the problem.
    3. I've tried Windows System restore, but it doesn't seem to go back far enough.
    4. I've tried the fixit identifed above in this thread and while it solves certain problems, still doesn't solve my issue.
    5. I've tried installing using the stand alone EXE and MSI from Adobe.
    6. I've tried the 11.9 beta.
    None of these have worked and all result in the "failed to register" error.  I'm currently using the flash built into Google Chrome as I needed to have some working flash component.
    Anyone else have any ideas whatsoever short of a Windows reinstallation?

  • Register failk error when invoking ActiveX control for a JavaBean from VB6

    J2RE v1.4.2_09
    Visual Basic 6.0 SP5/Visual C++ 6.0 SP5
    Windows 2000 SP4
    We have our existing production applications written using VB6 and VC++6. We are in the process of moving them incrementally to J2EE. Before everything is totally re-written in J2EE, we need to do something for interoperability between existing VB6/VC++6 and J2EE. ActiveX Bridge seems to be the solution we need, if only it works.
    Problem that I am facing....
    Register failk error when I try to insert a java bean activex control on a VB6.0 or VC++6.0 form or create an instance of the activex "Person.Bean.1" using CreateObject function, it throws the following error. I am able to create an instance of Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully though which means that the ActiveX control is registered properly and working.
    Error Message Box Title: asdas
    Error Message: register failk
    And then another error message pops up.
    Error Message Box Title: Java(TM) Plug-in Fatal Error
    Error Message: Cannot load class sun/plugin/JavaRunTime
    The Bridge was installed at <D:\PROGRA~1\Java\J2RE14~2.2_0> but the class is not there. Modify the registry key to reflect the new bridge location. The key is HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in or Change your CLASSPATH to include the new directory.
    I have this sample java bean class.
    a) Person.java
    import java.io.*;
    public class Person implements Serializable{
    private String fName,lName;
    public Person(){
    fName = new String();
    lName = new String();
    public void setFirstName(String firstName){
    fName = firstName;
    public void setLastName(String lastName){
    lName = lastName;
    public String getName(){
    return fName+" "+lName;
    b) person_manifest
    Name: Person.class
    Java-Bean: True
    Steps followed:
    call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
    set path=D:\j2sdk1.4.2_09\bin;%path%
    javac Person.java
    jar -cvfm Person.jar person_manifest Person.class
    mkdir "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin"
    D:\j2sdk1.4.2_09\bin\packager -out "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin" -reg Person.jar Person
    Person.dll file created under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin and Person.jar copied under d:\Program Files\Java\j2re1.4.2_09\axbridge\lib.
    I am able to create an instance of this Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully. But, when I try to insert the activex control on a VB6 or VC++6 form or create an instance of "Person.Bean.1" using CreateObject function, it throws the above mentioned errors.
    I checked the registry and it shows J2RE1.4.2_09 version properly under that key and the Person.dll file exists under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin. I also explicitly added the plugin.jar, person.jar to the classpath. Still it gives the error.
    Any ideas? Any fix or workaround for this problem? Thanks.

    Sometimes solutions are simpler than expose the problem.
    Did you add the dll to the project references?
    Sometimes also it is usefull to use the regsvr32 program to register the DLL.
    Pedro

  • Why did you ignore my post about Flash Player failing to register its ActiveX Control?

    Three days ago I submitted a precisely-worded description of a persistent installation problem:  Every time I attempt to download and install Flash Player V. 16 on my laptop running Windows Vista 64 bit and IE 9, the download completes successfully, but at the end of installation, a dialog box gives this message
    "ActiveX Control failed to register."
    I presume that your installation software was unable to write something into the Windows Registry.  Other software has no trouble writing to my Windows Registry.  My anti-virus software is not blocking the Registry.
    I expressly asked for an Adobe staff member to guide me on how to debug this failed installation.
    All I got was zilch.  Your forum software assured me that my request was posted, but I have not seen it on the list of recent posts.  You made it disappear and did not respond to it.  Your company does not provide any other avenue for a distraught user to obtain technical support.  Your dismissive attitude toward your customers and user community is even more distressing than your bloated, malfunctioning software products.
    Without Flash Player installed, my computer has been dead in the water for ten days.  I can't do my work.  If I am forced to write my own Flash emulator just to get my work done, then I won't need Adobe anymore.

    Hi Pramananda,
    You're previous post wasn't ignored.  Assisting users on forums is not staffs primary responsibility and we try to assist users as our time allows, in between our responsibilities.  Creating multiple posts for the same issue also doesn't help as it simply forks the problem and results in responses to both, causing confusion.
    Failure to register errors are normally caused by registry permissions issues,  not user permissions issues.  Please review the Flash Player | Windows registry permissions tech note as it addresses this issue.
    Maria
    P.S.  I locked your other thread so that responses will only be posted to one location, eliminating forked responses and confusion.

  • C# 2008 - TestStand2012 ActiveX control not registered error in Win7 64 bit OS

    Hello all,
    I hope someone can help with pointing me in the right direction.
    I have a C# 2008 application working with TestStand2010 ActiveX control (on the form). It is originally created in WinXp, 32bit and it is working fine.
    Now I try to move the program to another PC with TestStand2012 and Win7 64bit.
    I've already successfully recompiled the solution with TS2012 on Win7 64bit OS and I set the configuration manager from "Any CPU" to "x86". But when I debugging or running the program, I always get an exception "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))".
    When I remove the TestStand ActiveX control on the form, the program works just fine. So I was wondering, if TestStand2012 is available for 64bit? I install TS2012 directly from the CD. Is there any other TS 2012 special package for 64 bit? or the version from the CD is for both 32bit and 64 bit?
    If nothing wrong with the software, did I miss anything in the C# settings? Any suggestion is appreciated.
    Thanks and have a nice day.
    Solved!
    Go to Solution.

    0049 wrote:
    Thanks.
    I already did.
    Is it working now then? It should work if you have the platform set to x86. There must be an issue with the way you set the platform. Look at the example C# UI project. It already does this. Maybe you are not running the right executeable. The exe is built to a different directory for each platform by default.
    -Doug

  • Excel VBA - ActiveX Control - MonthView not available under ActiveX Toolbox for Windows 8 64bit MS Office 2010

    Hello,
    I have Windows 8, 64bit and Office 2010
    I am trying to get the 'datepicker' (MonthView) ActiveX control toolbox in Excel 2010 as part of a Excel UserForm I have created. I have spent all day trying to find a solution for my problem.
    I opened up the 'more.. ' but the MonthView/datepicker/calendar control is not listed.
    I referred to some articles and confirmed that I do indeed have the mscomct2.ocx file in the C:\Windows\syswow64 folder.
    I followed the instructions as above, opening up the Administrator Command Prompt and changed the directory to C:\Windows\syswow64 and typed in RegSvr32.
    I received a popup screen confirming my registration was successful
    Excel was closed. So I opened Excel and checked out the ActiveX Tool box and clicked on the 'More  Controls', but there was no listing for the Microsoft MonthView control, (nor datepicker/calendar)
    I then downloaded the latest Windows Common Controls 2 6.0 from the following site
    http://support.microsoft.com/kb/297381
    Copied the original file (2008) and saved it elsewhere on the computer for safekeeping.
    Extracted the new mscomct2.ocx.
    Under the C:\Windows\syswow64 I changed the original file properties to allow me to overwrite it with the new file. This worked … old file replaced.
    I then registered the new file via the Administrator Command Prompt (as above) and was notified that it was successful. I rebooted pc and went back into Excel to find the MonthView in the
    ActiveX toolbox, More Controls… and it still wasn’t there …
    I would be very grateful if someone could advise how I can get this control and allow me to use it.
    If I have left out any information that you need to resolve this issue, please advise.
    Cheers,
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

    Hi George,
    Thank you for checking this out ... :)
    I am using Office 2010 64 bit ...
    I found the
    mscomct2.ocx file originally within the C:\Windows\syswow64 directory (this was an original file .... which I expect was installed via Microsoft at the time of the Office installation.
    As I mentioned above, I followed
    the instructions (same as the ones you suggested), but still no go, even though it stated that the registration was successful ! :(
    Why weren't these features included in the 64 bit ? ... yes, I read the article ... but ... so MS doesn't think that people/developers would be needing this in due course?  I installed the 64bit version because I'm running the Win8 64bit version ...and
    I deal with a lot of large spreadsheets and can't afford to sleep whilst they decide to load.
    If MS included all the other ActiveX controls and some obscure ones, surely some bright spark could have thought that something as useful as MonthView should be included as 'basic' necessity when dealing with forms and sheets?
    Perhaps you could pass the suggestion up the line .... there are a lot of other people out there having the same problem ... I found heaps when I was looking for a solution.
    Sorry, I'm not having a go at you, but just incredibly frustrated .... the amount of lost productivity directly cause by trying to find a solution that doesn't exist ... it's been at least a good solid 24 hours.
    But thank you for taking the time to review my post and your suggestion. It's unfortunate that because you are part of the organisation ... you tend to cop some slack from frustrated people like myself.
    In relation to the pictures/screen dumps, 2 of them made it (I can see them in my post) ... one I deliberately left out because there was nothing on there that showed anything other than the rest of the 'More Controls' - nothing to do with the MonthView.
    Please feel free to escalate this to the powers that be ... and hopefully enough people will join the voice so a change can be made (I can dream ... can't I?)
    I've taken a screen dump of the Forms/ActiveX toolbox.
    I don't know what the next step is ... I guess you'd be able to advise.
    Cheers,
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

  • 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

  • How do I update my ActiveX controls without breaking existing VIs?

    Hi, I'm new to LabView. I've inherited a labview application that makes use of several user-written VIS. All these vi files use an ActiveX control. For better or worse, the way they've done it is to put a ActiveX Container on the front panel. They then picked "Insert ActiveX Control", and picked the correct OCX. In the block diagram, they set up a "Invoke" Node and wire the ActiveX control to that.
    The problem occurs when I update the ActiveX control. I added a couple of methods and reregistered it. When I run one of my vi files, I get:
    Error 0 occurred at VI Open & Init Spinstand
    Possible Reasons....
    I then thought that going to the front panel and deleting the ActiveX control and reinser
    ting it would work. Instead I got the message:
    Error 1598667368 occurred at VI open & Init...
    I should point out that I'm not even attempting to use the new function yet; I'm just running an old .vi file with the updated ActiveX control.
    The version of LabView I'm using is 6.0.2. Can anyone tell me what's going on? Is there a way to gracefully update the ActiveX control? I'm I adding ActiveX controls in the best way?
    Any help or references would be greatly appreciated.
    Thanks,
    Andrew Walker

    Updating *.OCX OR *.DLL Component When Active X Automation Interface has Changed
    Given that you have changed the ActiveX automation interface, e.g: by appending new functions, then, the original 'registered' ActiveX server automation interface is no longer compatible with the new one.
    In this case you must: (1) �un-register� the original interface; (2) Copy the New *.OCX/*.DLL File over the previous ones; (3) Then �re-register the new interface�; (4) After that you must visit ALL your LabVIEW Diagram �PROPERTY� and �METHOD� ActiveX automation nodes and re-reference those same functions.
    These FOUR (4) Steps are further explained below:
    1. Unregister the *.OCX or *.DLL file by running the command
    Regsvr32 /u ��
    Make sure that points to the full path name for your *.OCX or *.dll file. You must use the opening and closing quotes if your file path has spaces.
    2. Copy the new *.OCX or *.DLL files over the old ones
    This means that you will be over-writing the old *.OCX or *.DLL with the new files. Replacing these files is re-commended so that you do not end up with multiple copies of the same file.
    3. Register The New *.OCX Controls
    Register the new controls by running the command
    Regsvr32 ��
    This will now honor your new ActiveX automation interface in place of the last one.
    4. Re-Visit All �PROPERTY� and �METHOD� Nodes and Re-Reference the same functions that appear in those nodes
    This means that you will be right-clicking on all the existing PROPERTY and METHOD nodes and choosing the functions accordingly from the drop-down list-view/menu. If the list view is grayed-out, then Steps 1 to 3 did not take!
    NB: GOTCHA FOR *.DDL Users
    If you have sub-VIs that use the *.dll Ref icon then you will have to cut and re-insert this reference control in all those sub-Vis. A quick way is to copy the top level *.Dll ref icon and paste it over the control and indicator versions of the same in those sub VIs.
    These four Steps plus the 'Gotcha Step' have worked consistenly when I have had to update ActiveX controls featuring a changed automation interface.

Maybe you are looking for

  • Can I go back to firefox 3.6

    I downloaded Firefox 4 and lost Norton protection on websites. Tried to reload Firefox 3.6 could not , if I can't get Norton protection I will have to delete Firefox 4

  • Is MS Office included in product recovery?

    First of all, my thanks to Akuma, Terentino and Ivan25 for their help with my previous dilemma. Now, maybe I'm very naive, or just plain stupid, but I thought that after doing a product recovery my laptop would be in the same state as when I bought i

  • Trying to upload my podcast RSS to iTunes, but getting the "We had difficulty downloading episodes from your feed" error

    Hello everyone. I know this is an often asked question, but I still can't get this to work. Can you tell me why I'm getting the "We had difficulty downloading episodes from your feed" error when I submit http://davidccook.com/podcasts/praying-for-you

  • Suppressing an F4 help dynamically

    Hi all, I have a DDIC search help assigned to a field in a table control. Based on a condition, I would like to suppress this F4 help for some cases. I have tried loop at screen and setting value_help = 0 but I still get to see the F4 help for all ca

  • Numbers won't let me add a form- why not?

    I have been using forms to fill in data on spreadsheets.  But today, the one I am building has a problem.  I create a spreadsheet in iOS Numbers, then click the "+" tab to add a form, but it adds a new sheet, without giving a choice of adding a form.