I'm building a mailer class that uses Indy "TIdSMPT" to send mail.
Is it possible to dynamicly create a TIdSMPT?
in .h I've got "TIdSMTP* smtp;" and in the constructor I want to create a TIdSMTP dynamivly using new:
smtp = new TIdSMPT;
But I get errors:
[C++ Error] mailer.cpp(10): E2034 Cannot convert 'int *' to 'TIdSMTP *'
How to do it?
Is it possible to dynamicly create a TIdSMPT?
in .h I've got "TIdSMTP* smtp;" and in the constructor I want to create a TIdSMTP dynamivly using new:
smtp = new TIdSMPT;
But I get errors:
[C++ Error] mailer.cpp(10): E2034 Cannot convert 'int *' to 'TIdSMTP *'
How to do it?