[AGENT++] class Adress

Frank Fock fock at agentpp.com
Fri Oct 1 23:46:36 CEST 2010


Hi,

You have to use an UDP address object and not
the abstract base class.

Best regards,
Frank

On 01.10.2010 18:57, aymen amri wrote:
>
> Hi all
>
> I want to send an snmp request.
> I declared in the file agentx_master.cpp an object as follows :
> Address serv_adr;
>
> and I want to pass it as argument in the function send_snmp_request(...);
>
> But the error tells : Impossible to do the instanciation of an abstract Class
>
> 1>c:\documents and settings\amri\bureau\cleanwork\agent++win32\examples\agentx_master\agentx_master.cpp(82): error C2259: 'Address' : impossible d'instancier une classe abstraite
> 1>           à cause des membres suivants :
> 1>           'const char *SnmpSyntax::get_printable(void) const' : est abstrait
> 1>           c:\documents and settings\amri\bureau\cleanwork\snmp++\include\snmp_pp\smival.h(125) : voir la déclaration de 'SnmpSyntax::get_printable'
> 1>           'SmiUINT32 SnmpSyntax::get_syntax(void) const' : est abstrait
> ......
>
>
> What Shall I do to send this request and how can I  declare this Address variable ?
>
> Thanks
> With Regards
>   		 	   		
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list