Example of using VS2005 as the external compiler

I have seen that CVI 8.1 has "External Compiler Support" and even several questions indicating that users have done this. But I find that the instructions on how to do this are vague. There is nothing quite like a real life example.
I've already seen that in the Options --> Build Option dialog, I need to select compatibility with Visual C/C++ and the compiler for the release configuration is vc2005. But then there is a list of compiler defines. I understand that there are typically many others than just /DWIN32_LEAN_AND_MEAN. What are they? How do I know? Do I need WINVER? Am I going to need to include some specific headers?
In the Build --> "External Compiler Support" the UIR Callbacks has several options, but no explanation of what this is about. The Help page is clearly written under the assumption that the user has done this before and the Help page is just some brief reminders. If I select None, does that mean no UIR? If I select Source, do I have to supply it? Same with Object. Some of the documentation seems to indicate that using LoadExternalModule isn't really an option. So why is there a checkbox? If I check it, what do I need for the Other Symbols?
How do I build the Debug version with the external compiler?
How do I force the linker to produce a .PDB file (which is really the whole point of this exercise)? Even in the release version?
I do I suppress boring error messages? Using #pragma?
Sorry to be so long winded, but there's nothing quite like a working example. Something as simple as a textbox with "Hello, World!" and a button would be very helpful.
Thanks for your help!
-- Harold Bamford

Hassan A wrote:
Can you please explain a little bit more on what you mean by forcing the linker to produce a .PDB file?
I am making CVI programs that use a DLL produced by Visual Studio 2005. In that DLL, I can often detect terrible situations and as part of the error reporting, I produce a minidump (.dmp) to be used with WinDbg or other debugger. Mostly to get a usable stacktrace and check variable values.
However, the resulting .dmp file is unusable as there is no program database (.PDB) for the CVI application. I figured I would use VS2005 as the external compiler and remove the "/c" flag so that Visual Studio would perform the link. And I would pass other flags to force a .PDB file to be generated.
It turns out that this is extremely awkward. Apparently the call to the compiler is in a temp file with a temporary filename as the .c to compile.
I wish I could get access to the code that does this, but I know how likely that is.

