Lucas Sanches
Posts: 18
Joined: 2010-12-30
|
Hi!
Here's my code:
STDMETHODIMP CConnect::OnStartupComplete (SAFEARRAY ** /*custom*/ )
{
this->mSecurityManager.CreateInstance("AddInExpress.OutlookSecurityManager");
return S_OK;
}
I don't know why, but this stopped work.
The object this->mSecurityManager still NULL, but i don't get any error.
I just got error when I use this object here:
void __stdcall CConnect::OnMailSend(IDispatch *Item, VARIANT_BOOL Cancel)
{
this->mSecurityManager->PutDisableOOMWarnings(TRUE); // < ERROR
SendMailToBemTeVi(Item);
this->mSecurityManager->PutDisableOOMWarnings(FALSE);
}
And so Outlook crashes.
Anyone know how I can fix it?
Thanks! |
|
Renat Tlebaldziyeu
Guest
|
Hi Lucas,
Could you please show me the whole code with the mSecurityManager declaration?
Is osmax.ocx registered on the PC?
Please try to register it manually from the following command line:
regsvr32 "[Common files folder]\Outlook Security Manager\osmax.ocx"
Please note that you should have administrative permissions to register COM dlls.
Did it get registered? |
|