VB6 weirdness on W7 
Author Message
 VB6 weirdness on W7

I have a small programme I wrote in VB6 pro years ago that makes and
prints a simple packing list,Saves the file as a simple text file.I'm
currently running it on W7 pro and periodically if will not save the
file.I used it last week and it worked fine.This morning it failed to
save the file.No errors,at least no VB errors,just the message box
warning I put in on exit if I fail to save the file.I get the feeling
that it is ignoring the sub that is that save file code,because that
sub also indexes the packing index number and that doesn't change.I
have made no changes to the programme since it last worked,and made no
changes to the computer.The only thing I can think of is MS update
broke something gain.MS seem to be breaking a lot of their programmes
lately.Any suggestions.
I'm seriously thinking of giving up on VB and learning java.
   SteveC


Sat, 22 Sep 2012 02:59:01 GMT  
 VB6 weirdness on W7


Quote:
> I have a small programme I wrote in VB6 pro years ago that makes and
> prints a simple packing list,Saves the file as a simple text file.I'm
> currently running it on W7 pro and periodically if will not save the
> file.I used it last week and it worked fine.This morning it failed to
> save the file.No errors,at least no VB errors,just the message box
> warning I put in on exit if I fail to save the file.I get the feeling
> that it is ignoring the sub that is that save file code,because that
> sub also indexes the packing index number and that doesn't change.I
> have made no changes to the programme since it last worked,and made no
> changes to the computer.The only thing I can think of is MS update
> broke something gain.MS seem to be breaking a lot of their programmes
> lately.Any suggestions.
> I'm seriously thinking of giving up on VB and learning java.
>   SteveC

Steve,

Is UAC on? If so turn it off and see if the file saves.

Norm



Sat, 22 Sep 2012 03:02:29 GMT  
 VB6 weirdness on W7
Where are you saving the file? Most likely you are getting access denied
errors. You can change the permissions on the folder, or write to writable
locations, such as APPDATA.


Sat, 22 Sep 2012 03:19:10 GMT  
 VB6 weirdness on W7

Quote:

>I have a small programme I wrote in VB6 pro years ago that makes and
> prints a simple packing list,Saves the file as a simple text file.I'm
> currently running it on W7 pro and periodically if will not save the
> file.I used it last week and it worked fine.This morning it failed to
> save the file.No errors,at least no VB errors,just the message box
> warning I put in on exit if I fail to save the file.I get the feeling
> that it is ignoring the sub that is that save file code,because that
> sub also indexes the packing index number and that doesn't change.I
> have made no changes to the programme since it last worked,and made no
> changes to the computer.The only thing I can think of is MS update
> broke something gain.MS seem to be breaking a lot of their programmes
> lately.Any suggestions.

Vista and Win7 enforce rules that were never enforced before for admins.  There is probably a good chance your program is trying to
save the file to a location that for XP and earlier might have worked (though probably still not the "proper" location), but now
under Win7, won't. Or, some variation of this since apparently sometimes it does save.

In any case, it's NOT likely caused by any update or that anything is "broken". You may just need to update this app to be
compatible with Vista and Win7.

Provide some more details, such as where you're saving this text file, if the user specifies its location, etc., etc.

Quote:
> I'm seriously thinking of giving up on VB and learning java.

And you think you won't have problems (perhaps worse problems) with Java? It's very unlikely this problem is VB's fault or has
anything to do with VB. It's most likely your code. Not saying for certain, just most likely.

--
Mike



Sat, 22 Sep 2012 03:25:51 GMT  
 VB6 weirdness on W7
What is UAC?
 the programme is probably not very well written,early self learning
exercises.If it never worked on W7 I can see that, but it worked last
week and I have MADE NO CHANGES to the system between Friday last week
and Monday this week.
SteveC


Quote:

> >I have a small programme I wrote in VB6 pro years ago that makes and
> > prints a simple packing list,Saves the file as a simple text file.I'm
> > currently running it on W7 pro and periodically if will not save the
> > file.I used it last week and it worked fine.This morning it failed to
> > save the file.No errors,at least no VB errors,just the message box
> > warning I put in on exit if I fail to save the file.I get the feeling
> > that it is ignoring the sub that is that save file code,because that
> > sub also indexes the packing index number and that doesn't change.I
> > have made no changes to the programme since it last worked,and made no
> > changes to the computer.The only thing I can think of is MS update
> > broke something gain.MS seem to be breaking a lot of their programmes
> > lately.Any suggestions.

