Outlook Language Code Page from MAPI C++ form

  • Thread starter Thread starter m3driver
  • Start date Start date
M

m3driver

IB VB I can call:

Outlook.Application.LanguageSettings.LanguagePreferredForEditing(iid)

to test the code page but how do I get the Current Language Code Page
from a MAPI add in form written in C++?

Thanks, Brian
 
Thanks Dmitry,

No, not an extension, I have a propriatry message type (not IPM.NOTE)
that when the user attempts to read, launches my MAPI C++ form. The
form supports multiple languages but I need to determine the UI
language of the Outlook application that launched the form in order to
select the appropriate one.

I also have an unrelated Client Extension and have been able to
retrieve the language via GetLanguageID() but in the case of a form I
don't appear to have access to the LPEXCHEXTCALLBACK pointer from which
to find the Outlook::_ApplicationPtr.
 
You can still create an instance of the Outlook.Application COM object.
Since Outlook is already running, you will get back a pointer to that
running instance of Outlook

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top