I have written the Web Services in VBaic .Net. One function interface:
DataSet GetAllPatients()
which will be called in remote client and return DataSet.
I have written the clients by using both C# and VB, and they work fine. Due
to some reason, I have to use C++ in .NET IDE. Now I confuss with the use of
pointer.
I have trouble in coding and compiling. The following is my simple code,
anyone could be kind of helping me to figure out the problem. Thank you very
much.
In Form1.h file I have the code
private: System::Data::DataSet * dsAllPatients;
private: System::Windows::Forms::DataGrid * dgPatients;
private: WebRefFTPLocation::FTPLocationWebService * ProxyGetAllPatients;
private: System::Void Form1_Load(System::Object * sender, System::EventArgs
* e)
{
dsAllPatients->Clear();
dsAllPatients = new DataSet("Patients");
dsAllPatients=ProxyGetAllPatients.GetPatients();
dgPatients->DataSource = dsAllPatients;
dgPatients->DataBindings;
}
EORROR message:
d:\..\WebServicesClientFTP\simpleFormClient\Form1. h(241): error C2228: left
of '.GetPatients' must have class/struct/union type
David