> Vista and Win7 enforce rules that were never enforced before for admins. ?There is probably a good chance your program is trying to
> save the file to a location that for XP and earlier might have worked (though probably still not the "proper" location), but now
> under Win7, won't. Or, some variation of this since apparently sometimes it does save.

> In any case, it's NOT likely caused by any update or that anything is "broken". You may just need to update this app to be
> compatible with Vista and Win7.

> Provide some more details, such as where you're saving this text file, if the user specifies its location, etc., etc.

> > I'm seriously thinking of giving up on VB and learning java.

> And you think you won't have problems (perhaps worse problems) with Java? It's very unlikely this problem is VB's fault or has
> anything to do with VB. It's most likely your code. Not saying for certain, just most likely.

> --
> Mike



Sat, 22 Sep 2012 03:55:11 GMT  
 VB6 weirdness on W7

Quote:

> What is UAC?

User Access Control.

Quote:
>  the programme is probably not very well written,early self learning
> exercises.If it never worked on W7 I can see that, but it worked last
> week and I have MADE NO CHANGES to the system between Friday last week
> and Monday this week.

That's why folks asked *where* you/it were trying to save the file.  
Did that change?  If it does, does the result?

--
.NET: It's About Trust!
http://vfred.mvps.org



Sat, 22 Sep 2012 05:05:20 GMT  
 VB6 weirdness on W7
Thanks for UAC,wasn't sure what it was.It is set to do not notify
about changes,slider all way to the bottom,
Nothing has is different,save location is the same,the input data is
the same,it's selected from a drop down combo,displayed on a flexgrid
and printed.I have changed nothing.printing works fine,any printer on
my system will print it with no errors,only the save seems to be
different.


Quote:

> > What is UAC?

> User Access Control.

> > ?the programme is probably not very well written,early self learning
> > exercises.If it never worked on W7 I can see that, but it worked last
> > week and I have MADE NO CHANGES to the system between Friday last week
> > and Monday this week.

> That's why folks asked *where* you/it were trying to save the file. ?
> Did that change? ?If it does, does the result?

> --
> .NET: It's About Trust!http://vfred.mvps.org



Sat, 22 Sep 2012 05:23:39 GMT  
 VB6 weirdness on W7

Quote:

>>> What is UAC?

>> User Access Control.

>>> the programme is probably not very well written,early self learning
>>> exercises.If it never worked on W7 I can see that, but it worked last
>>> week and I have MADE NO CHANGES to the system between Friday last week
>>> and Monday this week.

>> That's why folks asked *where* you/it were trying to save the file.
>> Did that change? If it does, does the result?

> Thanks for UAC,wasn't sure what it was.It is set to do not notify
> about changes,slider all way to the bottom,
> Nothing has is different,save location is the same,the input data is
> the same,it's selected from a drop down combo,displayed on a flexgrid
> and printed.I have changed nothing.printing works fine,any printer on
> my system will print it with no errors,only the save seems to be
> different.

Assuming you didn't just alter the UAC setting, it's looking like
you'll need to actually do a little debugging, then.  Are you familiar
with the F8 key and the Local and Immediate windows?

--
.NET: It's About Trust!
http://vfred.mvps.org



Sat, 22 Sep 2012 06:09:52 GMT  
 VB6 weirdness on W7

Quote:
> Thanks for UAC,wasn't sure what it was.It is set to do not notify
> about changes,slider all way to the bottom,
> Nothing has is different,save location is the same,the input data is
> the same,it's selected from a drop down combo,displayed on a flexgrid
> and printed.I have changed nothing.printing works fine,any printer on
> my system will print it with no errors,only the save seems to be
> different.

What is the full path of the file you are trying to save ?
ex: C:\Dir\SubDir\File.XXX

Duke



Sat, 22 Sep 2012 06:53:06 GMT  
 VB6 weirdness on W7

Quote:

>>> What is UAC?

>> User Access Control.

>>> ?the programme is probably not very well written,early self learning
>>> exercises.If it never worked on W7 I can see that, but it worked last
>>> week and I have MADE NO CHANGES to the system between Friday last week
>>> and Monday this week.

>> That's why folks asked *where* you/it were trying to save the file. ?
>> Did that change? ?If it does, does the result?

