Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuick SDI Question Pin
Anonymous7-Oct-02 9:02
Anonymous7-Oct-02 9:02 
GeneralRe: Quick SDI Question Pin
Jörgen Sigvardsson7-Oct-02 10:02
Jörgen Sigvardsson7-Oct-02 10:02 
GeneralRe: Quick SDI Question Pin
Anonymous7-Oct-02 10:12
Anonymous7-Oct-02 10:12 
Generalc++ to c# question Pin
Duckworth7-Oct-02 8:57
Duckworth7-Oct-02 8:57 
GeneralRe: c++ to c# question Pin
Jörgen Sigvardsson7-Oct-02 10:09
Jörgen Sigvardsson7-Oct-02 10:09 
GeneralSerial Ports and WaitCommEvent( ) Pin
SportyDan7-Oct-02 8:35
SportyDan7-Oct-02 8:35 
GeneralRe: Serial Ports and WaitCommEvent( ) Pin
Joaquín M López Muñoz7-Oct-02 9:56
Joaquín M López Muñoz7-Oct-02 9:56 
Questionwhat's wrong here? Pin
Kash7-Oct-02 8:29
Kash7-Oct-02 8:29 
Hi,
I'm trying to plot a non linear graph using MSChart. I set up the array and val stores the result of the calculation. However, the graph I plot appears linear and it's plotted val vs val whereas I want index[0] vs val?

double val=0;
double step=0.5;
DWORD numElements[] = {10, 2}
saRet.Create(VT_VARIANT, 2, numElements);
long index[2];

for(index[0]=0; index[0]<10; index[0]++) {
 for(index[1]=0; index[1]<2; index[1]++) {
	val = index[0]*index[0];
  saRet.PutElement(index, COleVariant( val ));
  val += step;
 }
}
m_chart.SetChartData(saRet.Detach());
m_chart.Refresh();
}


Any ideas?
Cheers
GeneralCreating new View Pin
Goa7-Oct-02 8:27
Goa7-Oct-02 8:27 
GeneralRe: Creating new View Pin
valikac7-Oct-02 10:38
valikac7-Oct-02 10:38 
QuestionHow do I ....??? Pin
JohnnyG7-Oct-02 7:58
JohnnyG7-Oct-02 7:58 
AnswerRe: How do I ....??? Pin
Joaquín M López Muñoz7-Oct-02 10:08
Joaquín M López Muñoz7-Oct-02 10:08 
GeneralRe: How do I ....??? Pin
JohnnyG7-Oct-02 10:26
JohnnyG7-Oct-02 10:26 
GeneralRe: How do I ....??? Pin
JohnnyG8-Oct-02 17:21
JohnnyG8-Oct-02 17:21 
GeneralADO and ADOX Pin
arthivjii7-Oct-02 7:20
arthivjii7-Oct-02 7:20 
GeneralRe: ADO and ADOX Pin
Joaquín M López Muñoz7-Oct-02 9:49
Joaquín M López Muñoz7-Oct-02 9:49 
Generalneed help with shell extensions tutorial Pin
Brakanjan7-Oct-02 6:36
Brakanjan7-Oct-02 6:36 
GeneralRe: need help with shell extensions tutorial Pin
jmkhael7-Oct-02 6:45
jmkhael7-Oct-02 6:45 
GeneralRe: need help with shell extensions tutorial Pin
Brakanjan7-Oct-02 6:57
Brakanjan7-Oct-02 6:57 
QuestionHow do i format a number with digit grouping? Pin
Redeemer-dk7-Oct-02 6:17
Redeemer-dk7-Oct-02 6:17 
AnswerRe: How do i format a number with digit grouping? Pin
Chris Richardson7-Oct-02 6:44
Chris Richardson7-Oct-02 6:44 
GeneralCTreeCtrl trouble Pin
google_4477-Oct-02 5:56
sussgoogle_4477-Oct-02 5:56 
GeneralRe: CTreeCtrl trouble Pin
Ravi Bhavnani7-Oct-02 6:18
professionalRavi Bhavnani7-Oct-02 6:18 
GeneralGrid will not scroll Pin
Shay Harel7-Oct-02 5:46
Shay Harel7-Oct-02 5:46 
GeneralProblems with ranges in Excel Pin
Anonymous7-Oct-02 5:37
Anonymous7-Oct-02 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.