Using MS Visual Studio C++ 2008 Express, the "LoadLibrary" function doesn't recognize the NI-VISA DLL: "visa32.dll". I've included all the paths to the DLL. Is there a problem with this C++ compiler?

I'm using MS Visual Studio C++ 2008 Express.  I've included all the paths to the DLL, "visa32.dll" but the LoadLibrary("visa32.dll") call returns the statement that can't convert character string to LPCSTR (pointer).  I ran the same code with the Portland Group compiler (which I no longer have) and there was not a problem accessing the DLL.  Is there some requirement for the C++ 2008 Express compiler that needs to be met?

Hello jterry,
If you compile as Unicode you need to pass Unicode strings to
Win32 APIs which have LPTSTR or LPWSTR string.
When you want to write code compilable for Unicode
and Ansi just enclose all string constants in _T(). In your case:
LoadLibrary(_T("visa32.dll"))
You can look at this post on the microsoft discussion forums for more information.  Have a great day.
O. Proulx
National Instruments
www.ni.com/support

Similar Messages

  • When connecting my ipod to PC I get message Theres a problem with this drive

    I have a new computer
    When I connect my Ipod to it I get the message 'theres a problem with this drive
    scan the drive now to fix it - no idea what this means

    I have a new computer
    When I connect my Ipod to it I get the message 'theres a problem with this drive
    scan the drive now to fix it - no idea what this means

  • Is there a problem with this latest update?

    I have tried several times to instal latest player and for some reason it will not get past step 2 of 3. I can download and hit save, run and then nothing. Is there a problem with this latest update? I use Vista and run Firefox

    I tried to install the one you just suggested on 4/14 and it got as far as opening the installer box then went to white screen for 15min till i had to restart computer. And this morning windows updated and again flash wanted an update so after cleaning flash memory and running a cleaner i tried again. and this time got to step 2of 3 again. I am still running 16.0.0.30.5 It will not update any further
          From: m_vargas <[email protected]>
    To: John Ockajik <[email protected]>
    Sent: Tuesday, April 14, 2015 10:50 AM
    Subject:  Is there a problem with this latest update?
    Is there a problem with this latest update?
    created by m_vargas in Installing Flash Player - View the full discussionHi, We have several different installer files.  Having the file name narrows down which one is being problematic. There was a Flash Player release earlier this morning and several files have been updated.  Please try downloading again.  If you experience the same problem, please clear the browser cache, as the old one may still be downloading.  If the issue persists after clearing the browser cache, please post the name of the file that is being downloaded. Thank you. --Maria If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7437403#7437403 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7437403#7437403 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" 
    Start a new discussion in Installing Flash Player by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I just upgraded to FF 7 and now when I open Firefox none of my history or cookies have been saved. I have checked in options that Firefox will remember my history and all relevant settings but it is not doing it. Is there a problem with this on FF7?

    I just upgraded to FF7 & now when I open it none of my history or cookies are saved. I have checked in options that Firefox will remember my history and all relevant settings but it is not doing it. Is there a problem with FF7?

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    See also "Help About".
    *Tap the Alt key or press F10 to show the Menu bar.
    In current Firefox releases (29 and later) the orange Firefox menu button has been replaced by the three-bar Firefox Menu button at the far right end of the Navigation Toolbar and this button is always visible, whether you have the menu bar visible or hidden<br>A consequence of this location is that you no longer can hide the Navigation Toolbar
    *There is a star like button next to the search bar on the Navigation Toolbar to bookmark the current web page and a "Show your bookmarks" button next to it to open the Bookmarks in a drop down menu.<br>You can find "Show All Bookmarks" to open the Bookmarks Manager (Library) at the bottom of this drop-down list
    *If you bookmark a page then "Bookmark This Page" in the Bookmarks menu changes to "Edit This Bookmark"
    *You can make the title bar visible via the "Title Bar" button at the bottom left in the Customize palette window
    It is still possible to have the menu bar visible via the right-click context menu of a toolbar to have menus like the File menu with Print (Ctrl+P) and Print Preview and the Bookmarks menu available.
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox

  • Latest Firefox version does not have my persona on it and will not allow me to add it on. Is there a problem with this version or have I been hacked?

    my wife was using another application and when she minimized this app, firefox was updating without any prompting to us, which I thought was unusual. The "new' firefox page just doesn't look right. The Norton toolbar is no longer there, and, most curious of all, our persona background, which we've used for a very long time, was not there. When I try to change the background, I cannot. I am concerned that a hacker may be impersonating firefox. Am I being paranoid or is this a common problem?

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    See also "Help About".
    *Tap the Alt key or press F10 to show the Menu bar.
    In current Firefox releases (29 and later) the orange Firefox menu button has been replaced by the three-bar Firefox Menu button at the far right end of the Navigation Toolbar and this button is always visible, whether you have the menu bar visible or hidden<br>A consequence of this location is that you no longer can hide the Navigation Toolbar
    *There is a star like button next to the search bar on the Navigation Toolbar to bookmark the current web page and a "Show your bookmarks" button next to it to open the Bookmarks in a drop down menu.<br>You can find "Show All Bookmarks" to open the Bookmarks Manager (Library) at the bottom of this drop-down list
    *If you bookmark a page then "Bookmark This Page" in the Bookmarks menu changes to "Edit This Bookmark"
    *You can make the title bar visible via the "Title Bar" button at the bottom left in the Customize palette window
    It is still possible to have the menu bar visible via the right-click context menu of a toolbar to have menus like the File menu with Print (Ctrl+P) and Print Preview and the Bookmarks menu available.
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox

  • Error: "There is problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."

    So i tried to upgrade my iTunes to latest 10.5 and towards the end of installation, I was prompted with this error. Can anyone advised what is wrong and what steps to take to upgrade my iTunes?

    Just in case, let's try a standalone AppleSoftwareUpdate.msi install.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe, and select "Extract to iTunesSetup". WinRAR will expand the contents of the file into a folder called "iTunesSetup".
    Go into the folder and doubleclick the AppleSoftwareUpdate.msi to do a standalone ASU install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleSoftwareUpdate.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If not, what error message do you get? (Precise text, please.)

  • Can I use the migration assistant to migrate my Mac Book Pro to my new MacBook Air. Is there any problem with this since the platforms are not identical?

    I have Mac Book Pro ( bought November 2010) that I want to migrate all of the data and applications from, over to a new Mac Book Air? It was suggested that I use the Migration Tool as it is supposed to make an exact clone of the Mac Book Pro machine and put it on the Mac Boor Air. Can that really work if you are going from one platform to another?
    I was also told I could restore the data from my time capsule to the MacBook Air.
    I'm looking for the easiest method that will leave me with as little to do as possible to get up an running on the Mac Book Air afterwards. I'm not a real strong user and don't want to have to reconfigure applications to make them work.
    Thanks

    Welcome to the Apple Support Communities
    Connecting your MacBook Pro and your MacBook Air will be the fastest way, but you have to spend money on cables and adapters (also, your MacBook Pro doesn't support Thunderbolt).
    As you have a Time Capsule, one thing you can do is to start your MacBook Pro and make a Time Machine backup. Then, turn on your MacBook Air and set it up. Setup Assistant will ask you to restore a backup, so select the option to restore the backup from the Time Capsule and be patient. This can take a lot of time if you have to migrate a lot of files

  • Is There A Problem With This Website??

    For the past two days, every time I've tried to review "My Questions" and see what remains unanswered, I've been getting:
    500 previousPageStart is undefined.
    Resin Professional 3.0.23 (built Mon, 22 Jan 2007 02:25:17 PST)
    Is there somewhere to report such a bug?
    --PS

    I don't know if it's growing pains or what... but they have been having problems since they changed the site format (about a month or so ago?). It seems they fixed the login problem they were having... but now we seem to get the problem you mentioned from time to time. If you login and get that error, you did actually log in. Just use your browsers back button to go back a few pages until you get back into the forums and hit your browsers refresh button... you'll then get the usual stuff you would have when you're logged in (My Posts, My Subscriptions, My Settings, etc). Fortunately, it doesn't seem seem to happen all the time... but it can be frustrating.

  • I am trying to upgrade to itunes 10.5 on my pc which using windows xp but it keep saying there is a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personel or package vendor

    I am trying to upgrade to itunes 10.5 on my pc which is using windows xp but i keep getting an error message stating that there is problem with this windows installer package. A pogram run as part of the setup did not finish as expected. Contact your suppor personal or package vendor.

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • Vector, what is the problem with this code?

    Vector, what is the problem with this code?
    63  private java.util.Vector data=new Vector();
    64  Vector aaaaa=new Vector();
    65   data.addElement(aaaaa);
    74  aaaaa.addElement(new String("Mary"));on compiling this code, the error is
    TableDemo.java:65: <identifier> expected
                    data.addElement(aaaaa);
                                   ^
    TableDemo.java:74: <identifier> expected
                    aaaaa.addElement(new String("Mary"));
                                    ^
    TableDemo.java:65: package data does not exist
                    data.addElement(aaaaa);
                        ^
    TableDemo.java:74: package aaaaa does not exist
                    aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?

    I can see many:
    1. i assume your code snip is inside a method. a local variable can not be declare private.
    2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
    3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
    Here is a sample that would compile...:
    public class QuickMain {
         public static void main(String[] args) {
              java.util.Vector data=new java.util.Vector();
              java.util.Vector aaaaa=new java.util.Vector();
              data.addElement(aaaaa);
              aaaaa.addElement(new String("Mary"));
    }

  • There is a problem with this connection's security certificate The remote computer cannot be authenticated due to problems with its security certificate. Security certificate problems might indicate an attempt to fool you or intercept any data you send

    Hi,
    I have this Windows 2008 R2 on which I installed remoteapp some years ago.
    Now the certificate expired and I get the message
    "There is a problem with this connection's security certificate
    The remote computer cannot be authenticated due to problems with its security certificate.
    Security certificate problems might indicate an attempt to fool you or intercept any data you send to the remote computer."
    How should I renew the certificate? I already went to certification store and tried to renew certificate with same key but then it says "the request contains nor certificate template information".
    Please advise.
    J.
    J.
    Jan Hoedt

    Does the computer account have Enroll permission to the certificate template?
    From the Server running your CA, run mmc, click File then Add/Remove Snap-in...
    Add Certificate Templates and click OK.
    Find the certificate template, then right click and select properties.  On my CA its call ed RemoteDesktopComputers but might be called something different depending on what what template your certificate is based on.
    On the security tab, click Oblect types, check Computers then OK. Enter the Computername and click OK.  Then give your computer account Enroll permisssion.
    HTH,
    JB

  • The installer has encountered an unexpected error installing this package.This may indicate a problem with this package. The error code is 2869

    Hi,
    I am getting error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869." while installing SAP B1DE.
    Note:
    Downloaded the B1DE from B1DE:SAP Business One Development Environment Tools
    Using Window XP , .Net 2008, SAP B1 8.81 Version
    Company Name, Contact Person, Namespace all were given while installing. All of its length is less than 8
    Any help is appreciated.
    Thanks in advance.
    Parvatha Solai.N

    Hi,
    Try post a comment in B1DE 2.0.1 new version! blog.
    Beni.

  • I  spend good money for my iPhone i have the iPhone 5 with the new charger slot which is smaller. I have been through at least 3 charging cords and this is not acceptable to me. i never had a problem with this on my older phone. apple needs to correct tho

    I  spend good money for my iPhone i have the iPhone 5 with the new charger slot which is smaller. I have been through at least 3 charging cords and this is not acceptable to me. i never had a problem with this on my older phone. apple needs to correct this and reimburse me for this cord.

    Charging cords are covered by the iPhone warranty or their own warranty
    if puchased separately. Take your iPhone and the cords to your local
    Apple store for evaluation and possible replacement.

  • A problem with this webpage caused Internet Explorer (IE9) to close and reopen the tab

    I have IE9 (using 32-bit version) installed on a relatively new laptop with Windows 7 64-bit. Up until last weekend IE9 worked fine and Flash Player worked fine too.
    At the weekend a webpage asked for Flash Player to be updated - which I did. Ever since then whenever I go to a webpage needing Flash Player I get the message "A problem with this webpage caused Internet Explorer to close and reopen the tab". This happens twice and then an IE9 error page.
    I have read the discussions in here about the problems with Flash Player 10.3 and have tried the various solutions. I have updated to 10.3.181.16 having tried 15 and 14 previously. Same problem.
    I have reset IE9. Same problem.
    I have disabled all add-ons which stops the problem. If I enable just the Flash Player add-on then the problem recurs. Since there are so many webpages that use Flash I do not want to run my browser without this add-on running.
    If I enable the add-on and run IE9 using software rendering instead of GPU rendering then I don't get the problem. However, this isn't exactly making the best use of the resources on my laptop.
    This may well all be related to the 10.3 problems but no one seems to have mentioned having a problem with tabs closing and reopening so I thought I would post on here to check.
    Any suggestions for how to solve this (other than using software rendering)?

    Thanks again for your reply. I appreciate the time you have taken to respond.
    I think, however, you misunderstand the problem. IE9 does not reopen the tabs on just one website - it is doing this on every website that needs Flash Player. Therefore, running in Compatibility mode is not an option. In fact, because IE9 reopens the tabs so quickly and then ends up with an error page, I cannot even click the Compatibility button anyway.
    I could use ActiveX filtering - true. All that this means is that Flash does not play on any of the websites. When I want to re-enable ActiveX for a particular website where I need to see the Flash Player item, this just triggers the error.
    This problem also happened on .14, .15 and well as the current .16 version. It did not happen with the previous version of Flash Player that I had on the system (version 10.2 I think).
    The fact is that either Flash Player or IE9 or both is/are broken. The two choices I am still left with are:
    1. Use software rendering (which contradicts the latest advertisements for IE9 about unleashing the power of IE)
    2. Use another browser - I have no problems with either Firefox or Chrome

Maybe you are looking for