Error in VB6: "The parameter is incorrect"

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

Error in VB6: "The parameter is incorrect"
Outlook Security Manager ActiveX, VB6, Outlook 2000 
Tim Taff

Posts: 1
Joined: 2006-01-28
I have written an app that works with the Outlook Contacts folder to display contact information. When I attempt to connect the Outlook Security Manager to Outlook, I get a "The parameter is incorrect" error. This is VB6 using the Outlook Security Manager ActiveX Control. Below is the code:

Public gobjOutlook As Object
Public gobjNameSpace As Object
Public gobjDefaultContactsFolder As Object

Set gobjOutlook = CreateObject("Outlook.Application")
Set gobjNameSpace = gobjOutlook.GetNamespace("MAPI")
Set gobjDefaultContactsFolder = gobjNameSpace.GetDefaultFolder(olFolderContacts)

'Connect the Outlook Security Manager to the outlook application.
OutlookSecurityManager.ConnectTo gobjOutlook <---error occurs here

When compiled, the app works fine on my WinXP Pro development machine, but when I try to install the app on my laptop (WinXP Home), I get the error when starting the app.

Can someone help with this?


Posted 28 Jan, 2006 13:04:20 Top
Dmitry Kostochko

Add-in Express team

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

Have you done all written in the Deployment section (page 32) of the OSM Developer's Guide on your laptop?

Posted 29 Jan, 2006 02:57:14 Top