How can I use CWGraph3D for Visual C++,How the Variant operate?

I have a VC++ project that use CWGraph3D to show data.
How I use it's method Plot3DCurve(VARIANT& xVector,...)
what's the VARIANT type.
How do I use the VARIANT type to do this job?

Thank you for response this question so soon.
Because I do not have Measurement Studio for VC++,
I do not have CNiVector data type.
Now I have CCWSafeArray from Chris Matthews,
National Instruments.
I could use it's contructor and AccessData() method
to create an array like this:
double xArray[3]={0,1,2};
double yArray[3]={0,1,2};
double zArray[3]={7,8,9};
double wArray[3]={0,0,0};
CCWSafeArray xSafeArray(xArray,3);
CCWSafeArray ySafeArray(yArray,3);
CCWSafeArray zSafeArray(zArray,3);
CCWSafeArray wSafeArray(wArray,3);
m_Graph.Plot3DCurve(xSafeArray,ySafeArray,zSafeArray,wSafeArray);
It works very well.
But now I would like to use Plot3DSurface() method.
I write C++ code like this:
double xArray[3]={0,1,2};
double yArray[3]={0,1,2};
dou
ble zMatrix[3][3]={{1,2,3},{4,5,6}.{7,8,9}};
double wMatrix[3][3]={0};
CCWSafeArray xSafeArray(xArray,3);
CCWSafeArray ySafeArray(yArray,3);
CCWSafeArray zSafeArray2D(zArray,3,3);//error line
CCWSafeArray wSafeArray2D(wArray,3,3);//error line
m_Graph.Plot3DSurface(xSafeArray,ySafeArray,zSafeArray2D,wSafeArray2D);
It could not work.Complier tell me:
error C2664: '__thiscall CCWSafeArray::CCWSafeArray(unsigned short,long,long,long)' : cannot convert parameter 1 from 'double [3][3]' to 'unsigned short'
I don't know what's wrong.

