I am trying to send an email using a c++application where I loaded MAPI32.dll first and then tried accessing the MAPISendMail with the necessary parameters being passed. When I tried to execute this step it throwing an exception "Access violation..". When I click continue then it throws "MAPI_E_FAILURE" as the error code. But the same piece of code works fine for windows 7 and outlook 2013 environment.
The environment I am using is windows 10 and outlook 2016 and issue exists in this OS with outlook 2016.
I have taken this link as reference:MAPISendMail_Expert
I could not trace out what exactly is the issue. It would be greatly appreciable if any one could help me.