How to translate the declaration C++ and C

Hello

I have a DLL that I want to use in a program developed by CVI (FDS version 8.5.1). DLL comes with documentation including a file include (* .h), where all function declarations are given. So usually I would just include this header file, unfortunately, this file was written for C++ and contains the declarations of functions of the following type:

empty typedef (__stdcal * fp SOMETYPE) (double &, double &, long &, long).

The compiler and I are confused by the '&' I know 'double' and ' double *', but not "double &'..." The same for the CVI that complains with an error of syntax, found '&' expected ')'.

Then of course I have to manually translate this C++ C style header file - but I have no idea how to proceed... Maybe someone could help me? Thank you!

It's been a while since I've done any C++, but as far as I know, you can again declare the function as:

empty typedef (__stdcal * fp SOMETYPE) (double *, double * long *, long)

in the header and call it from your code by passing the variables or pointers "address of".

In this case, '&' in the function statement means "by reference."  It's a bit like pointers in C, but allowing the error checking (for example - cannot be NULL, cannot be re-assinged, etc.) and probably makes the compiler optimizations.  If you are interested in, search google for References C++, or you can check out wikipedia:

http://en.Wikipedia.org/wiki/reference _ (C %2% B 2 B)

Tags: NI Software

Similar Questions

  • How to translate the e-mails and messages facebook since only the french to English?

    I need to translate e-mails and messages of the new facebook friend from the french that I can not read English in order to be able to read and answer.

    Thank you

    Shirley

    Use Google language tools: http://www.google.com/language_tools?hl=en

    You can also translate from English to French to answer.

    Steve

  • How to translate the message "ERR-3331 this page had already been provided.

    It must be a recurring issue

    But how to translate the ERR-3331 this page had already been provided ?

    I am looking for the list of messages in the documentation: https://docs.oracle.com/cd/E59726_01/doc.50/e39147/global_messages.htm#BABHCHAF

    but could not find the list of messages of ERR-xxxx.

    Rgrds Paavo

    Hi Paavo,

    Yes, this message is missing from the documentation. The text message ID is APEX. PAGE. DUPLICATE_SUBMIT and I produced it to the bug 21871965 to get added to the documentation.

    Please let us know!

    Concerning

    Patrick

  • Satellite A30 - 504 - how to remove the old HDD and new mount?

    Hello

    I have problem with my laptop satellite. After the turn on I've got Announces s.m.a.r.t. disk is damaged.

    I do not have it is why I do not know how to remove the old HDD and replace the new statement.
    I will be grateful for the help.

    Hello

    Looking first for similar discussions in this forum? I guess that you didn t ;)
    The advanced search option is very useful and you can search for single yarn that could help you.

    I found this:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=12526&MessageID=45688

    and this

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=12547&MessageID=45752

    It seems that the hard drive on your A30 is in the optical drive, and you must remove all first the STRANGE before you get access to the HARD drive.

    Best regards

  • Printer all in one HP3520 - how to select the wireless network and enter the WEP key?

    According to print my wireless network is detected.

    How to connect the! @# % printer $ fo the wireless network and enter the WEP key?

    Instructions on the HP site tell me to selet NETWORK on the printer control panel.  Well, there's a way to select the NETWORK from the control panel.  It is not an option for him.

    I downnloaded and installed the latest drivers.

    I have restored the default settings.

    How to select the wireless network and enter the WEP key?

    All of HP's instructions seem to be for a newer printer with a touchscreen.

    I want that the printer is connected to my main computer via the USB port.  I want to be able to print wireless phones and tablets.

    My 3520 is not a 'touch Screen' and it has wifi.

    However, the following work:

    Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.

    This leads me to believe that ONLY the wireless doesn't work.  I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.

    Thank you for your help

  • How to change the secret question and answer if I've forgotten my email of rescue?, how change the security question and answer and if I've forgotten my rescue by email?

    How to change the secret question and the answer if I've forgotten my email to rescue?

    You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.


    (137073)

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • How to restore the factory its and 2004 ibm netvista

    How to restore the factory its and 2004 ibm netvista

    Hello

    I suggest you contact your computer manufacturer (IBM) support site, about the factory restore.

    http://www-947.IBM.com/support/entry/portal/overview

    Note: make sure you take the backup of any important data before you perform the restore to factory on the computer.

  • How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    Original title: SoundMAX Integrated Digital Audio

    How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    I need SoundMAX Integrated Digital Audio

    Hello

    Why you trying to update the audio, video and game controllers?

    The following steps may be helpful:

    1. open the Device Manager.

    2. Locate the audio, video and game controllers and expand it.

    3 click the sound card, and then click Update driver.

    For more information: http://support.microsoft.com/kb/283658

  • How to reformat the hard drive and do a "clean" install

    A recent virus attack, my computer has lost some files of the operating system.  With the help of the Lim has provided the recovery disk, which offered ' upgrade/repair' or a 'new installation '.  I chose ' install new ', actually I found many of my files are still there - that means that if a virus has escaped "Detection / removal" will always be there.

    Question: How to reformat the hard drive and do a 'fresh install' on a clean hard disk "? ". (I have a drive to Win XP with service pack 3 and a driver disk for the hardware installed on my computer of the regulations.)

    Thanks in advance

    Skip

    Since you have a Dell and a recovery CD and not a recovery Partition, check how many partitions you need by using disk management:

    http://www.theeldergeek.com/disk_management.htm

    In case you have a partition with the operating system and a partition of the utility partition, I would only recommend formatting the partition from the OS. The Partition utility can be very useful.

  • How to move the MSWMM files and keep the data on my computer?

    I downloaded digital film from my camera to a destination on my D drive as a file MSWMM (collections), and whenever I try to move the downloaded film (collection), it does not recognize the movie more.

    How to move the MSWMM files and keep the data on my computer?

    The mswmm file is the project file, not a video.
    Think of it as a recipe for a cake, it only tells you what to do with the ingredients, but does not include the ingredients.
    The mswmm file tells the computer to look in a certain folder to use a video or audio file.
    If you move the file, then MM knows not where is the file, then you must tell it, by right clicking on a red x on the timeline and then choose search for the file.

  • How to restore the multimedia controller and multimedia video controller to the system?

    How to restore the multimedia controller and multimedia video controller to the system? These items are indicated with yellow exclamation point in the conflict. How to solve these elements to correct the situation?

    Scan your computer with Speccy, Pc Wizart or SIW software and download the driver from manifacturied of the material.

  • Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost

    By mistake, I clicked file history on. The USB key used for ready boost is selected and that the disk is write protected. Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost. I don't have an another USB suitable for ready boost.

    Hello

    You should be able to disable the history of files by using the local Group Policy Editor.  Consult this publication of the article.  Use the #2 option.

  • How to retrieve the network icons and the taskbar sound? They disappeared

    original title: extraction and network icons

    How to retrieve the network icons and the taskbar sound?  They disappear from the notification area of the taskbar.

    Hello

    There are different ways to fix it

    read all the information on the link below

    Try Method 1 or 3

    Method 1. :

    1. right click on the taskbar and click Properties.

    2 tab Area of Notification .

    3 check the (on) or disable (off) the options you want or do not want to display on the Taskbar Notification area

    Method of reading 3 etc. in the link below

    How to enable or disable the Notification area system icons in Vista

    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

  • How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    Hello

    According to the description, I understand that you do not want to display the language bar.

    I would like to know some information.

    1. You hide the language bar, or missing?

    I suggest you try the steps mentioned below and check.

    1. Go to the control panel.

    2. Click on clock, language and region.

    3. Region and language.

    4. Keyboard and language tab.

    5. Change keyboards button.

    6. Language bar tab.

    Then simply change the parameters of language bar hidden in the "embedded in the taskbar" and check.

    Here, you can also check the option in the check box for display icons of language in addition to the taskbar bar.

     

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

Maybe you are looking for

  • How to disable the feature CALL SOS?

    I've just updated to iOS 10 and 3 watch OS, but I can't find how to disable the feature of emergency SOS on my Apple Watch. I thought it would be a good feature for me so I turned it on, but my fingers are clumsy, so I struck the wrong cursor when I

  • IPhone 5 sec home button does not

    I had recently updated for ios 9.3.1 and first my fingerprint stopped working, but I didn't really mind, and today the button just stopped working altogether, if I spam the button sometimes it works. What can I do?

  • Power supply and battery...

    I've often used my laptop with power supply and the battery plugged in at the same time... Is this correct?... I confused the battery after charging or leave it in my laptop to go... I want to protect my battery so please tell me the right

  • Windows Vista now gives me an error of activation 0xc004d401.

    To speed up my computer, I delete some programs and after that, you receive an error of activation, to solve this problem, I need to go to service.msc in the software licening, change the startup type to automatic, and then restart the service, here

  • (Redirected) Update PowerEdge R310 video/graphic card?

    Recently, we noticed that our server r310 worked very very slow.  This server is running only software milestone of the camera.  It seems that the graphics card is overloaded.  Is there a graphics card is recommended to anyone who would be able to ma