Why do i get c2282 compile errors on examples using c++?

I just installed the NI board and can communicate with equipment using LAbView but when I compile an example in C++ I get error C2282 from decl-32.h missing ','?

Hello!
Thanks for contacting National Instruments.
I'm going to need to get some more information from you in order to be able to help you. First off, which example is it you are trying to compile? Also, what kind of NI board are you using? From the sounds of the error, it sounds like whatever program you are using is not including all the correct libraries and header files. Be sure to include all the correct library paths and include paths in your program.
Regards,
Steven B.
Applications Engineering
National Instruments

Similar Messages

  • Why dont we get a compilation error for converting a collection into array?

    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
      public static void main(String[] args) {
        Map<Integer, String> temp = new HashMap<Integer, String>();
        temp.put(new Integer(1), "cat");
        temp.put(new Integer(2), "rat");
        Collection coll = temp.values();
        String[] arr = (String[]) coll.toArray();
        System.out.println(arr.length);
    } Thanks,
    Harish Srinivasan

    Infiniti wrote:
    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
    public static void main(String[] args) {
    Map<Integer, String> temp = new HashMap<Integer, String>();
    temp.put(new Integer(1), "cat");
    temp.put(new Integer(2), "rat");
    Collection coll = temp.values();
    String[] arr = (String[]) coll.toArray();
    System.out.println(arr.length);
    } Thanks,
    Harish SrinivasanAn explicit cast's job is to tell the compiler that even though it cannot guarantee that the conversion will work, allow the code anyway and let the runtime handle an error if it occurs.

  • Why do I get inpage operation error loading EngSetupResDll using GPIB V2.1

    I'm trying to upgrade our customized GPIB driver specifications for instrument control. We are currently using V1.7 and have several devices defined with unique addresses and settings. We ship the registry settings for the instruments as part of our software distribution so I am trying to do a clean install of the V2.1 drivers to export the registry settings after I configure the driver.
    When I try to start the installation of the V2.1 drivers on a clean notebook or desktop machine it won't launch the setup program from the main menu form. I get a message - 'error performing inpage operation while attempting to load EngSetupResDLL.DLL' and the setup program doesn't start. Why does this occur
    We utilize the PCI-GPIB cards on desktop computers and PCMCIA-GPIB cards on the notebook computers. The machines where this occur do not have any cards installed at the time of the error. Are they needed to install the driver?
    Thanks for any answers you can provide!
    - Bob Boyd

    Bob Boyd,
    You do not need the hardware in place at the time of driver installation. Are you installing this NI-488.2 from a CD did you download a copy from our website?
    I would try to download a fresh copy of the driver (perhaps even version 2.2) from our website and try it again.
    It may be a problem with the microsoft installer program that windows installers have to use. You can update your version of the microsoft installer by visiting there website and searching for the latest version (2.0 I believe). Let us know if this helps!
    Craig H.
    NI Applications Engineering

  • How do I install the lastest Ver? Why do I get a Windows error message?

    I have Acrobat Pro 1.1.8. The Help menu command Check for Updates says NO UPDATES AVAILABLE.
    A tray message in Windows 7 (32 bit) says to SOLVE A PROBLEM WITH ADOBE ACROBAT... and it takes me to my download page at Adobe where Acrobat Pro versions 11.0.01 through 11.0.05 are listed.
    When I try to install any of the newer versions I get an error msg saying "...upgrade patch may update a different version of the program..."
    What is the latest Acrobat Pro Version? How do I install it? Why do I get the Window error message?

    Please try to install the Acrobat update manually from the following page:
    Acrobat X: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5641 (Acrobat X Pro 10.1.8)
    Acrobat XI : http://www.adobe.com/support/downloads/detail.jsp?ftpID=5643 (Acrobat XI Pro 11.0.0.4) and then
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5673 (Acrobat XI Pro 11.0.0.5)

  • Why do I get a "script error" message from Adobe flash player?  It is installed as a part of my browser.IE 11

    Why do I get a "script error"  from flash player when it is not installed separately?  It is part of my browser--IE 11

    Same error message, I disabled tab mix and made sure I only have the newest version of Java, restarted firefox, now it seems to be fine no error yet on Pogo games or pictures upload to ebay which were the biggest problems besides hanging. I had also had disabled AVG secure search yesterday but that did not solve the issue. Now I will try to add back in AVG search...I have very few adds ons, also the note embedded about re- installing a toolbar went away, my old one did not work with FF4, so I installed Yahoo toolbar but the message still did not go away until I applied this fix. Hopes this helps someone..

  • How do I add an included jsp to my project and not get a compile error?

    Hi,
    I have a project with some included jsp's however if I add them to the project, when I build I get a compile error as the jsp uses variables from the calling jsp.
    Any ideas on how to get round this.
    Thanks
    DM

    There are two main ways that I deal with this problem (yeah, it sucks, but it sort of makes sense that it happens...) (I presume you're talking static include here...)
    #1 - name the included file with an extension that JDev will not try to compile (.jspf - for JSP Fragment - is common) Then it will be compiled in with the including page, but won't gag the project compilation. Advantage - it works, and you find out at compile time if you hosed up the variable reference. Disadvantage: JDev tries really, really, really hard to keep you from naming a JSP file with an extension of .jspf I normally create the .jsp file in JDev, remove it from the project, rename the file outside of JDeveloper, then add it back to the project - pain in the butt, but it works (and you probably aren't building scads of these included files...)
    #2 - add the variable to be referenced to the pageContext implicit object as an attribute in your including page (ex, <% pageContext.setAttribute("myVar", myVar); %>), then reference that attribute in your included JSP (ex, <%= pageContext.getAttribute("myVar") %>) . It will compile fine (as the compiler has no way of knowing if the pageContext attribute actually exists, it just sees that the syntax is good and motors along merrily. Advantage: don't have to have differently named JSP files (which isn't actually a big deal). Disadvantage: You hvae to add the variable to the pageContext (and you have to always add Object derivatives, as primitives won't go into a hash) and you don't find out if you screwed the variable up until runtime (when it tries the getAttribute, which could return null if you didn't properly set it to start with) vs at compile-time w/ the direct reference.
    HTH!
    Jim

  • Getting a compilation error. Says ; is missing in line 34

    // A program to demonstrate the use of JList's
    //Import Statements
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ListTest extends JFrame{
         //Class Declarations
         JList list;
         String[] colorNames = {"black", "blue", "green", "red"};
         Color[] colors  = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
         //Main Program that starts Execution
         public static void main(String[] args) {
              ListTest test =  new ListTest();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //Constructor
         public ListTest()
              super("List Test Demo");
              Container container  = getContentPane();
              container.setLayout(new FlowLayout());
              list = new JList(colorNames);
              list.setVisibleRowCount(3);
              list.setSelectedIndex(0);
              //Anonymous Inner Class
              list.addListSelectionListener() {
                   new ListSelectionListener(){
                   public void valueChanged( ListSelectionEvent e)
                        container.setBackground(colors[colorlist.getSelectedIndex()]);
              container.add(list);
              pack();
              setVisible(true);
    }// End of Class ListTestGetting the following compilatioN Error
    Getting a compilation error. Says ; is missing in line 34

    // A program to demonstrate the use of JList's
    //Import Statements
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ListTest extends JFrame{
         //Class Declarations
         JList list;
         String[] colorNames = {"black", "blue", "green", "red"};
         Color[] colors  = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
         //Main Program that starts Execution
         public static void main(String[] args) {
              ListTest test =  new ListTest();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //Constructor
         public ListTest()
              super("List Test Demo");
              Container container  = getContentPane();
              container.setLayout(new FlowLayout());
              list = new JList(colorNames);
              list.setVisibleRowCount(3);
              list.setSelectedIndex(0);
              //Anonymous Inner Class
              list.addListSelectionListener (
                   new ListSelectionListener() {
                   public void valueChanged( ListSelectionEvent e)
                        container.setBackground(colors[colorlist.getSelectedIndex()]);
              container.add(list);
              pack();
              setVisible(true);
    }// End of Class ListTestCannot resolve symbol ListSelectionListener [LINE 36]

  • Why am I getting a mf error domain 1032 message and when I put my password in it keeps coming up?

    Why am I getting a mf error domain 1032 message when trying to get my email?  I put password in and it keeps going back to error message?

    Try what Google threw out:
    Tap Settings > Mail, Contacts, Calendar and delete your email account.
    Then tap Settings > Safari > and Tap Clear History and Clear Cookies and Data.
    Now tap Settings > Mail, Contacts, Calendar and re-enter your email account details.

  • Why am I getting a -50 error when moving music to my iTouch?

    Why am I getting a -50 error when moving music to my iTouch?

    As Jim as stated, you do not want the OS, video app, and media all competing for hard drive access.
    It may have worked before, but that doesn't mean will work henceforth, as you have learned.
    A FW800 portable drive will cost about $75.00.

  • Why do I get Publish Failed Error Message when trying to publish a project to SWF. I am using Captivate 6 (32 Bit) Version 6.0.1.240. I have tried clearing the Cache and renaming my Preferences folder

    Why do I get Publish Failed Error Message when trying to publish a project to SWF. I am using Captivate 6 (32 Bit) Version 6.0.1.240. I have tried clearing the Cache and renaming my Preferences folder

    Try the troubleshooting tips here:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/basic-troubleshooting-tech niques
    You may have something in your project on one of the slides that is tripping up the publishing process.

  • Why am I getting the following error message? You can't open the application "Microsoft Word" because PowerPC applications are no longer supported.  This is new...

    Why am I getting the following error message? "You can’t open the application “Microsoft Word” because PowerPC applications are no longer supported."  I never used to have a proble!

    Only Office for Mac 2008 and 2011 will run on Mavericks. Microsoft support for the former package ended in April 2013. If you do not want to spend the money, you might download and try the donation-ware (free) LibreOffice Suite. No ribbon bar crap. Supports about any document created on Windows.

  • Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Hi MsSunnyD,
    Try uninstalling Adobe Acrobat using the Adobe cleaner Tool  http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, try installing Adobe Reader XI. That should resolve the problem.
    Regards,
    Ajlan Huda.

  • Why do i get an "unknown error" when entering my apple id

    Why am I getting an "unknown error" message when I am trying to log into itunes with my apple id & password. Its a second mac pro and I was logged in and then logged out, now I can not log back in.. strange

    Have you tried to download anything else?

  • Why am I getting the 404 error when on pinterest?

    Why am I getting the 404 error when on pinterest?  This is happening on my iMac and macbook.
    I have tried to clear my history, tried in safari and in firefox, enabled and disabled Javascript, and allowed 3rd party sites.
    Please help!!

    No you are not alone. I tried to create an apple ID and then access the app store and itunes and got the same error code. Spoke with tech support for over 45 minutes and we tried everything. Tech support seemed to think that it had something to do with credit card registration. Suggested that I use a different credit card. I modified my account settings with a different card and still had the same errors. At this time I have no confidence that Apple has any idea what the problem is.

  • Why do I get the message "error connecting to acrobat"?

    Why am I getting the message "error connecting to the acrobat..." when I try to open a pdf file from the internet? I have the adobe reader installed on my tablet. This is something that just started happening. I did not have this problem before. I hope that someone can help.

    Hi,
    Thanks for writing to us. Are you able to view the file after this message? Is this message coming every time when you are trying to open a file from internet? If possible please share the file or link from where you are trying to open this file with us on  [email protected]  so that we can resolve the issue you are facing.
    Thanks,
    Shefali

Maybe you are looking for