Problems porting a legacy C++ library with "const char *"

I need some help, i'm trying to "port" a legacy Windows C++ library into a Windows Runtime Component Static Library.
I am getting hundreds of errors of the this type:
  argument of type "const char *" is incompatible with parameter of type "const wchar_t *"
Short of a global edit, is there a better solution for this?

Without context it's hard to say. Depending on what the library does you may be able to provide an interface on the edge which takes wchar_t*s and converts them to char*s then calls the internal functions.

Similar Messages

  • Impossible to get access to my shared library with wifi extender

    Hi,
    Due to a weak wifi signal provided by my internent box, I have bought a wifi extender (repeater). Now my signal is good in all my house but when I am connected to the extender I cannot get or a very difficult access to my Itunes library. The name of the wifi network are not the same. The wifi from my box is called XXXXX and the other is called XXXXX_EXT. I have no problem to access at my library with the wifi from my box. Unfortunately, my apple TV 2 is too far from my box and I need to use the extender.
    Have you any idea to fix the problem ?
    Thanks

    Mikey,
    As Labviewguru said, calling a LabVIEW DLL is no different than calling any other DLL from C. You will need your LabVIEW DLL, the .lib and .h files for your C code and the LabVIEW Run-Time Engine for the version of LabVIEW that the DLL was built with. Other than that, everything else is the same.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Problem on WinXP / Labview 6.1 with VISA (serial port)

    There is a problem on WinXP / Labview 6.1 with VISA which i use to poll the state lines of the serial port. The only functions that i use are "VISA Open", "Find Resource", line state properties and "VISA close".
    On my own machine (WinME) it works fine as a standalone application (with runtime engine in the same direction), even if i rename the Labview directory so that Labview is not found.
    From my VXIpnp directory i deleted all but these files:
    directory "Win95",
    subdirectory "Bin" containing "NiViAsrl.dll",
    subdirectory "NIvisa" containing "visaconf.dll".
    When shipping this to WinXP (and copying "VXIpnp" to the root directory), the serial port was not found, so i renamed the direction "Win95" to "
    WinNT", but this did not work also.
    I installed the VISA server, although it seems not to be required -- no result.
    Final question:
    What must i do for distributing the program as a standalone application for all windows platforms?

    Hey Joachim,
    In order to create an installer that includes the VISA Run-time engine for serial IO you will have to purchase LabVIEW 7.x. See screen shot. This packages a small compact version of the run-time that can only be used for serial, but it takes up much less space. The installer that I created has my application, the LV Run-time, and the VISA run-time and it is about 26 MB.
    That is much smaller than if I had to include the 32 MB LV 7.1 run-time and the 14 MB VISA run-time separately. It would have been even smaller if I would have uncheck some of the items that I wasn't using.
    -Josh
    Attachments:
    advanced.JPG ‏31 KB

  • HT1386 I've encountered a problem while synching my entire library. After synching I've noticed that only half of my library is playable on my iPhone. And a red circle with a Stop button appears next to the songs that didn't sync. Why is this happening?

    I've encountered a problem while synching my entire library. After synching I've noticed that only half of my library is playable on my iPhone. And a red circle with a Stop button appears next to the songs that didn't sync. Why is this happening?

    media in the itunes lib but not connected when the sync take part will fail in this manner
    media in a not supported format on ios will fail to sync
    http://www.apple.com/iphone-5s/specs/
    Audio formats supported: AAC (8 to 320 Kbps), Protected AAC (from iTunes Store), HE-AAC, MP3 (8 to 320 Kbps), MP3 VBR, Audible (formats 2, 3, 4, Audible Enhanced Audio, AAX, and AAX+), Apple Lossless, AIFF, and WAV
    User-configurable maximum volume limit

  • Problem synching iPhoto library with iPhone

    I was using OS X Lion synching my iPhoto library with my iPhone 3GS with IOS 4 and everything was working perfect.
    When I updated to IOS 5 start the problem, because doesn't sync all the photos. It's leaving around 100 photos without synchronization.
    At the end of any sync process (regardless if I do it through wifi or USB) show a message saying that was unable to sync certain number of photos.
    Any sugestions?
    Thank.

    Have you tried deleting some data off...may be some music/videos (as long as you have them backed up elsewhere)? I'd try clearing off a couple of GB & then try syncing the photos again. I had the same issue a while ago...it said that not everything could be synced...I was fairly low on HD space but not near zero etc.
    Ben

  • I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    Reset the PRAM.
    http://support.apple.com/kb/HT1379
    If that fails, reset the PMU.
    Scroll down the following page and click the G5 link for instructions:
    http://support.apple.com/kb/ht1939

  • About a month ago I couldn't access 100s of pix from my iPhoto library.  I then went through the process of "re-finding" all missing pix.  I 2x checked that they opened.  Now, I'm having the same original problem!  What's iPhoto doin with my pix?

    About a month ago I couldn't access 100s of pix from my iPhoto library.  I then went through the process of "re-finding" all missing pix.  I 2x checked that they opened.  Now, I'm having the same original problem!  What's iPhoto doing with my pix?  Is there a "batch" fix?

    Try rebuilding the library.
    Hold down the Option and Command keys then launch iPhoto.
    Select:  Repar the iPhoto Library Database
    Click Rebuild.

  • Porting a Legacy Application

    I have been tasked with porting a legacy proC application from Oracle 8.1.5 to 8.1.7.
    The link fails because the library Libnoss8.a is no longer available, so I dropped it from the makefile.
    Now I get an unresolved external .snljgvm which I believe to be a new addition in one of the other oracle libraries.
    Can anybody give me a definitive list of which libraries I need to link or a pointer to some documentation where the libraries are explained?

    Here is a relevant metalink article:
    Thread Status: Closed
    From: Can Vu 23-Mar-00 22:21
    Subject: Sqlplus getting unresolved symbol
    RDBMS Version: 8.1.5
    Operating System and Version: Linux RedHat 6.0
    Error Number (if applicable):
    Product (i.e. SQL*Loader, Import, etc.):
    Product Version:
    Sqlplus getting unresolved symbol
    8i on Linux (RedHat 6.0) - unresolved symbol
    I'm getting:
    sqlplus: error in loading shared libraries:
    /home/oracle/product/8.1.5./lib/libclntsh.so.8.0: undefined symbol: nauzaoss
    What could be wrong here?
    Thanks for you help.
    From: Oracle, Tom Villane 24-Mar-00 13:37
    Subject: Re : Sqlplus getting unresolved symbol
    Hi,
    Recreate the libclntsh.so library by running
    $ORACLE_HOME/bin/genclntsh
    Now check the libclntsh.so lib to see that the symbol is defined.
    nm -r libclntsh.so|grep -i nauzaoss
    It should return one line that has a "T" in it, similar to
    001cd3d0 T nauzaos
    Now try SQLPLUS again.
    Let me know if you get an error.
    Regards
    Tom Villane
    Metalink Analyst
    From: Michael George III 07-Jul-00 22:21
    Subject: Re : Sqlplus getting unresolved symbol
    I am having the same problem on SOLARIS 2.7 ... Any idea how to fix it here too?
    My environment
    Solaris 2.7 64-bit w/lots of patches
    Oracle 8.1.6 64-Bit
    EA Studio (Some middle ware development crap)
    Anway, they keep getting the error message
    relocation error: file /usr/local/jaguar/EAStudio/JaguarCTS35/lib/libpbo8470x.so: symbol nauzaoss: referenced symbol not found
    I did some quick searches of MetaLinks and DejaNews and people suggested modfying and running genclntsh.sh with a few more options. Specifically, I changed one line
    BEFORE
    LCLIENT="-client8"
    AFTER
    LCLIENT="-lclient8 -lnoss8 -lnoname8 -lnsslb8 -lntcp8 -lntcps8 -lnbeq8 -lnus8 -lntns8 -lnhost8"
    and I get the following linker error messages
    ld: fatal: library -lnoss8: not found
    ld: fatal: library -lnoss8: not found
    ld: fatal: library -lnoss8: not found
    ld: fatal: library -lnoss8: not found
    ld: fatal: File processing errors. No output written to /u1/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
    Is this a linker bug or is noss8 really not out there? Please help if you can.. Again this is Oracle 8.1.6 on Solaris 2.7 ... Also, if I take out "-lnoss8" the script rebuilds "libclntsh.so.8.0" without any errors. I am stumped.
    Thanks!
    Michael George III
    perotsystems Corporation / Rouge Steel Account
    Office: 313.317.6724
    email1: [email protected]
    email2: [email protected]
    From: Oracle, Tom Villane 14-Jul-00 14:12
    Subject: Re : Re : Sqlplus getting unresolved symbol
    Hi,
    You should check with the "EA Studio" vendor to determine if it is certified to be used with Oracle 8.1.6
    I haven't found that the symbol nauzaoss is part of 8.1.6
    The libnoss8.a is part of 8.1.5 not 8.1.6, so you will not find libnoss8.a in the 8.1.6 distribution.
    Regards
    Tom Villane
    Metalink Analyst
    Tom Best

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • Is there a way of wiping ALL Safari data, i.e. restoring Safari ? I think my Safari has a virus..as every time I open it, a web page called 'search quick' comes up. Its bombarded my Safari with constant pop up adverts almost every time I click!

    is there a way of wiping ALL Safari data, i.e. restoring Safari ? I think my Safari has a virus..as every time I open it, a web page called 'search quick' comes up. Its bombarded my Safari with constant pop up adverts almost every time I click!

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Trying to use the JSSE library with Jrocket 7.0

    Hi All,
    I HAC who is trying to use the JSSE library with Jrocket 7.0.
    Sometimes the socket works and sometimes it does not. It throws the below
    exception,
    The exception stacktrace is given below:
    java.net.SocketException: SSL implementation not available
    at
    javax.net.ssl.DefaultSSLSocketFactory.createSocket(Ljava.lang.String;I)Ljava
    .net.Socket;(Unknown Source)
    at
    com.twister.transunion.TransUnionUtils.sendRequest(Ljava.lang.String;)Ljava.
    lang.String;(Unknown Source)
    at
    com.twister.transunion.TransUnionUtils.parseRequest(Lcom.twister.transunion.
    TransUnionRequest;)Z(Unknown Source)
    at
    com.twister.struts.signup.Signup5Action.button_apply_now(Lorg.apache.struts.
    action.ActionMapping;Lorg.apache.struts.action.ActionForm;Ljavax.servlet.htt
    p.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Lorg.apache.st
    ruts.action.ActionForward;(Unknown Source)
    at
    COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.la
    ng.Object;)Ljava.lang.Object;(Unknown Source)
    at
    COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang
    .Object;)Ljava.lang.Object;(Unknown Sou
    the line of code causing the stack trace is:
    Socket socket =
    javax.net.ssl.SSLSocketFactory.getDefault().createSocket(HOST, PORT);
    He has added the following line to his jre/lib/security/java.security file:
    security.provider.3=com.sun.net.ssl.internal.ssl.Provider
    and he has added the JSSE jar files to the jre/lib/ext directory.
    The problem occurs when SSL is enabled in the config.xml file (e.g. <SSL
    Enabled="true" ...>). It does NOT occur when SSL is disabled.
    When SSL is disabled, the following code shows all three providers as
    defined in the java.security file. If SSL is enabled then he only sees the
    default 2 implementation and NOT the one he added above.
    java.security.Provider[] a = java.security.Security.getProviders();
    for (int i=0; i < a.length; i++)
    System.out.println("name: " + a.getName());
    System.out.println("ver: " + a[i].getVersion());
    System.out.println("info: " + a[i].getInfo());
    The problem is that client does not want to use WebLogic specific classes to
    create an SSL socket. As well he do NOT wish to dynamically register the
    SunJSSE provider. Since this setup works when SSL is disabled in WebLogic he
    believes he has configured everything properly.
    It appears to me that WebLogic is removing the JSSE as a security provider
    if SSL is enabled.
    Is it the expected behaviour? and Is it possible to statically register the
    JSSE provider in the jre/lib/security/java.security file ?
    Any pointers will be appreciated,
    Thanks in advance,
    Rubesh

    Hi Howard, just trawling through the Labview TE issues as I myself have started to work on a similar issue. I have now infact upgraded the Labview Test Executive to work in 7.1 ok (both development and Runtime).
    Using XP I had no issues upgrading in the development environment - creating the run-time version was not as easy but manged to do so with help from the Application Builder. I have also tested the SQL function (as i log to Oracle) and a basic audio test using a DSA4551 - again both seem to be upgraded with no issues.
    regards, paul.

  • Problems backing up I-tunes library to external hard drive.

    Help - I'm having problems backing up I-tunes library to external hard drive. The drive appears on the desktop but when I try to drag in my i-tunes music folder I just get the circle with a line through it symbol. I can drag items from my mac to a different 4 gig memory stick with no problems. I put some music onto the hard drive from a windows p.c. and that dragged into my i-tunes fine. Any help would be much appreciated.

    i'm guessing the external HD is NTFS formatted, which your Mac cannot write to (read only).
    you will either have to reformat it (FAT32 or, better yet, for Mac) or install the _*NTFS 3G*_ driver.
    JGG

  • Why my new Mac mini  DVI dual link mini display port adapter doesn't work  with my 30"display (LG W3000H)?

    Hello There
    Can any of you advise on the below? Tried to connect Mac mini with a 30" display through a DVI dual link mini display port adapter. For the first try Mac mini go connected to the display, then i've chosen the highest resolution (2560x1600, native) and right at that moment they got disconected. Since then the display stays black. What can be the issue, is it possible DVI dual link mini display port adapter is not compatible with 30"display (LG W3000H)? It works with DVI male-male cable plus DVI HDMI adapter as long as the resolution stays under 1280x800. Any idea is much appreciated.
    Thank you, Vera

    Hi,
    I can report that my Mac Mini Intel Duo connected instantly and without even having to set it up (on the first try) with my 1366x768 native resolution DELL 50" Plasma Display. It's so beautiful that I just want to stand there and fondle my HDTV as I drool haplessly like Homer Simpson with a doughnut in his mouth. Seriously, no problems.... guess I bought the right cable (ebay).
    Before you buy a Duo, make sure you're aware of the airport and bluetooth issues that so many (maybe everyone who tries to use them together) are having. It seems that bluetooth interferes with airport, or maybe the other way around. Anyway, it's messed up. Also, Airport reception is generally VERY poor with the new Intel Mac Mini.
    Despite these things, I still love mine (I now have 2 base stations and an airport express for my powerhouse wireless needs, and an external DLink bluetooth-2-USB dongle solved the bluetooth/airport issues... in my case).
    FWIW,
    awk
    667-MHz Ti PowerBook G4.   Mac OS X (10.3.9)  

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • How can I copy my iTunes library with playcount information to a new computer?!?

    Hello,
    I'm about to get a new computer. I have all my music on a external HD, so I won't have problems preserving my music. But I would like to preserve other information too. Especially the play count information. I think it's interesting how my top 25-most-played looks like, and the play count list I have now, took me 2 years to get.
    So my question is: Does anyone know how I can copy my iTunes library with all its information (play count, rating, comments, images, last played date etc.) to a new computer?
    Thanks a lot!

    Connect the external HDD to the iMac, launch iTunes while holding down the Option key. Choose the option to select library and navigate to the top level folder of the iTunes media on the external. Select it and click OK.

Maybe you are looking for