08-09-2006 03:34 PM
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.
08-10-2006 09:45 AM
08-10-2006 01:05 PM