Using Excel with Visual C++ 6.0 (need a graph control that behaves as much like the one in CVI as possible)

I hate to beat this to death but I was unable to find a
clear answer to this question.  Does NI provide Excel control from within
Visual C++ 6.0? 
I read that NI supports the ANSI-C library only for Visual C++ 6.0 users:
Thread : "Re: Benifits of using measurment
studio for VC++ 6.0?"
NI REP : drohacek
Quote  : "we made the decision to support Visual
C++ 6.0 users only through the ANSI-C interface and not through the Measurement
Studio MFC-based class libraries."
If there is a suggested way of controlling Excel from within Measurement Studio
for Visual C++ 6.0 then I’d love to know it. 
If not, can a plain statement be made basically stating that if you want
to control Excel you can’t use a Visual C++ 6.0 environment even with Measurement
Studio support?
With .NET of course you can just decide to have Excel support added during
project creation.  CVI can act as an ActiveX server and easily control
Excel just by building off the examples shipped with CVI.  I see that
there is support, using the Measurement Studio for Visual C++ 6.0 Project Wizard,
for taking existing CVI projects and converting them to Visual C++ 6.0 projects
or for calling CVI libraries from a .dll from within Visual C++ 6.0.  I suppose I could do the work
in CVI and then convert the project but I'm so deeply tied into all my MFC calls that I don't see
how I can cleanly include the CVI libraries into my existing VC++ 6.0 projects.
What I'm really after here is a visual graph control like the one in CVI that I
can use from Visual C++ 6.0.  I purchased a 3rd party graph control for use
in VC++ 6.0 that works well but isn't really visual.  I mean you can't
enter any values in it until you run the program and fill it out programmatically. 
Then you can see which columns are two narrow, quit the program, adjust the
column width of your now empty control, and repeat, until you get the thing
looking the way you want.  If I could call into Excel from within Visual
C++ 6.0  the way I do from within .NET
then I could use Excel to hold the table and just read in the values into my table
control at run time.  Basically I'd use Excel as a visual development tool
for all my tables.
I do all my coding from within CVI and Measurement Studio for Visual C++
6.0.  I'd use CVI for everything if I didn't depend so heavily on certain
outside controlled C++ .dll's.  Could you please suggest then what I can
do to get Excel support for Visual C++ 6.0?
Last question :
Is there any plan to ever have a NI table control like the CVI table control for
use in Visual Studio?  One that you can
completely set up before you do any compiling? 
I imagine that the way Microsoft sets up their environment makes this idea impossible.  Otherwise someone would
have come up with a truly “visual” table control before now.
Thanks,
Grant
Grant M. Johnson
Project Engineer
LECO Corporation

Hello Grant
You can most certainly use Excel with VC++ 6.0. Measurement Studio won't provided you with any classes to talk to Excel in VC++ 6.0. This is because Excel allows control via Automation and you can use its automation API to do anything you need with Excel. This is what CVI uses as well.
You can see this MSDN article on how to set this up. This mentions VC.NET, but it should work the same way.
Here is one that talks about VC 6.0 and Excel.
Here is a code project article about this.
Even with .NET, you have to do thru the Excel Automation support. Excel started shipping with Primary Interop Assemblies (PIA) which are .NET wrappers about the Excel Automation object model. C++ Automation is definetely not as nice as .NET, BTW
See this document for more information about the Excel object model.
I would not recommend using the CVI Excel libraries if all you want to use them for is Excel automation. You will end up creating un-necessary dependencies and go through extra layers that way. You can make calls straight to Excel from VC++ without requiring CVI.
One quick observation about your excel approach. If you decide to use Excel as your table, you might be requiring everyone who uses your application to have Excel installed on their machines. Just wanted to make sure this was acceptable to you.
Have you looked at the Datagrid Activex control, which is one of the common controls that ships with Visual Studio? You can add it to Visual Studio by right-clicking and picking it from the list of installed activex control. If you have not already, you should check it out.
Microsoft has made significant improvements in the number of controls they provide with .NET. They have a Datagrid control that seems to be what you need.
Measurement Studio did add some high level classes for Excel and Word Automation that simplify some common tasks, but these exists for VS 2003 C++ and VS 2005 C++, not for VC 6.0. Underneath, we end up using the same Excel automation classes, so you can easily setup something similar for VC 6.0. Plus you can find alot of references online on how to use the Excel Automation object model with C++.
We currently have no plans in Measurement Studio to create a table control unfortunately. I am assuming when you said graph, you actually meant table, since Measurement Studio already  provides a ActiveX graph controls for VC++ 6.0 that is very similar to the CVI graph.
On a side note, VC++ 6.0 is really really old. Have you considered upgrading?
To summarize
- Yes, you can use Excel with Vc++ 6.0 without mstudio.
- Try using the Datagrid Activex control if you just need a table.
- Measurement Studio provides high-level excel and word classes for VC++ 6.0
- Measurement Studio provides a graph control for VC++ 6.0 which is very similar to the CVI graph.
- Measuremnt Studio does not have a table control.
- VC++ 6.0 is really really old. Have you considered upgrading?
Bilal Durrani
NI