Similar Messages

  • How can I use Itunes for different users on the same PC

    I have itunes loaded with my full library. I have now created a second user account on my computer for someone else to access, and I want them to be able to access the full library which I have (4500 songs). How can I do this. Currently, when I open itunes in the other user's desktop, it is completely empty. I did try ticking share my music under preferences, but the library has still not appeared.... I know this must be an easy one, but if someone could help me because I must be a bit dim...........many thanks.

    This post should help:
    Natalie Beresford, "Multiple iPods/iTunes Installations", 04:04am Nov 26, 2004 CDT

  • How can i use application for internet explorer on the safari web browser ?

    I have a digital video recording system, which uses the the Internet Explorer for Remote Survelliance. It usually works with chrome and mozilla by adding ie-tab  plug-in's to it. Is there any such ie-tab for the safari. ?

    Is there any such ie-tab for the safari. ?
    Rather doubt this considering MIcrosoft hasn't written IE for Mac in years.
    IE tab for Safari. Sorry, no.

  • Can I use FCX for multiple users on the same machine?

    I have one mac pro, and two video cmpanies. I have two users on my machine and would like to set up two different final cut x workplatforms. Is that possible?

    Of course, you can use FCP X from two different user accounts on your machine. The question here, I believe, is how to separate the content that each user accesses.
    One obvious way to achieve that would be to store the content in the system disk - that would put events and projects in each user's Movies folder. But that is a bad option, for performance reasons, and more.
    You could have separate external disks for each user to store his content.
    Also, you could use different disk images which could, say, be all stored in the same internal (but not system) drive.

  • How can I use TopLink for querys that have two and more tables?

    I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
    Thank you for see and answer this question.

    You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
    Zev.
    check out oracle.toplink.expressions.Expression in the 10.1.3 API

  • How can I use DW for internal email

    Hi all,
    I am interested in using Dreamweaver to build something like email marketing, for internal corporate notifications. I want to be able to tract how many people are reading the email, and how many people use our site for ordering suplys, etc? I have never done this before, but I heard it can be done.
    I am interested in knowing:
    1. What's the best way to build it ( we are using images, Header, footer, links, etc.)
    2. Can I use CSS
    3. What is the best way to send it through email so people can view it? (we can't use an outside vendor)
    Any and all information would be greatfully appreciated.
    Thank  you,
    HDsuperglide

    First read this:
    http://alt-web.blogspot.com/2010/02/html-emails-and-newsletters.html
    Use an email service like Constant Contact or iContact that gives you stats about your email blasts.
    Put Google Analytics on your web pages to see where traffic comes from and if it's converting to sales.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can I use OCCI for oracle8.1.6?

    my database is oralce8.1.6 for solaris8.
    I want to develop database application by OCCI .
    But only oracle9i has OCCI.
    How can I do?
    Where can I get OCCI ,and how can I use it for oralce8.1.6?
    thank you very much!!

    OCI is available for all versions of Oracle including Oracle
    7/8/8i etc. However it is not installed by default with these
    versions. I am assuming that the default 9i installation
    includes OCI. You should be able to install OCI for other
    versions through one of the development platforms e.g. ProC/C++
    etc.

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • How can i use RTFEditorKit for JTextField.

    hi all,
    how can i use RTFEditorKit for JTextField.
    thanks in advance
    daya

    Don't cross post. This is a Swing related question and you have already posted in the Swing forum:
    http://forum.java.sun.com/thread.jspa?threadID=619619&tstart=0

  • How can I use Siri for IPhone?

    How can I use Siri for IPhone?

    Siri only works on the iPhone 4S or iPhone 5. If you have one of those devices, turn it on in Settings > General > Siri.
    If you need more info than that, ask in the Apple forums.

  • How can I use music for ringtones on my iphone 4?

    How can I use music for ringtones on my iphone 4?

    You can take any MP3 file that it 40 seconds or less and change the file extension to M4R. Then drag it into iTunes. It will appear under Ringtones and transfer over next time you sync,

  • I have a 1TB external hard drive (NTFS) that has all my files from my old PC, how do I create a partition on it for HFS  without formatting it so that I can use it for Time Machine and the like?

    I have a 1TB external hard drive (NTFS) that has all my files from my old PC, how do I create a partition on it for HFS  without formatting it so that I can use it for Time Machine and the like?

    There aren't any 3rd party apps or anything. I use PC's and Mac's at school and the only computer connected to a printer at my house is a PC so i need access to both

  • How do I fix the compatibility issue between my iPhone 4S with iOS 7 and my Pioneer car stereo? There was no problem with iOS 6, but now I get a message saying "this device is not compatible" and so I can't use Netflix for example. How do I fix it?

    How do I fix the compatibility issue between my iPhone 4S with iOS 7 and my Pioneer car stereo? There was no problem with iOS 6, but now I get a message saying "this device is not compatible" and so I can't use Netflix for example. How do I fix it?

    This is a typical response from the manufacturer. Did you try the fix that Lawrence mentioned. When Apple or any other phone manufacturer update phone software, they have the latest Bluetooth installed. It is usually the problem with the radio manufacturer that they devices are using the older Bluetooth protocols. You can try this support document http://support.apple.com/kb/TS3581 and see if anything there helps, but generally it requires the radio manufacturer to update their firmware.

  • I'm using numbers for my students grades. the passing grade is 30 points. what i want to happen is that very students with a grade of less than 30 will have their points it red color. does the IF function can do this? how?

    i'm using numbers for my students grades. the passing grade is 30 points. what i want to happen is that very students with a grade of less than 30 will have their points it red color. does the IF function can do this? how?

    Hi efren
    Conditional format will do this.
    Select the Cells, then Menu > Format > Show Conditional Format Rules
    Regards,
    Ian.

  • Can you use wallpapers for the icons on the iphone 3g? If so, How

    Can you use wallpapers for the icons on the iphone 3g? If so, How

    On the Mac to save a picture from a web page <CTRL> click on the picture then choose Save Image As... and save it onto the desktop. Once you have collected all your pictures onto the desktop open iPhoto and Import all the images into an iPhoto Album. Quit iPhoto.
    Open iMovie, then go to the Toolbar along the right side of the iMovie window and click on the camera icon to browse through your iPhoto Library. Find your pictures then drag them into the Project Browser window.

Maybe you are looking for

  • Printing: Stuck on 'Hold for authentication'

    Hello. Im try to print from my mac mini through a windows 7 pc. I haven't ever gotten this to work. I can see the printer by choosing 'guest' when logging into the print server. I don't know what my username and password would be. When I save the pri

  • Work around for deprecated getIds() and getSession()

    Hi All, As getIds() and getSession() methods of HTTPSessionContext are deprecated I need to know some work around for them. Can anyone please help me out ? My problem is as follows - My application has users who can have more than one login till a ma

  • Deleted files by accident from iphoto and now can't play in imovie

    Hi there, I am new here. I accidentally deleted a whole bunch of videos in iPhoto that I downloaded from my Flip video camera without realizing that I needed to keep them there for them to play in iMovie. I found 4 of them in the trash but I cannot o

  • Allowing iphone 5 docking station to work with 30 pin accessories

    I know there is a lightening cable that allows iphone 5 to use older accessories, but is there an adapter that'll allow my iPad 3 to work in my iphone 5 docking station?

  • Place and Link

    Hi, Yesterday I have used the Place and Link command to place a large text frame from one ID file in another one. Today I open the 2 files and the one with the target text is no more linked to the first file. I try to relink pointing to the source li