Can we use COM and MFC simultaneously
Posted on 2000-02-23
I am using Win-32 console Application with MFC support on Win-NT.
Now for database connection and getting current time I am using MFC classes like CDatabase and CTime.
For sending emails I am using CDONTS.dll in which I wanna use INewMail interface (which has methods like to,cc,bcc,attachfile etc......), but it does not allow me to compile the program at all since there is conflict between MFC classes and COM objects. It's giving me error of to be specific redefinition of folder option etc..
I have tried /FORCE:MULTIPLE to avoid the conflict but still the same errors.
It gives me 26 errors.
It may be because I don't have cdonts_i.c and cdonts.idl file for CDONTS but I am directly using import "CDONTS.dll" named_guids,no_namespace
Please guide me If I wanna send email How do I send it?
Any other suggestions rather than I am using is welcome, but should be as flexible as CDONTS since it takes care of multiple recepients and file attachments.