G
Guest
I have a sub:
void cdff ( int *m, double *p) {blah; blah;}
Later, I call it:
private: System::Void button1_Click(System::Object^ sender,
System::EventArgs^ e) {
int m = 1;
double p = 2.3;
cdff (m, p);
blah; blah;
}
I get the error C2664 : cannot convert parameter 1 from 'int' to 'int *'
What is happening and how can I get the values 1 and 2.3 in a form that is
compatible with the function?
void cdff ( int *m, double *p) {blah; blah;}
Later, I call it:
private: System::Void button1_Click(System::Object^ sender,
System::EventArgs^ e) {
int m = 1;
double p = 2.3;
cdff (m, p);
blah; blah;
}
I get the error C2664 : cannot convert parameter 1 from 'int' to 'int *'
What is happening and how can I get the values 1 and 2.3 in a form that is
compatible with the function?