ActiveX pour Virtual Network Computing

Salut à toutes et à tous,
J’ai besoin de prendre la main sur 8 PCs depuis une application développée en labwindows/CVI , j’ai trouvé sur le net une ActiveX (VNCX.dll) ,mais malheureusement pas de doc pour commencer le développement.
j'ai crée correctement le contrôleur (composante graphique) sur l-IHM, aussi pour l’fp,.h et .c.
je suis bloquée après la création de l’objet avec (GetObjHandleFromActiveXCtrl).
Donc j'ai besoin de vos expériences et vos conseils pour suivre mon projet, si quelqu'un a déjà utilisé VNCX.dll pour gérer VNC depuis CVI je suis preneur.
Merci
Cordialement
Tawfik

Bonjour,
Ci-joint vous trouvez mon exemple.
Si quelqu'un sait comment faire tourner cet ActiveX, je vous remercie énormément.
Pour utiliser l’exemple de cet ActiveX sous Labwindows il faut mettre la DLL VNCX.dll dans le système 32, puis enregistrer cette dll par la commande Regsvr32 VNCX.dll (Démarrer > Exécuter), au bien il se fut de lancer un fichier batche INSTALL_VNCX.bat  pour automatiser l’opération (le fichier se trouve dans la même dossier de l’exemple)
Ici la CVICALLBACK avec la quelle j’ai essayer de gérer VNC depuis cet ActiveX, la connexion est bien passée en fait l'icône de VNC dans la barre des taches se change si la connexion est OK, mais rien ne s'affiche sur la fenêtre CVI sauf une petite cercle si je bouge la souris sur cette fenêtre.
// CB_VNC_Connect
int CVICALLBACK CB_VNC_Connect (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
switch (event)
case EVENT_COMMIT:
//creation de l'objet ActiveX
GetObjHandleFromActiveXCtrl (panelHandle, PANEL_IHM_VNCVIEWER,
&VNCXCAObject);
//@ ip de l'hôt
VNCXLib_IVNCViewerSetServer (VNCXCAObject, NULL, "127.0.0.1");
//pwd de l'hôt
VNCXLib_IVNCViewerSetPassword (VNCXCAObject, NULL, "test");
//connection
iRetVal = VNCXLib_IVNCViewerConnect (VNCXCAObject, &iError, CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL,
CA_DEFAULT_VAL, &vRetour);
VNCXLib_IVNCViewerSetDisplay (VNCXCAObject, NULL, 0);
if (iRetVal != S_OK)
MessagePopup("Erreur","Erreur connexion !");
return -1;
break;
return 0;
Cordialement
Tawfik
Pièces jointes :
Test_VNCX.zip ‏489 KB

Similar Messages

  • [SOLVED] Cannot start Virtual Network: "out of memory"

    I am attempting to use KVM, Qemu and libvirt to run Windows VM's to test websites in IE. I have gotten everything to work fine except guest to host communication, which obviously is crucial for testing the websites.
    Currently i am using macvtap to setup networking, which works beautifully for everything except host to guest networking. The easiest way seems to be to use isolated virtual networks. However, i cannot start any virtual networks. I have tried from inside virtual manager and inside virsh command prompt. I always get "out of memory". I have googled the error and nobody seems to have this problem.
    One note, I do NOT have a swap drive. Is this needed for virtual networks?
    EDIT:
    I have now tried exactly the same on another, identical computer but with swap drive (16gb) and it did not work there either. Both computers have 8gb ram. Seems to be loads free in tops.
    Last edited by sup3rman (2015-01-23 12:29:50)

    sup3rman wrote:
    I am attempting to use KVM, Qemu and libvirt to run Windows VM's to test websites in IE. I have gotten everything to work fine except guest to host communication, which obviously is crucial for testing the websites.
    Currently i am using macvtap to setup networking, which works beautifully for everything except host to guest networking. The easiest way seems to be to use isolated virtual networks. However, i cannot start any virtual networks. I have tried from inside virtual manager and inside virsh command prompt. I always get "out of memory". I have googled the error and nobody seems to have this problem.
    One note, I do NOT have a swap drive. Is this needed for virtual networks?
    EDIT:
    I have now tried exactly the same on another, identical computer but with swap drive (16gb) and it did not work there either. Both computers have 8gb ram. Seems to be loads free in tops.
    I have the same issue on my install. I got so desperate that I actually wiped my laptop and reinstalled everything, same problem. Out of memory error when trying to create the default network. 16GB of RAM, with 96% of it free when I attempted.

  • AGN Virtual Network Adapter

    Why does AGN Network adapter install and what does it do?
    I had two icons in network connections:
    1. AGN Virtual Network Adapter
    2. Local Area Connection
    I am connected to an adsl router and am able to connect OK.
    I disabled the AGN Virtual network adapter and am still able to connect ok.

    Sorry, let me further add I get the following messages from Access connections after the wireless connection fails....
    Error code: 011
    Veyify that the encryption settings (WEP/TKIS/AES) specified in this profile match those expected by the wireless network
    and
    Verify that the wireless adapter in your computer has not been restricted from accessing the radio channels being used by the wireless newtork.
    and
    The wireless network name (SSID) specified in this profile shares the same radio channel as another wireless network that is in range.  To attempt to resolve this conflict, click repair.
    None of these messages are helpful or should be the problem.  I had been using wireless access on this laptop with the same router for several years before 'uprading' the dirver...that's when my problems started.

  • [HELP!] Can't access shared folder from Azure Web Role on same Azure Virtual Network

    I have an Azure Virtual Network that has a virtual machine acting like an app server running some legacy applications that is writing some files to a folder that is shared.
    This shared folder is accessible from other virtual machines within that virtual network without issue.
    The problem I am having is that I have an Azure Web Role that is also attached to the above
    Azure Virtual Network that is unable to access the shared folder. I know the web role can see the app server as it is able to ping the IP of the machine.
    There is some code that needs access to the shared folder to process some of the files that is stored there, but the code won't run because it can not access these files. I used Remote Desktop to see if I could ping the machine, and I can, but I cannot navigate
    to the path in file explorer due to access being denied.
    Can anyone offer any advice or tips to point me in the right direction to gain access to this shared folder from my Azure Web Role?

    Hi Robert,
    Thanks for your posting!
    Form your descirpiton, I suggest you can refer to Tom Zhang's solution via this
    link:
    1. Enable Remote Desktop. (You have done this step)
        2. RDP to one instance of your service. Open up IIS Manager and set the application pool identity to use the account that we used for RDP.
        3. On on-premise local machine, right click "My Computer' and select "Manage". Add a new account with the same account name and password as we specified for Remote Desktop.
        4. Give the new account necessary permissions to write file to the shared folder. (I think you have done this step too)
        5. Try running the code again and see if it works.
        6. If it still says "access to path <folder path located on local machine> is denied". Please check the permission of the shared folder again.
        7. If it works, then the next step is to configure the application pool identity using Startup Task instead of using Remote Desktop (See the suggestion inhttp://social.technet.microsoft.com/Forums/en-US/windowsazuresecurity/thread/247ba75e-87d9-497c-9ec6-1fd4e2c7ff90).
    But I still recommend you enable Remote Desktop for your web role to check if the Startup Task has successfully configured the application pool identity or not.
    Regards,
    Will
    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.
    Click
    HERE to participate the survey.

  • On-premises & Azure VMs with my virtual Network both can have same Subnet?

    Dear All,
    May i know Azure support on below scenario.
    On-Premises & Azure VMs with my virtual Network both can have same Subnet?
    Examples:
    On-premises VMs and Azure VMs using same network subnet(192.168.191.0/24).
    *On-Premises VMs = The VMs host at my own Data Center.
    Thanks.

    Greetings!
    You cannot configure 2 networks with the same subnet and join them. While connecting via VPN, the packet may not even hit the Gateway of a network to get routed to the other. Also, the destination IP may or may not be present on a computer within the
    same network. If it is present, the destination might turn to be undesirable, and if not, the packet might be broadcasted and dropped when nobody acknowledges it in the same subnet.  
    Hope it clarifies.
    Thank you,
    Arvind

  • Is there a way to create a virtual network using C# and the Azure SDK/API?

    I don't see a clear way to create an Azure Virtual Network using the SDK.
    I have all the methods to create the virtual network configuration, but no way to submit it:
    IList<string> VirtualNetworkAddressPrefixes = new List<string>();
    IList<string> LocalNetworkAddressPrefixes = new List<string>();
    IList<NetworkListResponse.DnsServer> DNSServers = new List<NetworkListResponse.DnsServer>();
    IList<NetworkListResponse.Subnet> Subnets = new List<NetworkListResponse.Subnet>();
    NetworkListResponse.Gateway Gateway = new NetworkListResponse.Gateway();
    IList<NetworkListResponse.LocalNetworkSite> LocalSites = new List<NetworkListResponse.LocalNetworkSite>();
    IList<NetworkListResponse.Connection> Connections = new List<NetworkListResponse.Connection>();
    VirtualNetworkAddressPrefixes.Add("a.b.c.d/cidr");
    DNSServers.Add(new NetworkListResponse.DnsServer() { Name = "TestDNS1", Address = "a.b.c.d" });
    Subnets.Add(new NetworkListResponse.Subnet() { Name = "Subnet-1", AddressPrefix = "a.b.c.d/cidr" });
    Subnets.Add(new NetworkListResponse.Subnet() { Name = "GatewaySubnet", AddressPrefix = "a.b.c.d/cidr" });
    Connections.Add(new NetworkListResponse.Connection() { Type = LocalNetworkConnectionType.IPSecurity });
    LocalNetworkAddressPrefixes.Add("a.b.c.d/cidr");
    LocalSites.Add(new NetworkListResponse.LocalNetworkSite()
    Name = "On-Prem",
    Connections = Connections,
    VpnGatewayAddress = "a.b.c.d",
    AddressSpace = new NetworkListResponse.AddressSpace() { AddressPrefixes = LocalNetworkAddressPrefixes }
    Gateway.Sites = LocalSites;
    Gateway.Profile = GatewayProfile.ExtraLarge;
    NetworkManagementClient netMgmtClient = new NetworkManagementClient(CloudCredentials);
    NetworkListResponse netlistresp = GlobalSettings.mainWindow.netMgmtClient.Networks.List();
    netlistresp.VirtualNetworkSites
    .Add(new NetworkListResponse.VirtualNetworkSite()
    Name = "TestVirtualNetwork",
    AddressSpace = new NetworkListResponse.AddressSpace() { AddressPrefixes = VirtualNetworkAddressPrefixes },
    DnsServers = DNSServers,
    Subnets = Subnets,
    AffinityGroup = "East US",
    Gateway = Gateway,
    Label = "LabelValue"
    I have also created the entire XML response and sent it to the NetworkManagementClient -> Networks.SetConfiguration() method, but it appears this command expects the virtual network to already be in existence. If anyone could give guidance, it would be
    appreciated.

    Hi,
    As discuss above , we have to create the XML response  ,before that first you have to
    GetConfiguration() details of existing virtual network. 
    string.format("@<NetworkConfiguration xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration'>
                <VirtualNetworkConfiguration>
                <Dns />
                <VirtualNetworkSites>
                <VirtualNetworkSite name=""{0}"" Location=""{1}"">
                <AddressSpace>
                <AddressPrefix>10.0.0.0/8</AddressPrefix>
                </AddressSpace>
                <Subnets>
                <Subnet name=""Subnet-2"">
                <AddressPrefix>10.0.0.0/11</AddressPrefix>
                </Subnet>
                </Subnets>
                </VirtualNetworkSite>",Networkname,location)+(@"<VirtualNetworkSite name=""demodsf1"" Location=""West Europe"">
            <AddressSpace>
              <AddressPrefix>10.0.0.0/8</AddressPrefix>
            </AddressSpace>
            <Subnets>
              <Subnet name=""Subnet-1"">
                <AddressPrefix>10.0.0.0/11</AddressPrefix>
              </Subnet>
            </Subnets>
          </VirtualNetworkSite>  </VirtualNetworkSites>
                </VirtualNetworkConfiguration>
                </NetworkConfiguration>")
    you have to append the node for existing node with new values , i got it its adding new virtual network 
    Best regards,

  • Adding a second ExpressRoute connection to an Azure virtual network with networkconfig.xml

    We are trying to add a second ExpressRoute connection to a vNet in an Azure subscription. We have already successfully completed the connection to our first ExpressRoute (we are using the Exchange Provider method) using a combination of the virtual network
    GUI and powershell cmdlet tools.
    However... the GUI only supports adding one site-to-site VPN via ExpressRoute.
    The method for adding a secondary site-to-site connection is to export the network configuration (via the Azure portal) and edit the resulting NetworkConfig.xml file - and then re-import this via the portal.
    All good, in theory.
    The NetworkConfig.xml file exported from the gui:
    <Gateway>
    <ConnectionsToLocalNetwork>
     <LocalNetworkSiteRef name="XXXX">
      <Connection type="Dedicated" />
     </LocalNetworkSiteRef>
    </ConnectionsToLocalNetwork>
    </Gateway>
    In conjunction with MS Support (with whom we are still engaged), we determined the following should work:
    <Gateway>
    <ConnectionsToLocalNetwork>
     <LocalNetworkSiteRef name="XXXX">
      <Connection type="Dedicated" />
     </LocalNetworkSiteRef>
     <LocalNetworkSiteRef name="YYYY">
      <Connection type="Dedicated" />
     </LocalNetworkSiteRef>
    </ConnectionsToLocalNetwork>
    </Gateway>
    However, attempting to import this generates the following error message:
        "The gateway in virtual network site XXX-XXX-XX referenced multiple local network sites and uses a connection type different than 'IPsec' for at least one of the connections. If a gateway references more than one local network site, the connection
    type to all local network sites must be 'IPsec'. 'IPsec' is the default connection type."
    This appears to suggest multiple ExpressRoute connections on a single vNet are not supported, which would be contrary to the MS FAQ here:
        Can I have one virtual network connected to more than one ExpressRoute circuit?
        Yes. You can link a single virtual network with up to 4 ExpressRoute circuits. All ExpressRoute circuits must be in the same continent. They can be ordered through different service providers and in different locations.
    (from <link to ms site snipped>)
    Does anyone have any idea how we should proceed?
    Thanks

    Hi Rich,
    It looks like you are trying to combine S2S and ExpressRoute. Although at some point in the future we will have the ability to have them coexist, you cannot do so today. Therefore, you must delete the S2S gateways and create ExpressRoute gateways.
    You could refer the following link for details:
    https://msdn.microsoft.com/en-us/library/azure/dn606292.aspx
    Can I use site-to-site and point-to-site connectivity for virtual networks in conjunction with ExpressRoute?
    No. A virtual network connected to an ExpressRoute circuit cannot be used with site-to-site and point-to-site.
    Regards,
    Malar.

  • Can't print from a network computer to my HP Deskjet D2680 on a Windows 7 computer

    I have an HP Photosmart 2610 all-in-one printer connected to my HP desktop computer via a USB cable.  The computer is running Windows 7 Home Premium (64 bit).  I downloaded the current software and drivers from Hp (364 MB).  I can print to this printer from any other computer on my home network.   So far, so good.
    Now the problem.  I also have an HP Deskjet D2680 printer connected to the same HP desktop computer above via a USB cable.   I downloaded the current software and drivers from Hp (101 MB i think).   I can print to the D2680 from the HP computer, but I cannot print to the computer from any computer on the network.  The print request does not generate an error.  Nothing happens.  No print job shows up in the print queue on the HP desktop computer.
    When I add the D2680 as a network printer on any of my other computers, the D2680 printer is seen.  The Add Printer function knows that the printer it is a D2680 printer and sets up the correct printer driver.  Everything appears fine, but I just can't print to it from any network computer.
    I then tried to add the D2680 as a local port... no luck.  I identify it as \\ computer-name \ share-name, where computer-name is the name of the HP computer, and share-name is the name assigned to the D2680 when I shared the printer.  On the HP computer, user passwords are turned off and all sharing options are turned on.  I also modified the D2680 security to allow full access from NETWORK.   When I ty to create the local port... Access Denied.
    Does the D2680 support network printing?  If not, why? If not, someone from HP should be demoted to the mail room for that decision.  If so, it is not working.  So what do I do?  Take a sledge hammer to it, then go buy another printer? 
    So much for plug and play.   It's more like plug and cry.
    Thanks in advance for your suppprt.
    David

    I found a thread about the HP Print & Scan Doctor software tool. I downloaded and ran it.  It detected a conflict with the D2680 driver / software, so I uninstalled the driver / software.  I then reran the software install, and now everything works fine.

  • Can't print to officejet 6500 E709a from networked computer

    Today I've tried reinstalling my printer software multiple times and I still can't get the printer to print. "Print Test Page Fails." The printer itself works fine on the computer it's connected to with a USB. It works fine from my second networked computer when connected by USB. The second networked computer can see the printer on the network, and appears to be adding it correctly. It tells me is there and ready, but then gives me the error message when I try to print a test page. Nothing is appearing in the what's printing dialog box either. My network works fine with everything else. All troubleshooting has failed to produce any errors. I'm running Windows 7 on both computers, the main one a 64-bit and the second one 32-bit. A third computer on the network, in another room, can find and print from the printer. So.... any idea what's stopping me from getting this resolved?  Thanks...  Liz
    This question was solved.
    View Solution.

    One final update to report...  I almost abandoned the idea of printing to my HP printer from a network computer after receiving your last message. It still bothered me, though, that both Norton's firewall, which I intended to use, and the Windows firewall, which I thought was disabled, had been enabled when I installed the printer. As a final attempt, I made sure the Windows firewall was off, uninstalled the printer using the HP setup CD, and cleaned the Registry. Then I reinstalled the printer again, and WOW, it works! I'm posting this just in case it may help someone else who has had to rebuild their computer after a full system recovery back to factory status. My learning: Norton's firewall is not a problem, but Windows firewall needs to be all the way off. Thanks for all the help and time you took trying to get me up and printing again.  Cheers...  Liz 

  • Could not create shortcut Manage Virtual Networks.lnk during VM Server 2 install. Why?

    I am trying to install VMware Server 2.0.2 on my HP Laptop running Windows 8 Pro as Host. But I am getting the following warning messages but the install continues to completion:
    Warning Msg:
    Warning 1909. Could not create shortcut Manage Virtual Networks.lnk. Verify that the destination folder exist and that you can access it.
    Warning 1909. Could not create shortcut Server Home Page.lnk.         Verify that the destination folder exist and that you can access it.
    After installation, I am not able to login to the VM Server. When I click on the VMware Sever login icon, the error that I am getting states: okonita1:8333 -
    Oops! Page Not Found
    Sorry, the page you were looking for could not be found.
    I am at a loss how to correct this error. I have googled, read and followed a lot of the online help that I can find including taking ownership of suspect target folders such as ProgramData, all to no avail.
    At this point, I am hoping someone does know what specifically can help resolve my issue and I am asking for help. VMware knowledge base or support are not helpful.
    Thanks all,
    Enyi

    Did you run the VMServer setup *as Administrator*?
    Did you have IIS installed on your system before you installed VMServer?

  • Virtual Network Adapter (vEthernet) unauthenticated

    Hi, 
    I have a problem, with configuring a Virtual Network Adapter on SC VMM. 
    I created a logical switch with two physical network adapter (team) and add a virtual network adapter to the logical switch. After that a virtual network adapter will be created on the hyper-v host, but with the status "domain.local (unauthenticated).
    With another hyper-v host it work without problems. 
    I tried to remove and recreate all that stuff but without success. 
    Do someone know that problem? Or can help to find a solution? 
    Thank you for the help.
    Br, 
    Andi

    Hi Sir,
    I searched for this issue but it seems  none fits your case :
    https://social.technet.microsoft.com/Forums/windows/en-US/ca343a3c-c61e-4816-9a96-d973386db2e2/network-shows-as-unauthenticatedchanged-my-network-profile-to-public
    Did you try to manually configure teaming on that hyper-v host , still same result ?
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Help! New Virtual Network not showing up in list of networks....

    I am attempting to move a current vm in one virtual network to a new virtual network. I am at the step in the process where I will create a new virtual machine with the disks of the deleted VM from the original virtual network. I am unable to choose the
    new virtual network name under Choose Affinity Group or Virtual Network. It is not listed.....Any advice???? I am able to see the virtual network lsited on the portal under Virtual networks

    Hey,
    Did you follow all the processes in moving to a different Network?
    Here are two links to aid you:
    1. You can do it via GUI:
    http://blogs.msdn.com/b/karldb/archive/2013/12/13/moving-an-existing-virtual-machine-into-a-virtual-network-subnet-without-losing-your-virtual-hard-disk-or-your-mind.aspx
    2. Or via powershell
    https://msdn.microsoft.com/en-us/library/azure/dn643636.aspx?f=255&MSPPError=-2147217396
    Good luck
    Cheers
    Amjad

  • How can I get a DNS on a virtual network to resolve hostnames on a point-to-site machine?

    Hello,
    I set up an Azure virtual network with the following configuration:
    1 Windows DNS Server (Local IP: 10.0.1.4)
    1 Windows Server (Local IP: 10.0.1.5, FQDN: perforce.redbyte.com)
    1 Ubuntu Server (Local IP: 10.0.1.6, FQDN: swarm.redbyte.com)
    From each of the servers I can nslookup the two named servers with no issue when is SSH or Remote Desktop into them.
    The problem occurs when I connect to the virtual network from my laptop. From the laptop, I can access the machines by IP but nslookup fails on both machines.
    Is their a step I am missing in this configuration? Do I need to tell my laptop to use the DNS server somehow?
    Please let me know if you require any additional information to answer my question and thank you for your time.

    This are necessary steps to get things going.
    "To connect to the virtual network, you’ll also need to configure your VPN client. The client requires both a client certificate and the proper VPN client configuration in order to connect.
    Create the VPN client configuration package
    Install the VPN configuration package on the client and start the connection"
    Frank

  • Some applications won't stop looking for network computer

    I've got a problem that cripples some applications (Finale 2005) and slows others down (Appleworks). When I'm off my home network and I open a file, there's dialog box that says "Looking up '[a network computer].'" Whether or not I click "disconnect", the application continues to search for the network computer and I can't work with that file; in fact, I have to force quit.
    It looks as if this becomes a problem if I haven't specifically logged out in the finder before quitting the application. In fact, I usually just close my laptop with applications running and take it with me to work. Is there a sequence I must follow with Tiger? I don't think this was an issue with Panther.

    You do have to unmount any Network Drives when/before moving to another location.
    I'm thinking the APPs that don't work right have some pref on the non-existing network drive/cpu, for instance, if they automatically open the last doc used.

  • How to install microsoft hosted virtual network adapter

    I have a HP 20- A225IN windows 8.1 All in one PC
    I accidentally uninstall the Microsoft hosted virtual network adapter from Network Adapters under Device Manager.
    please tell me how to install this adapter again?

    I have a video that covers the steps to install the Microsoft Loopback Adapter in Windows 7.  Hope this helps...
    http://www.youtube.com/watch?v=R9674zGHxrE
    Guides and tutorials, visit
    ITGeared.com.

Maybe you are looking for