gapi32.dll missing

Add-in Express™ Support Service
That's what is more important than anything else

gapi32.dll missing
osecuritymanager.DisableCDOWarnings=.t. 
Robert Jennings




Posts: 6
Joined: 2008-02-13
I have the following code


omessage=Createobject("CDO.message")
osecuritymanager=CREATEOBJECT("AddinExpress.outlooksecuritymanager")
IF VARTYPE(osecuritymanager)="O"
    lncheck=osecuritymanager.check(1) &&CDO
    IF lncheck=0 &&we can disable Simple Mapi
        osecuritymanager.DisableCDOWarnings=.t.
    ENDIF 	
ENDIF


The line lncheck=osecuritymanager.check(1) causes an error message stating that "GAPI32.dll could not be found. Please reinstall missing component"

I've searched my PC and indeed I do not have GAPI32.DLL, however looking at technet posts the dll is part of exchange.

I'm running outlook 2007 and vista. I installed the CDO update as Outlook 2007 doesn't come with it as standard as previous version did.

I've links on google to sites offering the file as a download but I doubt I would be able to redistribute then as part of my application to fix this problem if customers also receive the error message. Unfortunately, when this error is generated it doesn't create an error in my app so I cannot trap it.

Any ideas?

Thanks in advance

Robert
Posted 13 Feb, 2008 10:57:28 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Robert,

Could you please try to run the CDOSample.js (see the Demo Projects\Simple folder) demo project on your PC? Do you see the same exception?


Posted 13 Feb, 2008 11:14:30 Top
Robert Jennings




Posts: 6
Joined: 2008-02-13
No I don't get the exception.

I notice that is using "MAPI.SESSION" rather than CDO.MESSAGE
Posted 13 Feb, 2008 11:29:32 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Robert,

As far as I understand you are trying to do something using the CDO library. Please see the following MSDN article:
http://msdn2.microsoft.com/en-us/library/ms528097(EXCHG.10).aspx

Posted 13 Feb, 2008 11:55:07 Top
Robert Jennings




Posts: 6
Joined: 2008-02-13
Hi, THe JS Sample worked.

It invoked MAPI.SESSION rather than CDO.MESSAGE
Posted 13 Feb, 2008 11:55:07 Top
Robert Jennings




Posts: 6
Joined: 2008-02-13
The CDO Code I have in there works.

It's just when the two lines of code
    lncheck=osecuritymanager.check(1) &&CDO 
    osecuritymanager.DisableCDOWarnings=.t. 


are called the error is generated.

So, I assume I should use MAPI.SESSION and then DisableCDOWarnings ?
Posted 13 Feb, 2008 11:58:47 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Robert,

So, I assume I should use MAPI.SESSION and then DisableCDOWarnings ?


Yes, please try to initialize a CDO session, use the Logon method and then use the DisableCDOWarnings property.


Posted 14 Feb, 2008 06:35:38 Top