Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Programming Languages (http://www.programmingforums.org/forum38.html)
-   -   VB6 Drivelistbox problem on WindowsVista (http://www.programmingforums.org/showthread.php?t=14484)

venkatramasamy Nov 17th, 2007 12:03 AM

VB6 Drivelistbox problem on WindowsVista
 
Hi,
currently i am placed in Bugfixing on a Vb6 project,i am reported with the product is not properly working in Windows Vista,later i found that problem is with the drivelistbox,that doesnot shows the mapped drives while running the EXE(It works properly while running from the Code). and i tested the drivelistbox behavour on a seperate project it works properly(show all drives includes mapped drives) in both the code and EXE.

Is anybody there to notice me that what could be the Problem...

Thanks & Regards
Venkatramasamy SN:icon_confused:

InfoGeek Nov 17th, 2007 7:55 PM

Re: VB6 Drivelistbox problem on WindowsVista
 
The problem probably is with the code and not windows vista. You need to provide more information in order to get help. Showing relevant portions of the code may help.

Jabo Nov 17th, 2007 10:33 PM

Re: VB6 Drivelistbox problem on WindowsVista
 
When I installed VStudio 6 on my Vista machine, it reported several problems and didn't want to install it. Could be you need to reinstall VB or it could be a compatibility issue with Vista. Could be a coding error; Infogeek is right, you need to provide more information.

Harakim Nov 18th, 2007 2:58 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
If those drives are networked drives, there are two possiblilities off the top of my head:
1) You're running Samba.
2) You don't have proper permissions.


The latest versions of Samba have had real problems with drive mapping. If that's the case, you'll have to fix Samba.

The second one is easy to solve.

Jabo Nov 18th, 2007 3:00 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
Quote:

Originally Posted by Harakim (Post 137021)
The second one is easy to solve.

...guess that would depend on if he's the admin...if not, they might not want to give permissions.

But that reminds me of my last project. I kept running into permission problems trying to grab some folders in the Window's and Documents and settings folder, even though I'm set up as admin on my domain. I finally excluded those folders from my list, maybe later I'll work out the permissions issue and learn something. Probably a good thing that I didn't include them considering what my program's intention was.

venkatramasamy Nov 19th, 2007 3:34 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
hi to all,

Thanks for all who viewd and replied


Some more info about the Drivelistbox problem environment

1. I am working with AdminRights
2.The Exe working Properly on other versions of Windows(Shows all derives and maped drives)

3.While running the EXE in Windows Vista the problem rise

4.if any of code restricts means then, it mightnotwork on the Code itself too right...!but it works properly while running from the source code...

Jabo Nov 19th, 2007 3:45 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
Windows Vista has UAC, or User Access Control, a new feature that pretty much requires confirmation of any program that runs, even if you are an administrator. If you're not seeing the prompts, then that shouldn't be the problem. When running your code inside of the IDE, you won't see the prompts because your program runs as part of the IDE, whereas if you run the program outside of the IDE, it runs as a separate program and would therefor be handled by the UAC as such and you would be prompted to allow it to run.

It could possibly be your program is trying to access a protected part of the OS, such as memory, and Vista most likely has a new memory scheme. I haven't done any research as to what Vista requires programmatically, as I'm still learning to program, but you can find out what Vista expects from code in MSDN; I remember seeing a topic concerning this a while back.

venkatramasamy Nov 19th, 2007 3:59 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
hi,
thanks jabo...

Your information is very useful....

The program didin't rise any boxes n' asking for any rights

Venkatramasamy SN

venkatramasamy Nov 20th, 2007 1:07 AM

Re: VB6 Drivelistbox problem on WindowsVista
 
Hi to all,

i diagnised that,it rises the error number 259 while it fails,somewhere i heared that is an win32 error,

is anybody there to give more information regarding this porblem.

Thanx in advance
venkatramasamy SN

venkatramasamy Nov 20th, 2007 3:53 AM

Problem Solved
 
Hi to All

Thanks Jabo,

Ya, the problem is with the UAC,problem solved with turn off the UAC

Thank you once again

Venkatramasamy SN


All times are GMT -5. The time now is 6:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC