Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create TIdSMPT dynamicly?

Status
Not open for further replies.

Oneleg

Programmer
Oct 15, 2007
10
SE
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top