Home > Back-end >  The parameters in the Winsock control GetData method
The parameters in the Winsock control GetData method

Time:10-27

I quote the Winsock control in c + + Builder2010, which get data method GetData statement is as follows:
Void __fastcall TWinsock: : GetData (VARIANT * data/* */[in, out], the VARIANT type/* */in, opt, VARIANT maxLen/* [in, opt] */)
{
GetDefaultInterface () - & gt; GetData (data/* */[in, out], type/* */in, opt, maxLen/* [in, opt] */);
}
What is the type of parameter here? My code is as follows:
Void __fastcall TForm1: : Winsock1DataArrival (TObject * Sender, long bytesTotal)
{
TagVARIANT RecBuff [10].
Winsock1 - & gt; GetData ((TVariant) & amp; RecBuff, (TVariant) & amp; (0), (TVariant) & amp; BytesTotal);
}
The compiled: Must take the address of a memory location, I don't know what went wrong, what a player can answer? In this first thank you!
  • Related