Call of node on COM DLL can not configure the entry correctly

I have a COM DLL, I try to use LV2013 32 bit. I managed to go as far as the ActiveX 'Automation open' and an invoke node. This makes me a list of parameters which resembles right (input and output), but I don't know that the real data types are correct.

I have the DLL, a file header and an IDL file and 2 different bits of documentation (not everything agree).

I am train to begin just to connect to the server by using the code below (see test Server Copnnect via dll.png)

It does not work telling me that I have the incorrect input parameters.

One of the pieces of documentation lists the parameters like:

char * pConnection required

long ITimeout optionally

char * pOption in option

but the idl file:

HRESULT ConnectServer([in] CHAR *szPara)

and the header file:

virtual / * [helpstring] * / HRESULT STDMETHODCALLTYPE ConnectServer (/ * [in] * / CHAR __RPC_FAR * szPara) = 0;

I would have thought the idl files and header would be more reliable but then why it the method has 3 parameters?

Also the data types seem not fair.

szPara must be a pointer which should be Unlt32 for a 32-bit program (which it is), but the data type reports as an I8 (8-bit integer). the szPara should contain txt connection such as "eth: 10.10.10.10:5000.

I tried to create a string for the data pointer, but it does not work. I tried the typecasting of the I8 but that kills my data and I find zero to the dll. I tried then as above but the wind upward with points of constraint. I need to convert my multiple byte pointer? (Don't know how to do this).

I looked at lots of other calls to invoke node in the same DLL and the direction of the setting always seems correct data types do not change (they are not all integer values, some report as real numbers) so it looks like the invoke node works but I do not know how to drive.

Am I missing something obvious?

Thank you very much

David

A list of the function in the DLL names is also useful to diagnose the problem at hand as would be a list of random characters to understand one language: Niente, Nada!

It's even worse than having just a header for a standard C DLL file, which can at least tell a little about the parameters, but C syntax is notoriously inadequate to describe the real API in a way disambigous.

Here, ' char * name "can be a string, a single character, passed by reference, or a byte array. ' void * name "is even more ambiguous, since it could be basically anything! That's why Microsoft created ActiveX with a typelibrary interface that describes the functions much more in detail, and this typelibrary is LabVIEW (and Visual Basic and other languages 'Visual') has access to build the diagram nodes that have access to the methods and properties of an ActiveX object. If this type library is wrong there is nothing you can do in LabVIEW to make it work in any case except write a C++ wrapper that access the object ActiveX and translated them into a correct ActiveX interface. The reason is that end allows access to the typelibrary but as a descending C real also lets you do all the hard programming each detail explicitedly.

As for your problem with the Denso library that will look much like the library in itself is bad, but that they forgot to certain attribute of the document or registry value that must be set in order to achieve unity of the robot in remote mode. Manufacturers of robotic are notorious for offering little support in access to their material to third-party applications. If they have a library at all so he has often paralyzed and hampered with these small disadvantages and problems.

But trying to access an interface poorly documented to work around this limitation is very likely going to be an exercise even more frustrating. Simply being able to access their obviously badly designed interface you will probably run in a lot more problems. These interfaces at some point it will take magic numbers like parameter as save addresses to write specific values in and I'd be surprised if this documentation is more detailed on details such as the 'official' library is, what they offer for LabVIEW.

You may want what all the bad talk about trying to take away the joy of having a fully working for your problem solution, but believe me, I've been there and dealt with the robotic interfaces and the only way that really works in the long term is to find the guy who knows and let them know what save the address must be tickled to make the LabVIEW interface works the way you want.

An interesting industrial partner with a few good prospects for sales in which case it is possible to work of course helps a lot. Then sellers are sometimes more likely to continue to push the technical staff in the plant to spend a few minutes to find a document of dust collector in the depths of their (digital) archives.

Tags: NI Software

Similar Questions

  • Can not configure the Ralink dongle and I am referred to in article 871122 on the Microsoft site to activate zero wireless connections.

    I want to use a USB device to connect to the Internet, as my ethernet card is US I can not configure the Ralink dongle and I am referred to in article 871122 on the Microsoft site to activate zero wireless connections.  How to do this please?

    USB to the Internet connection.

    Hello

    It seems that your dongle is not installed properly. try to uninstall and reinstall the software dongle...

  • Equium M70: I can not configure the keyboard

    My computer is an equium M70 is the keyboard layout: English Kingdon, because I bought the laptop in England last year... but I moved from my country - brasil and I can't configure the keyboard to use the Brazilian Portuguese accents, I tried so many different layouts page, but no one worked... so, how can I get additional support for sorting? I've already sent an email to toshiba brasil and toshiba England asking for help, it is very important...

    Thank you very much

    Hello

    You can change the keyboard language settings in the Control Panel regional and language settings language Details tab

    In the installed services, you can add the Brazil or / and keyboard Portuguese language.
    Please note: you can set several languages. To switch between the settings please use the keys ALT + SHIFT.

  • No sound from the right speaker / can not configure the speakers

    Hi all

    I have a new computer Sony laptop and just tried plugging in my speakers 2.1 computer inside.  Sound only comes out of the left satellite and a subwoofer.  When I try to set them up in the sound control panel, the installation of the single speaker on the speaker Assistant is stereo and only the first test tone (left) plays from the satellite on the left, then silence (no dial tone test on the right).

    Everything works fine on the built-in Laptop speakers, but they are for computer speakers, so I wish I could use my old speakers when I'm at my desk.

    Sony Vaio and Windows Update Update did not recommend all new drivers for the audio controller.  I downloaded and installed the latest driver on the site from Realtek but that didn't work at all so I rolled it back to the version provided with the system.

    Work fine with my laptop speakers older and my cell phone, so the fault is not with the right satellite is.

    Thank you
    Drew

    Hi Drew,

    Thanks for posting your query in the Microsoft Community. There is no sound from the right speaker in accordance with the description of the problem.

    ·         Did you do changes on the laptop before the show?

    I suggest you follow the steps in the article.

    Tips for solving common audio problems

    You can see these articles for more information:

    Sound cards: frequently asked questions

    No sound in Windows

    I hope this helps. Let us know if you need more assistance.

  • WRT54G2 - can not configure the wi - fi connection

    Hey all,.

    just received this new router today.  I configure everything for my home network, port forwarding, static ip, etc...

    now I try the security configuration wi - fi.

    I do manual mode, and I'm on the Wireless Security tab.  No matter which option to choose in the drop-down list, the browser immediately refreshes and returns to the security mode off.

    I tried both manual and protected... no matter what I do, when I choose a security mode, it's just always refreshs and back for the disabled

    Anyone have any ideas?

    also, where is the firmware for this?  I can't find the product in the downloads section.  Cannot find the router in the list

    First try to use another computer to configure the router.

    And you can also try to update the firmware on the router of www.linksys.com/downloads.

  • I changed the hard drive of a 4440 probook s and I can not configure the fingerprint reader

    Hi, I have a probook 4440 s, I changed the hard drive due to malfunction, I used paintings General; I can't set the finger print recognition

    Hi Rubio7,

    Welcome to the HP forum!

    Your Probook is a commercial unit and the consumer forum.

    I'm sorry, but to get your question more exposure, I suggest posting in the trade forums, since it is a commercial product. You can do the Forum Commercial/Notebook - HP ProBook, EliteBook, Compaq, slate/Tablet PC, Armada, LTE

    I hope this helps.

  • BlackBerry smartphones can not configure the IMAP e-mail account

    I'm trying to update the password IMAP on a Bold 9700, a process I did several times in a recent past.  However, on this particular device, I can't even on the menu for e-mail accounts.  Every attempt causes the message to ianane OS; "Your device had a problem connecting to the server."  I'm then to try again (an endless loop) or cancel.

    I think it has something to do with my ISP (AT & T) because I had similar symptoms on another device (same model, w/o business security policies).  I was able to fix on the other device by removing the books of IMAP Service and then by doing a hard reset.  It does not work for BB problem.

    Any help is greatly appreciated.

    Thank you!

    PS whatever it is, it's better than a horn in the neck... ask Julio Aparicio.

    Figured it out...

    I used the web interface AT & T to set up the account, and it worked like a charm.  Here is the link:

    https://bis.na.BlackBerry.com/WAP?brand=mycingular

    See you soon.

  • faces of photos can not enter the name correctly

    At apple watch this first year to own the mac out of support now, later they are working on this and can include a fix in an update awhile.

    not impressed.

    Sorry we can't see you - to get help, you need to actually share details

    See writing an effective communities of Apple support question

    LN

  • Excite - AT10PE - camera can not focus the image correctly

    When you use the camera, sometimes that can put the image incorrectly.
    You have it too?

    My screen AT10 has a slightly reddish. I used the 'filter your screen', but it is not fair. Addressed to someone?

    After that update to version 4.3 takes the focus is still wrong - fixfocus - infinite - cannot be set. Missing manual calibration. When I put infinity, should be on the horizon. But it's not. It's good to see the apk mobilwebcam or KennyCamera.

    In addition, the camera does not work with the exhibition.

    Oh, another discovery. When the camera lens lend a lens with a focal length of 200 mm, so the focus to infinity corrected at once:-o. As the lens on the tablet had the focus more than necessary!

  • BlackBerry smartphones can not configure the phone

    I am new to blackberry and bought a 9700 "BOLD" online. I can't put it up. ATT can help me or the other can someone tell me or direct me to where I can find how to configure it for att internet services?

    TIA

    Mitzi

    My apoligies... I see in the settings folder:

    Sim1 security settings

    phone lock

    Auto keypad lock

    change password

    Certificate Manager

  • BlackBerry smartphones can not configure the synchronization

    Our person I.T. installed office on my computer Manager. I plugged the phone and the Desktop Manager. When I click on the synchronization of the configuration. button, she begins and shows: "Determination root Configuration name of hand". It stops and I get "unknown error reported. This happens when hanging the phone to the computer as well.

    Here's what I'm working with:

    Outlook 2003

    Windows XP Professional 2002 Service Pack 2

    BlackBerry Curve

    Desktop Manager Version 4.3.0.17

    I set up my email account and it works fine. Any help would be GREATLY appreciated!

    Thank you!

    These were rights. When I was given administrator rights, I was able to configure the synchronization. I sync a curve. My rights have been reduced to their normal level and timing of the thin curve.

  • I have wrong associated with a DLL block note as the default program for opening. Can I reset this?

    I have wrong associated with a DLL block note as the default program for opening.  Can someone tell me how to reset it?

    See: http://support.microsoft.com/kb/307859
    TaurArian [MVP] 2005-2010 - Update Services

  • At the start of C:\Users\User\AppData\Local\icipazopesi.dll can not run.

    I got a message when I start my computer, it says that c:\users\user\appdata\local\icipazopesi.dll does not work.  How to solve this problem?

    original title: I got a message when I start my computer, it says C:\Users\User\AppData\Local\icipazopesi.dll can not work. How to solve this problem?

    http://www.google.com.au/search?hl=en&source=HP&q=icipazopesi.dll&aq=f&aqi=&AQL=&OQ=&gs_rfai=

    A Google search reveals nothing about it.

    ·                                 You could have, or still are, infected by malware; and it could also be a starting top left him entry.

    Malware scan:

    http://www.Malwarebytes.org/MBAM.php

    Malwarebytes is as its name suggests, a Malware Remover!

    Download the free Version from the link above.

    Download, install, upgrade and scan once a fortnight...

     

    How to use Malwarebytes once it is installed and updated:

    1. open Malwarebytes > click the update tab at the top > get the latest updates.

    2. on the Scanner tab, make sure that the Perform quick scan option is selected and then click on the Scan button to start scanning your computer

    3 MBAM will now start to scan your computer for malware. This process can take some time.

    4. when the scan is complete, a message box will appear

    5. you must click on the OK button to close the message box and continue the process of Malwareremoval.

    6. you will now be at the main scanner screen. At this point, you must click on the button to view the result .

    7. a screen showing all of the malware displayed the program that is

    8. you must now click remove selection button to remove all the listed malware. MBAM will now delete all of the files and registry keys and add them to the programs quarantine. When you remove files, MBAM may require a restart in order to eliminate some of them. If it displays a message stating that it needs to restart, please let him do. Once your computer has rebooted, and logged in, please continue with the remaining steps.

    9. when MBAM has finished remove the malware, it will open the scan log and display it in Notepad. See the log as desired, and then close the Notepad window.

    10. you can now exit the MBAM program.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the error persists after scanning, use the program to out startup:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    This utility, which has a knowledge of auto-starting locations of any startup monitor, shows you what programs configured to run at system startup or login and that the entries in the order of processing windows. These programs include those in your startup folder, Run, RunOnce, and other registry keys. You can configure Autoruns to show other locations, including Explorer shell, toolbar extensions, helper objects to the browser, Winlogon notifications, auto and many start-up services even more. Autoruns goes way beyond the MSConfig utility bundled with Windows Me and XP.

    See you soon.

    Mick Murphy - Microsoft partner

  • Startup error: DLL Load error can not load the resource dll: REPLRES. RLL the specified module could not be found

    Original title:

    ReplSync.dll - error loading DLL cannot load resource dll: REPLRES. RLL the specified module could not be found

    I get this error message whenever I start my computer: replsync.dll - DLL Load error can not load the resource dll: REPLRES. RLL specified module is not found Help please?  Thank you!

    Hello
    You did changes to the computer before the show?
    Method 1:
    Step 1:

    You can try to start in safe mode and check if the problem persists.

    The Advanced Boot Options screen lets you start Windows in advanced troubleshooting mode. You can access the menu by turning on your computer and pressing the F8 key before Windows starts.

    Some options, including the mode safe mode, start Windows in a limited State, where only the essential is started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic device drivers and services as a possible cause.

    Advanced startup options
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2:

    If the problem does not occur in safe mode, and then try to perform the clean boot and see if the problem still occurs. Clean boot helps eliminate software conflicts. For more information, see the following link:

    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the article mentioned above.

    Method 2:

    You can run Windows Defender Offline tool.

    See the following link for more information about the same:

    What is Windows Defender in offline mode?

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

    Windows Defender Offline: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows/Windows-Defender-offline-FAQ

    Note:
    data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    Method 3:

    Try the SFC (System File Checker) scan on the computer.

    SFC/scannow is a very useful command that you can use in any version of Windows. When the SFC (System File Checker) command is used with the/scannow switch, the tool analyzes all the important files of Windows on your computer and replace if necessary.

    Missing and the corruption of the operating system (like many DLLs) files are probably the main cause of the major problems of Windows. In view of this, plus the fact that the SFC/scannow is completely automatic and very easy to use, the tool should be usually one of your top not troubleshooting.

    Reference:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Let us know if it helps!

  • can not find the file adobePDF.dll

    can not find the file adobePDF.dll

    http://helpx.Adobe.com/Creative-Suite/KB/error-file-adobepdf-DLL-needed.html

Maybe you are looking for

  • Bluetooth

    I have a laptop with mac macbook air OS X el Captain 10.11.5 and an iPhone with iOS 9.3.2,and 6 both on a wifi modem router from netgear. I can't use bluetooth or airdrop. I have paired other mobiles with bluetooth mobile tony but cannot then get iPh

  • Scroll bar can be moved by the mouse cursor. Scrolling is generally lag.

    When I updated Firefox to version 9.01, my experience of the browser is that its generally slower (current running on an HP Envy 15 ") than the previous version. I tried the Beta 10 and the same problems occur. However, if I restart Firefox in safe m

  • Configuration of CMS SCSI External Hard Drive DIP

    Hello. I have a friend with a problem - it loses the settings of the DIP switch on his external hard drive SCSI SD80 CMS so he will no longer work with his Mac LCIII as before. It can not locate the manual showing the correct configuration for the LC

  • Driver printer Deskjet 648C for Windows 8

    Just need to know where I can get the driver for my Deskjet 648C for my newly purchased Windows 8 fantastic. The printer is not an all-in-one.  Thanks in advance...

  • WindowsUpdate_800706BA""WindowsUpdate_dt000"

    HELP MY,.