-
December 14th, 2009, 06:36 AM
#1
VB6 on Win 7 and access to Outlook
Hi,
I have installed VB6 SP6 on my Win 7 64 bit. With settings compatability to 'WinXP SP3 ' for the VB6 exe it work fine.
However, my VB6 program does access the Outlook data (via the Outlook COM Obect).
But as vb6.exe must be started as Admin or in WinXP compatability mode, it seems that vb6 has another contect than Outlook was started in: it does not see any Outlook data.
I have to start Outlook as administrator as well. Then my application I am debugging in VB6 has access to the Outlook data.
Summary:
vb6.exe and Ootlook.exe with admin privileges : OK
vb6.exe with admin privileges and Ootlook.exe as normal user :NOT OK
It seems that in the 2nd case vb6 and Outlook run in a different context. Can that be the case?
But I do not want to start Oulook with admin privileges.
Any Idea?
-
December 14th, 2009, 07:12 PM
#2
Re: VB6 on Win 7 and access to Outlook
Yes. Administrator doesn't have admin privileges (by default!).
-
December 15th, 2009, 04:43 AM
#3
Re: VB6 on Win 7 and access to Outlook
Originally Posted by dglienna
Yes. Administrator doesn't have admin privileges (by default!).
Thanks, But what does this mean or how does this help me???
-
December 15th, 2009, 09:57 PM
#4
Re: VB6 on Win 7 and access to Outlook
It means if your program requires elevation, then you have no choice. (You can invoke user, in .Net to some degree, but not VB6)
-
December 16th, 2009, 10:54 AM
#5
Re: VB6 on Win 7 and access to Outlook
but why does a program startet with admin privileges have no access to a COM object to a program started as normal user?
I thought a program with higher privileges should get access to a program with lower privileges.
Or is this a problem of the user context?
-
December 16th, 2009, 05:02 PM
#6
Re: VB6 on Win 7 and access to Outlook
Are we talking an administrator in the administrators group(split-token)?
Or, are we talking about the true built in "Administrator"(full-token)?
__
The user context, can cause the program to run and save files to the administrators profile, ie taskbar, startmenu, etc.
It depends on the application, usually the larger the app, the greater the chance it will be written in a way that causes it to save directly in the users context.
So I can see this as a possible cause.
-
December 16th, 2009, 07:26 PM
#7
Re: VB6 on Win 7 and access to Outlook
Most anything that runs on Vista can be traced back to permission problems, but we haven't seen any of your code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|