Similar Messages

  • Hello, is there any way of having a reboot disk for lion that I'm downloading, like the one I have with snow leopard ?

    Hello, is there any way of having a reboot disk for lion that I'm downloading, like the one I have with snow leopard ?

    Once the Lion download is complete quit the installer and follow these directions. The file you need to make a boot disk disappears after you install Lion.
    Egg Freckles | Burning A Lion Boot Disc
    However, the Lion installation includes a recovery partition. It won't be of help if your entire HD dies but is very handy otherwise. This Knowledge Base article has a lot of good information about Lion's recovery partition.
    OS X Lion: About Lion Recovery

  • I need a work calendar that is not synced to the one on the screen

    I
    need another calendar on my Iphone 4 front screen that is not syced to the standard calendar. I caretake a multiuse centre and need to record bookings. I tried downloading an app but as good a calendar as it was it was sycnced the calendar already on the iphone I wish them to work totaly indipendantly. As you can guess I am new to Iphone and a bit long in the tooth for this tech  Any help woul;d be appreciated.  Lashup

    This is a known Lion issue, hopefully solved in 10.7.3. But may not be solved immediatly after updating, that was my case.
    To make it work i followed those steps.
    1.- Restart
    2.- Lion 10.7.2 Update
    3.- Uninstall netwokrs
    4.- Shut down
    5.- SMC reset
    6.- Reinstall networks
    I dont know whether all the above steps are necessary, but for me the update didn't work properly before SMC reset. (I am running a MBA mid2011)
    Hope it helps,
    Cheers

  • Using LabWindows with Visual C++, program going to LabWindows function instead of SDK func with same name

    Hi!
    I'm trying to use LabWindows with Visual C++. We mostly have it working properly, but have one problem. I want to use an SDK function that has the same name as a LabWindows function (Beep). When I call Beep with the SDK parameters, I get an error and the Visual C++ tells me I need LabWindows beep parameters. There are no LabWindows functions calls in the file. How can I get the Visual C++ compiler to use the SDK Beep and not the LabWindows Beep.
    thanks,
    Lorrie Smith
    [email protected]

    Lorrie,
    There are a number of name conflicts between CVI functions and SDK functions. CVI usually handles those conflicts by redefining the function names in the CVI headers, so that when you include the CVI headers you get the CVI functions, without any compiler errors.
    The problem you're having now is that you want to use the SDK version of the function. What you have to do in this case is to undo the redefinition that the CVI header file does.
    To do that, find out where the CVI header file "utility.h" is being included in your source code, and then, following the include statement, type "#undef Beep"
    That should allow the VC compiler to use the SDK prototype instead of CVI's.
    Luis Gomes
    NI

  • I'm trying to reinstall Mavericks on used Macbook Pro. When I log in to my Apple ID, it says it was not the same ID used to purchase Mountain Lion. I need to change user/admin as a lot of the folders and apps are in Chinese!

    I'm trying to reinstall Mavericks on used Macbook Pro. When I log in to my Apple ID, it says it was not the same ID used to purchase Mountain Lion. I need to change user/admin as a lot of the folders and apps are in Chinese!

    The first thing you should do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. I suggest you install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. If you don't have the media, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able toauthorize it under your ID. In that case, contact iTunes Support.

  • HT2506 I'm using Preview with a MacBook Pro and MacOS 10.6.8. When adjusting sharpness in the Adjust Colour tool, images are not saved. Any hint? Thanks.

    I'm using Preview with a MacBook Pro and MacOS 10.6.8. When adjusting sharpness in the Adjust Colour tool, images are not saved. Any hint? Thanks.

    I too experienced the same issue.  Here are my details:
    Recently I bought a 15” Macbook Pro and last night I tried to connect and use a Edirol FA/66 Firewire 400 connected outboard audio interface using a Firewire 400 to 800 adapter then connected to a Firewire 800 to Thunderbolt adapter since the MBP doesn’t have a native Firewire port.  What I observed is that the Edirol was not getting power from the bus nor did the MBP (running Yosemite) recognize the Edriol.  At first I thought there was a problem with the Edirol since I haven’t used it in a while but when I connected it to an older MBP that has a native Firewire port, it worked normally.  Is there a known issue with these sorts of external audio interfaces working properly with newer MBP running Yosemite?  I’m hoping that a software update will fix this issue.

  • It says I can drag Pages documents from iMac to iCloud. But nothing shows up. Using latest with all turned on. How do I get Pages up to iCloud? The little wheel like action menu does not appear.

    It says I can drag Pages documents from iMac to iCloud. But nothing shows up.
    Using latest with all turned on. How do I get Pages up to iCloud? The little wheel like action menu does not appear.

    yes is tehre another way
    the directions do not explain anything other than drag
    or use the little action wheel menu

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • I am having trouble, my icloud is using an old Apple ID, and i can no longer access that email account, or know the password to that, how do i switch it?

    I am having trouble, my icloud is using an old Apple ID, and i can no longer access that email account, or know the password to that, how do i switch it to my new Apple ID?

    Having the email address is not necessary. It is just the username for the device. All you need is that Apple ID and password. Now, if you forgotten the password, then you have more work to do. Since that email is no longer active, you would need to send the reset to your rescue email, if you remember that. Or you will need to contact Apple Security for help. Apple ID: Contacting Apple for help with Apple ID account security

  • How can i create a Laptop like the ones use in SAP TecEd?

    How can i create a Laptop like the ones use in SAP TecEd hands on labs? with all the NW products install on it.

    Hi,
    Vague question, but to create a laptop with the solution installed - you need to order the solution and and then install it on the laptop. Or download trial versions from SCN and install those as well.
    Regards,
    Srikishan

  • I'm currently signed onto my home network and want to go on with another computer but don't remember my password for my network.  Does anyone know where to find this?  It's a password that I set myself, not the one that came with my router.

    I'm currently signed onto my home network and want to go on with another computer but don't remember my password for my network.  Does anyone know where to find this?  It's a password that I set myself, not the one that came with my router.

    It's in your Keychain on the computer you usually use to connect to your network - the "kind" will be "AirPort Network Password".
    Your Keychain can be opened by using the Keychain Access program. It is in your Utilities Folder.
    Open Keychain Access, and type airport in the search field. You will see a number of entries. Choose the one with the name of your wireless network, open it, and check the box next to "show password". Before it reveals itself you will be asked for your login password - the one you use to log in to your MacBook.
    The network password will appear in the box.
    Quit Keychain Access.

  • How can I open a new window with the same website like the one I have open?

    In safari I can open a new window with the same website like the one I have open, that makes it easy continuing to navigate on a website and to go back to the original website

    Hello Andieas
    Why open a new window for fast browsing??
    Open new tabs.
    Just right click on what you want to open and click "Open in new Tab"
    It is easy and doesn't consume memory from your computer as well as easy to navigate.
    Hope you'll like it

  • Is it possible to load more dictionaries to ibooks? French, german ando so on? I have books in severl languages and it would be easire to use a built in dictionary like the one it already has.

    is it possible to load more dictionaries to ibooks? French, german and so on? I have books in severl languages and it would be easirer to use a built in dictionary like the one it already has.

    At the moment no - http://support.apple.com/kb/HT4059 says :
    iBooks allows you to look up the definition of words using a built-in English or Japanese language dictionary
    So it looks like just the two languages are currently supported

  • What do I need to do to make a forum just like this one(from apple)

    What do I need to do to make a forum just like this one(from apple)

    Wendy, as a_a has explained, when power is removed, the data is gone.
    If you want to put this problem to rest, remove either of the battery connections; this will assure the data is gone forever!
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • I'm using  proxy media for a video I'm editing but now that i switch back to the original media some of my effects are missing can anyone help me.

    I'm using  proxy media for a video I'm editing but now that i switch back to the original media some of my effects are missing can anyone help me.

    Shouldn't happen.Only thing I can think of suggesting is to delete render files and try again. Trashing preferences is a long shot, but no harm in trying. Use the Digital Rebellion Preference Manager, a free download.
    Assume you have a reason for using such an outdated version of FCP X. That may be contributing to your problem.
    Russ

Maybe you are looking for

  • Adding a java class code in BPEL 11g

    Hi Friends , i m doing one simple example of calling a java class from bpel , 1. first i created a java class 2. After that in my project i imported the jar file of the same class , and i am using JavaEmbedding for creating one object of that class a

  • IPhoto 11 smaller resolution?

    After I imported my entire library from a back up (migrating to new iMac) I noticed that every photo in that library is now low resolution (It down rezzed every photo in my library) and the full res version doesn't appear to exist anywhere on my new

  • EstimatedRowCount on a query table

    Hi, I have a search page and am supposed to show the total number of rows of the result on the top or bottom of the table. My table is surrounded with a panelcollection, and in the tool bar of the panel collection, I placed an output text and value i

  • KM Document iView for displaying PDF file.

    Hi all, I have uploaded one pdf file (Estimate.pdf) to KM in folder abc. I want to create an iView to display that pdf file in portal. For which I have created a KM Document iView and in "Path to Document" property I have assigned the document path l

  • Bug: Scaling DisplayObject with TextField Child

    Hi, my app has a number of DisplayObjectsContainers of type Sprite. Among others, these objects each have a TextField as their child. Scaling the Sprite object does not properly scale its child TextField. Also, in case the Sprite object is not scaled