Can someone help me understand why I am unable to get the following code to compile?
I am trying to update the IAP settings on an existing SMTP account. Here is the code
The error I get isCode:Declared in .h file #include <cemailaccounts.h> // link against imcm.lib CEmailAccounts* EmailAccount; TImapAccount ImapAccount; TSmtpAccount SmtpAccount; Declared in .cpp file TImIAPChoice apChoice; apChoice.iIAP = MyDevice().IapIdSelected; apChoice.iDialogPref = ECommDbDialogPrefDoNotPrompt; CImIAPPreferences* apPrefs = CImIAPPreferences::NewLC(); apPrefs->AddIAPL( apChoice ); //IMPORT_C void SaveImapIapSettingsL(const TImapAccount& aAccount, const CImIAPPreferences& aIAP); EmailAccount->SaveImapIapSettingsL(ImapAccount, apPrefs); EmailAccount->SaveSmtpIapSettingsL(SmtpAccount, apPrefs); CleanupStack::PopAndDestroy( apPrefs );
error: no matching function for call to `CEmailAccounts::SaveImapIapSettingsL(TImapAccount&, CImIAPPreferences*&)'
error: no matching function for call to `CEmailAccounts::SaveSmtpIapSettingsL(TSmtpAccount&, CImIAPPreferences*&)'
Why is this so? What am I missing?
Thanks for the help.



