Hi, you can change the declaration of function TCustomWSocket.Send() in the file OverbyteIcsWSocket.pas like this: before: function Send(const Data : TWSocketData; Len : Integer) : Integer; overload; virtual; function Send(DataByte : Byte) : Integer; overload; virtual; function SendTo(Dest : TSockAddr; DestLen : Integer; const Data : TWSocketData; Len : Integer) : Integer; virtual; after: function Send({$IFDEF CLR} const {$ENDIF} Data : TWSocketData; Len : Integer) : Integer; overload; virtual; function Send(DataByte : Byte) : Integer; overload; virtual; function SendTo(Dest : TSockAddr; DestLen : Integer; {$IFDEF CLR} const {$ENDIF} Data : TWSocketData; Len : Integer) : Integer; virtual;
make sure you have changed them in the class declaration and the function implemention, then, rebuild the package. 2008/3/17, Kris Schoofs <[EMAIL PROTECTED]>: > Hi, > > I'm busy attempting to port my current projects from ICS V5 to ICS V6. > However, I've run into a problem that I can't handle myself. > > When I compile my project that contains a simple TCP server (code based on > the ICS5 TCP server sample), I run into following linker errors: > > [ILINK32 Error] Error: Unresolved external '__fastcall > Overbyteicswsocket::TCustomWSocket::Send(void * const, int)'... > [ILINK32 Error] Error: Unresolved external '__fastcall > Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void * > const, int)'... > > I managed the locate the line of code that is triggering this error: > > TcpServer->ClientClass=__classid(TTcpSrvClient); > > Does anyone know how I can avoid this error ? Below a very small code > sample, stripped to its bare minimum and that still reproduces the above > mentioned problem. > > Suggestions are very much appreciated. > > Regards, > > Kris > > > ** HEADER FILE > #include <OverbyteIcsWSocket.hpp> > #include <OverbyteIcsWSocketS.hpp> > class TTcpSrvClient : public TWSocketClient > { > public: > __fastcall TTcpSrvClient(TComponent* Owner); > }; > // ----- > class TForm1 : public TForm > { > TWSocketServer *TcpServer; > }; > > ** CPP file > void __fastcall TForm1::Button1Click(TObject *Sender) > { > TcpServer=new TWSocketServer(NULL); > // The line below triggers the linker errors > TcpServer->ClientClass=__classid(TTcpSrvClient); // Use separate client > instance for each connection > ... > TcpServer->Listen(); > } > // ----- > __fastcall TTcpSrvClient::TTcpSrvClient(TComponent* Owner): > TWSocketClient(Owner) > { > } > // ----- > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- -------------------------------------------------------------------------- Ze Lin Image Processing & Image Communication Laboratory College of Telecommunications and Information Engineering Nanjing University of Posts & Telecommunications PO BOX 166, 66# New MoFan Road Nanjing 210003 Jiangsu, China -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be