> Thanks for UAC,wasn't sure what it was.It is set to do not notify
> about changes,slider all way to the bottom,
> Nothing has is different,save location is the same,the input data is
> the same,it's selected from a drop down combo,displayed on a flexgrid
> and printed.I have changed nothing.printing works fine,any printer on
> my system will print it with no errors,only the save seems to be
> different.

Assuming you didn't just alter the UAC setting, it's looking like
you'll need to actually do a little debugging, then.  Are you familiar
with the F8 key and the Local and Immediate windows?

--
.NET: It's About Trust!
http://vfred.mvps.org



Sat, 22 Sep 2012 07:13:26 GMT  
 VB6 weirdness on W7

Quote:
> I'm currently running it on W7 pro and periodically if will not save
> the file.I used it last week and it worked fine.This morning it failed
> to save the file.No errors,at least no VB errors,just the message
> box warning I put in on exit if I fail to save the file.

If the program failed every time, I'd suspect either a coding problem or
something big in the environment, like UAC. Because it only breaks
sometimes, I'd start looking at "intervention by person or processes
unknown".

Do you always save to the /same/ file?
Could another process have "grabbed hold" of it?  MS Word is a old hand
at doing this; open even a text file in Word and nothing can update it
(certainly /used/ to be the case anyway). It was "great fun" when some
analyst opened up your server log file to have a look and all your
logging just "stopped" 'til they clear off for lunch!

Quote:
> I get the feeling that it is ignoring the sub that is that save file
> code, because that sub also indexes the packing index number and that
> doesn't change.

Does it do the file save first?
Is so and the save is failing, that might be why the indexing doesn't
get done either.

Quote:
> I have made no changes to the programme since it last worked, and made
> no changes to the computer. The only thing I can think of is MS update
> broke something again.

Always a possibility but updates usually break the "outlying" bits of VB
applications, the ActiveX Controls that we use but that aren't part of
the VB product itself (and, therefore, that Our Friends in Redmond don't
give a damn about).  If your program is "pure" VB, without any external
controls (which would be rare) then this shouldn't be an issue.

HTH,
    Phill  W.



Sat, 22 Sep 2012 19:54:03 GMT  
 VB6 weirdness on W7

> What is UAC?

User Access Control.

User Account Control.

Paul
~~~~
Microsoft MVP (Visual Basic)



Sun, 23 Sep 2012 01:19:49 GMT  
 VB6 weirdness on W7

Quote:



> > What is UAC?
>
> User Access Control.
>

> User Account Control.

Thanks, yeah.  (Seems to limit *access* so... <g>)

--
.NET: It's About Trust!
http://vfred.mvps.org



Sun, 23 Sep 2012 01:49:57 GMT  
 VB6 weirdness on W7


Quote:
> > > What is UAC?
> >
> > User Access Control.

> > User Account Control.

> Thanks, yeah.  (Seems to limit *access* so... <g>)

Well it sure seems to bring on Un-{*filter*}erated Chaos with all the
older programs...

<g>
LFS



Sun, 23 Sep 2012 04:08:22 GMT  
 VB6 weirdness on W7

Quote:


>>> > What is UAC?
>>>
>>> User Access Control.

>>> User Account Control.

>> Thanks, yeah.  (Seems to limit *access* so... <g>)

> Well it sure seems to bring on Un-{*filter*}erated Chaos with all the
> older programs...

> <g>

Ahhhh, the unsanitized version!  So clear, once known...  :-)

--
.NET: It's About Trust!
http://www.*-*-*.com/



Sun, 23 Sep 2012 03:18:07 GMT  
 
 [ 20 post ]  Go to page: [1] [2]

 Relevant Pages 

1. Running VB6 app on W7 pro 64bit

2. VB6 Report Datasource Dialogue Weirdness

3. ? VB6 Weirdness

4. W7 lag between forms

5. create desktop shortcut when app installed w/P&D installer for XP,Vista,W7

6. Permission of EXE ActiveX running IIS-W7 Classic ASP

7. Access 97 Class Mod Error Trap Weirdness

8. CDO sender object weirdness

9. Checking for open file weirdness

10. Document Protection Weirdness

11. Wildcard weirdness

12. Beyond Mail Merge - docvariable weirdness

 

 
Powered by phpBB® Forum Software