A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Vista Administration, Accounts and Passwords
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Vista Administration, Accounts and Passwords Queries, comments and issues relating to the administration of Windows Vista. (microsoft.public.windows.vista.administration_accounts_passwords)

Compilling a DLL in VB6 to Common Files



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 9th 06, 09:15 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
Amnon Rapoport
external usenet poster
 
Posts: 2
Default Compilling a DLL in VB6 to Common Files

This is in Vista Beta 2 August.

While trying to compile a COM dll from VB6 to C:\Program Files\Common
Files\CompanyName, I got the 'Microsoft Visual Basic caption - Permission
denied.

This works fine in WinXP. I use that folder exclusively to compile my DLLs
and access them using Wise when generating a SetUp.exe

Anyone have a suggestion/solution?????

  #2 (permalink)  
Old September 10th 06, 09:45 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
Jimmy Brush
external usenet poster
 
Posts: 827
Default Compilling a DLL in VB6 to Common Files

Hello,

In Windows Vista, even though you are an administrator, the programs you run
are only given "normal user" access to your computer, unless they ask for
permission or you explictly give them permission.

Since normal users are NOT allowed to write to the program files folder, and
visual basic does not know how to ask you for permission to save to a
restricted area, you must explictly give visual basic permission.

The best solution in this case is to save and compile your programs to a
folder under your user profile directory (such as Documents or a folder that
you create).

You can also give Visual Basic "admin" powers by right-clicking on the link
to it and clicking Run As Administrator.

Or, you can edit the security permissions on the folder you need access to
and give your username full access to it.

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

  #3 (permalink)  
Old September 10th 06, 02:34 PM posted to microsoft.public.windows.vista.administration_accounts_passwords
Amnon Rapoport
external usenet poster
 
Posts: 2
Default Compilling a DLL in VB6 to Common Files

Thank you Jimmy Brush.

I gave the VB6.exe administrator permissions as you suggested. I have one
further question.
To preserve the integrety that Windows Vista seems to want to maintain, I
would have preferred the possibility of giving VB6 administrator permissions
only in the Common Files\CompanyName\ folder and not give it Administrator
rights generally.

A reply would be much appreciated

Garry

"Jimmy Brush" wrote:

Hello,

In Windows Vista, even though you are an administrator, the programs you run
are only given "normal user" access to your computer, unless they ask for
permission or you explictly give them permission.

Since normal users are NOT allowed to write to the program files folder, and
visual basic does not know how to ask you for permission to save to a
restricted area, you must explictly give visual basic permission.

The best solution in this case is to save and compile your programs to a
folder under your user profile directory (such as Documents or a folder that
you create).

You can also give Visual Basic "admin" powers by right-clicking on the link
to it and clicking Run As Administrator.

Or, you can edit the security permissions on the folder you need access to
and give your username full access to it.

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

  #4 (permalink)  
Old September 10th 06, 03:50 PM posted to microsoft.public.windows.vista.administration_accounts_passwords
Garry
external usenet poster
 
Posts: 25
Default Compilling a DLL in VB6 to Common Files

Thank you,

I did as you suggested, (right click on icon etc), and the VB6.exe now can
write to the required BestPractices folder.

Pity that you didnt post this answer also to the original VB6 post - I would
have seen it there.

Thanks again

"Jimmy Brush" wrote in message
...
Hello,

In Windows Vista, even though you are an administrator, the programs you
run are only given "normal user" access to your computer, unless they ask
for permission or you explictly give them permission.

Since normal users are NOT allowed to write to the program files folder,
and visual basic does not know how to ask you for permission to save to a
restricted area, you must explictly give visual basic permission.

The best solution in this case is to save and compile your programs to a
folder under your user profile directory (such as Documents or a folder
that you create).

You can also give Visual Basic "admin" powers by right-clicking on the
link to it and clicking Run As Administrator.

Or, you can edit the security permissions on the folder you need access to
and give your username full access to it.

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/



  #5 (permalink)  
Old September 10th 06, 08:42 PM posted to microsoft.public.windows.vista.administration_accounts_passwords
Jimmy Brush
external usenet poster
 
Posts: 827
Default Compilling a DLL in VB6 to Common Files

Hello,

Glad to see it is working.

You can allow Visual Basic to always have permission to write to that folder
by changing the security permissions on that folder to allow your username
to have full access to it.

Unfortunately, there is no way to limit Visual Basic to being the only
program with write access to the folder; doing this will allow any program
you run to have write access to that folder.

Here's how:

1) Open an "administrator/root" explorer
- Click start
- Type explorer
- right-click windows explorer
- click run-as administrator

2) From the admin explorer, allow access from Vista
- Browse to the folder you need access to
- Right-click it
- Click Properties
- Click security tab
- Click Edit
- Click Add
* If only your account needs acces, type your username
* If every account on vista needs access, type: Users
- Press enter
- Click the checkbox under Allow next to Full control
- Click OK
- Click OK


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

  #6 (permalink)  
Old September 10th 06, 08:49 PM posted to microsoft.public.windows.vista.administration_accounts_passwords
Jimmy Brush
external usenet poster
 
Posts: 827
Default Compilling a DLL in VB6 to Common Files

Sorry, I must have missed the original post. Glad you have it working.

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/


  #7 (permalink)  
Old September 11th 06, 04:08 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
Garry
external usenet poster
 
Posts: 25
Default Compilling a DLL in VB6 to Common Files

THanks very much

Garry


"Jimmy Brush" wrote in message
...
Hello,

Glad to see it is working.

You can allow Visual Basic to always have permission to write to that
folder by changing the security permissions on that folder to allow your
username to have full access to it.

Unfortunately, there is no way to limit Visual Basic to being the only
program with write access to the folder; doing this will allow any program
you run to have write access to that folder.

Here's how:

1) Open an "administrator/root" explorer
- Click start
- Type explorer
- right-click windows explorer
- click run-as administrator

2) From the admin explorer, allow access from Vista
- Browse to the folder you need access to
- Right-click it
- Click Properties
- Click security tab
- Click Edit
- Click Add
* If only your account needs acces, type your username
* If every account on vista needs access, type: Users
- Press enter
- Click the checkbox under Allow next to Full control
- Click OK
- Click OK


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/



  #8 (permalink)  
Old September 11th 06, 10:10 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
Jimmy Brush
external usenet poster
 
Posts: 827
Default Compilling a DLL in VB6 to Common Files

You're welcome


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/
  #9 (permalink)  
Old September 13th 06, 07:48 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
Garry
external usenet poster
 
Posts: 25
Default Compilling a DLL in VB6 to Common Files

Jimmy,

Interestingly enuf, more people are responding to this issue on a general
level in microsoft.public.vs.enterprise than in this Vista orientated
newsgroup.

This may indicate that you need a new vista newsgroup for developers as the
points 'discovered' here are probably relevant to VS2005 as well.

Garry



"Jimmy Brush" wrote in message
news
You're welcome


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.