Posts 1 - 10 of 24
First | Prev. | 1 2 3 | Next | Last
|
|
Charlie Homo
Posts: 15
Joined: 2012-11-15
|
In VB6 SP3 & Outlook 2010, I am using the following code. Why does 'SecurityManager.ConnectTo' launch an Outlook window? and how can I prevent it?
Thank you
***********************************************************
If m_oOutApp Is Nothing Then
'no existing outlook session open, create new
Set m_oOutApp = CreateObject("Outlook.Application")
End If
Set SecurityManager = CreateObject("AddInExpress.OutlookSecurityManager")
If Not (SecurityManager Is Nothing) Then
SecurityManager.ConnectTo m_oOutApp <---- this line launches an Outlook window
SecurityManager.DisableOOMWarnings = True
End If
******************************************* |
|
Posted 15 Nov, 2012 18:11:15
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Hello Charlie,
If that Outlook window is the Choose Profile dialog then this is expected, this is how Outlook behaves when it doesn't know what profile to use.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 16 Nov, 2012 00:40:02
|
|
Top
|
|
charliehomo
Posts: 15
Joined: 2012-11-15
|
Hello Andrei,
No, it is not the profile dialog I am seeing, it is Outlook itself that is being launched by the 'ConnectTo' method.
Best,
Charlie |
|
Posted 16 Nov, 2012 01:43:12
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Charlie,
I need this:
- a screenshot of the Outlook window launched by that code line
- Outlook version, bitness and service pack installed
- secman.dll and osmax.ocx file versions
Please send me that info to the support email address; you can find me in readme.txt, see the installation folder of Security Manager. Please make sure that your email contains a link to this topic.
Also note that the latest service pack for VB6 is SP6. I suggest that you install it.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 16 Nov, 2012 08:53:52
|
|
Top
|
|
charliehomo
Posts: 15
Joined: 2012-11-15
|
Hello Andrei,
I just sent an email to the Support address. It contains the information you requested.
Charlie |
|
Posted 16 Nov, 2012 09:44:04
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Charlie,
Is there a chance that OUTLOOK.EXE is running (see the Processes tab of the Task Manager window) before your code is executed?
Also, please test if the same is reproducible with this sample project: tt http://www.add-in-express.com/downloads/osm.php, download the item labeled "Security Manager 2010 for Microsoft Outlook sample projects", unzip it and see the project {.zip}\ActiveX\SendMail\SendMail.vbp
And make sure that all COM add-ins are turned off.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 16 Nov, 2012 10:15:40
|
|
Top
|
|
charliehomo
Posts: 15
Joined: 2012-11-15
|
Andrei,
Outlook is not running (I checked the Process tab). .ConnectTo does start an Outlook process and the window is launched.
I ran the project you mentioned in design and the following line starts Outlook:
Set IOutlookExpl = IOutlook.GetNamespace("MAPI").GetDefaultFolder(6).GetExplorer
Is this intended?
Charlie |
|
Posted 16 Nov, 2012 11:20:52
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
This line gets or creates an Outlook.Explorer. Because Outlook is run via Automation, it should be invisible. It looks like something displays it. Have you turned all Outlook COM add-ins off?
Andrei Smolin
Add-in Express Team Leader |
|
Posted 16 Nov, 2012 11:44:37
|
|
Top
|
|
charliehomo
Posts: 15
Joined: 2012-11-15
|
Andrei,
I just sent you the list of add-ins currently in Outlook. Should I go in the registry and make sure none of them load on Startup? Please advise, thank you.
Charlie |
|
Posted 16 Nov, 2012 11:53:53
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
charliehomo writes:
Should I go in the registry and make sure none of them load on Startup?
Exactly. Set LoadBehavior=0 for all of them. If the issue is not reproducible with all COM add-ins turned off, you can turn them on one by one to find which of them shows Outlook.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 19 Nov, 2012 03:46:26
|
|
Top
|
|
Posts 1 - 10 of 24
First | Prev. | 1 2 3 | Next | Last
|