Similar Messages

  • I am using earphones, but the external audio of my mini ipad is still on. How can I turn off the external audio while listening with my headset?

    I am using earphones, but the external audio of my mini ipad is still on. How can I turn off the external audio while listening with my headset/earphones?

    Other than iMovie, GB always incorporates the audio files into the GB package. So just save or move the GB project to the external drive, and you're done - anything you import, edit or record will be saved to the external drive.

  • I just installed Photoshop and want to use it as the external editor.  I also have PS Elements on the computer and the only external editor I can get iPhoto to recognize is PSE.  Any help in changing the external editor to PS would be appreciated!

    I just installed Photoshop and want to use it as the external editor in iPhoto.  I also have PS Elements on the computer and the only external editor I can get iPhoto to recognize is PSE.  Any help in changing the external editor to PS would be appreciated!

    Welcome. I am using Photoshop CS5 and this works fine for me. Possibly Adobe has changed this in CS6. Hopefully, LarryHN will have further suggestions. Best.

  • Any PL/SQL examples of using ICX in the Web Server?

    I am trying to include some static HTML into a web page that's
    generated in PL/SQL. The documentation has led me to the ICX
    module but its examples are in PERL which I don't know in any
    depth. I would be very grateful to anyone who can supply a
    simple example of using ICX in PL/SQL.
    Regards,
    Anthony.

    As far as I know, Artificial Intelligence has not yet been achieved, although if someone's written a PL/SQL package that can beat Gary Kasparov at chess I'd like to see it.
    My wife thought the movie was called "A One".

  • How can I use iTunes without connecting the external drive that has all my music on it?

    I have all my music on an external drive.  Sometimes I would like to access iTunes, for purchases and other, without having that drive plugged in.  I used to be able to do this, but something has changed and I can no longer figure out how.  There must be a way.
    Thanks

    Well, you can always ignore the fact it will automatically direct anything to a new blank library it will create on the internal drive.  Just let it do it (as long as you keep track of any purchases that download, or maybe you can turn off automatic downloading )  The next time you need to use it with the external drive hold down the option/alt key while starting iTunes and select the library file on the external drive.
    iTunes Store: How to enable Automatic Downloads - http://support.apple.com/kb/HT4539

  • Aperture 3.5.1 suddenly unable to render images for the external plugins?

    Today when I started to create HDR images using the Photomatix plugin, the dialog: 'Editing Error This image cannot be rendered for editing because Aperture does not support the image format.' appeared.  The exact same set of images was processed by the exact same plugin yesterday.  Subsequently I tried editing the images with other plugins receiving the same error message.  Similarly I was unable to use Photoshop as the external editor on the images.  I also reimported the images with the same results.  Might I add that Aperture is perfectly able to export the images as TIFF files. It would appear that my copy of Aperture is no longer able to work with plugins.  How is this possible when nothing else has changed?

    Thanks.  Yah, been messing around and found it.  Didn't realise it was IPTC data so I never hit the drop down to see what was under it.  Dropped one clanger in that I deleted the Copyright Notice from the dropdown as I didn't want to find it stamped it twice as all the images get it on import.  Because I deselected it though, it actually deleted what was there.  Easy enough to fix of course but, IIRC if you select the Lift / Stamp to lift all the keywords, I seem to recall it stamps them again if you inadvertently re-stamp an image you've already done.
    I try to keep this as uncomplicated as possible, could never decide whether to go with title or caption, I guess it matters neither way, unless doing this professionally in which case I guess there are IPTC conventions.

  • Examples of using flashbuilder/flex tags

    can anybody recommend some resources for examples on using some of the flashbuilder/flex tags.
    as a cold fusion web developer, there are tons of resources with snippets or simple examples on using most the cold fusion tags and functions.
    liveedocs.adobe.com is a great reference guide but sometimes I need examples and snippets ; reference material is not very useful for learning.
    is there or will there be something similar with flex/flashbuilder?

    I assume you're asking specifically about Flex4 examples? There are tons of resources (Adobe and non-Adobe) for pre-Flex 4 coding, so I won't go into those. For some examples and info on Flex 4, you might check out the Adobe devnet site - we're recently posted some articles talking about various aspects of Flex 4, with sprinklings of code and demos to help illustrate the points:
    http://www.adobe.com/devnet/flex/
    Also, there were a few talks at a Flashcamp event a couple of weeks ago - it might be worth checking out the videos that were posted:
    http://labs.adobe.com/technologies/flash/videos/#flashcamp
    (more about the event and links to some of the slides here: http://www.flashcamp.org/)
    You can also follow some of the blogs out there that are talking about Flex 4. A few of us on the SDK team have blogs, but there are also non-Adobe bloggers out there talking about it and posting code and examples.
    Hope that helps.
    Chet.

  • I am using CGI Vis examples in LV6.1, and the VI simply opens when I click on a link. What am I doing wrong?

    I am running Labview 6.1 and am simply trying to learn about the CGI VIs from the examples. I set up the Web Server root directory and I have the cgi-bin directory in it. When I view the provided index.htm file using http://localhost/index.htm, I see the web server document (so the server is working???). I go to the CGI examples and click on the link for CGI Basics. Everytime I click on the link, the vi tries to download with a prompt for SAVE or OPEN. If OPEN is selected the vi opens but does not run. I thought it might be a problem with the browser being on the same machine, so I went to a machine without Labview installed and it still tries to download th
    e vi locally from the server. I assumed from the documentation that the vi runs on the server and sends a request back in html form. I must have missing something or setup wrong. Any help would be deeply appreciated!
    Setup (In case it matters)
    Labview 6.1
    Internet Developers Toolset 5.0
    Windows XP Pro and Windows 2000 Pro (Tried both)
    Internet Explorer 6.0
    Happy New Year to all!!!

    I am not sure what the problem could be and I am a little confused about the exact steps you took. I launch LabVIEW, start the HTTP server, point my web browser to http://localhost/index.htm. This brings of a page entitled G Web server. I click on the button to "View CGI Examples" which redirects by browser to http://localhost/examples/index.htm . I click on CGI Basics and go to http://localhost/examples/basics.htm .
    This page has four groups of examples and within each group there are several examples. All of the examples I clicked on redirected my browser. Is this what you see?
    Was the message to save or open from the browser or from LabVIEW? If it was from LabVIEW, then you might consider mass compiling the VIs on your computer. You can do this
    by opening LabVIEW >> tools >> advanced >> mass compile.
    You might also try a reinstall of the Internet Toolkit. The examples may have been corrupted.
    Finally, LabVIEW 6.1 introduced remote front panels. You might find them easier to use than CGI scripting.

  • I recently purchased a new iMac with an external drive.  I want to transfer my files from my old iMac to the external drive, but I'm afraid that doing that will compromise the use of the external drive on my new iMac.  Comments?  Help?

    I recently purchased a new iMac with an 1 Terrabyte external drive.  I want to transfer my files from my old iMac to the external drive, but I'm afraid that doing that will compromise the use of the external drive on my new iMac.  I have not downloaded the external drive's software onto my old Mac because of this concern.  May I simply "drag and drop" the contents I want transferred to the external drive, then set up my new Mac with the drive and download there? or is there a better procedure?  Comments?  Help?

    If your intention is to copy a just documents and data (word processing files and music for example) then yes, you can use drag and drop. If you want to transfer data and applications and permissions, it would actually be easiest to connect the drive to your old computer and turn on TimeMachine. Once TM is finished, connect the drive to your new computer and restart it holding the option key to get into Recovery mode. Then you can use the restore from TM option to transfer your data and programs to the new computer.

  • HT5697 How do i configure os x server wiki to use the external web server?

    I have a Mac mini Server with OS X 10.10 and Server 4.0 running in a DMZ behind a firewall. The firewall passes a select few ports through to this server, exposing services to the Internet.
    I use two domains, one dummy domain only available on my local networks, and one proper domain available globally. Lets call them «example.lan» and «example.com». These domains are not hosted on the Mac mini, btw.
    In the external domain, I have «server.example.com» registered on my firewalls official IP address.
    In my internal domain, I have «server.example.lan» registered to my Mac mini internal (rfc1918) IP address.
    Server 4.0 -> Websites seem to work as expected. I have three servers configured: «Server Website - All IP addresses», port 80 + 443. These serve the local networks. Then there is «server.example.com», port 443, serving the internet.
    Now to my question: How to I control which of these websites we Wiki uses?
    When I activate the Wiki, it is published on «server.example.lan/wiki», which seems rather pointless. In order for the wiki to be available to the internet, it needs to be published on «server.example.com/wiki», but I see no way of doing this. What am I missing here?
    Regards,
    Gakke

    it does look like you can add virtual domains in the GUI of Server.app on at least some versions, but I don't have an OS X Server 10.8 version handy to check.
    I'd encourage spending some time to learn the command line.  In general, the payoff for learning the command line will be worth the effort expended.  You're running a mail server here and sooner or later the capabilities of the GUI will fail you.  This whether due to a configuration omission in the GUI itself, or due to the need to troubleshoot a malfunctioning mail server, a need to automate one or more of the Postfix-related sequences, or some other IT-related task.  Entirely FWIW, of course.
    Here's a cut-and-paste of the sequence just used to test the command line access to the Postfix configuration, first fetching the current value, appending example.com as the second domain, then displaying the new value, then restarting the Postfix server.  Don't enter the dollar signs; just the postconf command and following.  Adjust example.com to match your domain...
    $ postconf mydestination
    mydestination = $myhostname, localhost.$mydomain, localhost
    $ sudo postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost, example.com'
    Password: {your admin password here}
    $ postconf mydestination
    mydestination = $myhostname, localhost.$mydomain, localhost, example.com
    $ sudo postfix reload
    The Postfix and Postconf commands work irrespective of the OS X Server version; the tools reference the data files as needed.

  • I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up ever

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

  • Is it possible to silence the external ringer on the Pre when using headphones?

    When I get a call on my Pre while using the headphones, I'd like to hear the ringer in my headphones only... Currently when I get a call it rings in the headphones AND via the external speaker. Can this be done and if so how?
    Post relates to: Pre p100eww (Sprint)
    Message Edited by hammerransom on 07-14-2009 11:16 AM

    Karl Z wrote:
    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl
    InDesign's pasteboard, bleed, and slug areas are independent for each document page. Running header text variables in these areas can capture sources on document pages. If you place a text frame with a character style for the layer name, and a character style for the language name, on a layer, and capture them in a character-style-based running header in the slug, for example, the source from whichever layer is visible will appear in the running header in the slug area. Similarly, you can capture other text variables for page number, filename, date/time, etc.
    It may take a little fussing to set it up the first time, but thereafter when you change layer visibility, the visible layer name changes automatically.
    NOTE: Text frames on master page pasteboards, bleed, or slug areas do not appear on document pages unless they also touch the document page border.
    Above: Master page view
    Above: Page 1 view
    Above: Page 2 view
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • Error in compiling boost example program using sun studio 12

    I am trying to compile the below example program from boost using sun studio 12 C++ compiler.
    #include <boost/interprocess/shared_memory_object.hpp>
    #include <boost/interprocess/mapped_region.hpp>
    #include <cstring>
    #include <cstdlib>
    #include <string>
    int main(int argc, char *argv[])
    using namespace boost::interprocess;
    if(argc == 1)
    {  //Parent process
    //Remove shared memory on construction and destruction
    struct shm_remove
    shm_remove() { shared_memory_object::remove("MySharedMemory"); }
    ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); }
    } remover;
    //Create a shared memory object.
    shared_memory_object shm (create_only, "MySharedMemory", read_write);
    //Set size
    shm.truncate(1000);
    //Map the whole shared memory in this process
    mapped_region region(shm, read_write);
    //Write all the memory to 1
    std::memset(region.get_address(), 1, region.get_size());
    //Launch child process
    std::string s(argv[0]); s += " child ";
    if(0 != std::system(s.c_str()))
    return 1;
    else
    //Open already created shared memory object.
    shared_memory_object shm (open_only, "MySharedMemory", read_only);
    //Map the whole shared memory in this process
    mapped_region region(shm, read_only);
    //Check that memory was initialized to 1
    char mem = static_cast<char>(region.get_address());
    for(std::size_t i = 0; i < region.get_size(); ++i)
    if(*mem++ != 1)
    return 1; //Error checking memory
    return 0;
    Using the below command :
    CC -c 1.cpp -I/home/syogacha/satish/boost_1_43_0 -library=stlport4
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/shared_memory_object.hpp", line 284: Error: The function "shm_open" must have a prototype.
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/shared_memory_object.hpp", line 307: Error: The function "shm_unlink" must have a prototype.
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/mapped_region.hpp", line 549: Error: Formal argument 1 of type char* in call to shmdt(char*) is being passed void*.
    3 Error(s) detected.
    I even tried to include sys/mman.h but got the same compilation errors.
    Do we need to take care of few other specific things while using boost headers.
    Thanks in advance ...

    Hope this helps....
    #include <sys/mman.h>
    #include <boost/interprocess/shared_memory_object.hpp>
    #include <boost/interprocess/mapped_region.hpp>
    #include <cstring>
    #include <cstdlib>
    #include <string>
    #include <iostream>
    #include <iterator>
    int main(int argc, char *argv[])
    {      //main
            using namespace boost::interprocess;
            if(argc == 1)
            {  //Parent process
                    //Remove shared memory on construction and destruction
                    struct shm_remove
                            shm_remove() { shared_memory_object::remove("MySharedMemory"); }
                            ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); }
                    } remover;
                    //Create a shared memory object.
                    shared_memory_object shm (create_only, "MySharedMemory", read_write);
                    //Set size
                    shm.truncate(1000);
                    //Map the whole shared memory in this process
                    mapped_region region(shm, read_write);
                    //Write all the memory to 1
                   std::memset(region.get_address(), 1, region.get_size());
                    //Launch child process
                    std::string s(argv[0]); s += " child ";
                    if(0 != std::system(s.c_str()))
                    return 1;
            else
                    //Open already created shared memory object.
                    shared_memory_object shm (open_only, "MySharedMemory", read_only);
                    //Map the whole shared memory in this process
                    mapped_region region(shm, read_only);
                    //Check that memory was initialized to 1
                    char *mem = static_cast<char*>(region.get_address());
                    for(std::size_t i = 0; i < region.get_size(); ++i)
                    if(*mem++ != 1)
                    return 1;   //Error checking memory
            return 0;
    }

  • Launching DHTML popup dialogs using the external dialogframework

    Hi,
    I saw this article
    http://thepeninsulasedge.com/frank_nimphius/2009/11/13/jdeveloper-11g-r1-ps1-new-feature-launching-dhtml-popup-dialogs-using-the-external-dialogframework/
    and try to follow the example to apply to my requirement.
    The only difference between my requirement and the example is that the launching point of the taskflow as an inline popup is from a page fragment, not from a regular jspx page. I have an exisiting Task Flow A which contains Page Fragment A. There is a button on Page Fragment A which when clicked, launch Task Flow B (which contains Page Fragment B) as an inline popup. When I defined it in Task Flow A to call Task Flow B, set "Run as Dialog" = "true", and "Display Type" = "inline popup", but I saw there is an error in design time: "Task Flow call lookup-configuration-task-flow cannot call bounded taskflow lookupTypes-edit-task-flow as a dialog, since lookupTypes-edit-taskflow refers to page fragment"
    Is there a limitation that a page fragment cannot call another page fragment as an inline popup?
    Please share and advise.
    Thanks.
    -Mina

    Hi Frank,
    Yes, I tried it already by calling a bounded task flow using page fragments, and I saw a red "X" sign on the task flow in the Jdev editor. That's how I come to realize it's not feasible. So looks like I got a confirmation that this is a limitation. In that case, we will try to design our application to either call a taskflow with page fragment as dialog from a jspx page or call a taskflow with jspx page as dialog from a page fragment, but not calling task flow with page fragment as dialog from page fragment.
    Thanks.
    -Mina

  • Reject the footer using the external table

    Hi,
    I have a flat file with fixed length which have a header and a footer.
    My file is something like this:
    HADF.TXT0309
    D12345ABCD
    D22345ABCD
    FOOTERHJ
    I want to create an external table based on that file, but
    I don't want to have the header and the footer in my table. To eliminate the header I used skip 1, but I don't know how to eliminate the footer.
    Any example and suggestions will be appreciated
    Thank you for your time and consideration
    Catalin

    Hi,
    This problem may be due to several reasons. I am aware of few reasons.
    1)Have you deployed the external table first?
    2) If you do not have your data base client and server running in the same machine, you should place the csv file in the database server machine's 'c:\CSV' folder in order to create the external table through database. Then do a select count(*) statement.
    3)Another reason may be as gerardnico said the file name you refered may be wrong.
    I don't know your requirement. If you could create the external table succefully and if you get value for the select count(*) from <external_table_name>, then try to import the external table into the Design Center and map it with the Table you need.
    If you are doing it purely with OWB then,
    Do you have the file Export_WithHeaders.csv in the Server machine's 'c:\CSV_FILE' folder?
    Because while importing the metadata of the CSV file the OWB will point to your local machine's 'c:\CSV_FILE' that is why your Validation and Deployment is success without errors.
    But while executing the map it will take the data from Server machine. It will search for the Location 'c:\CSV_FILE' in the server machine and will look for the file Export_WithHeaders.csv there. So create athe same folder setup which you have in your client machine and run this again.
    Try this if you do not get any better answers in this thread

Maybe you are looking for