dbTalk Databases Forums  

A2K - how to detect Vista?

comp.databases.ms-access comp.databases.ms-access


Discuss A2K - how to detect Vista? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deano
 
Posts: n/a

Default A2K - how to detect Vista? - 01-22-2008 , 09:09 AM






My Access 2000 app doesn't work correctly under Vista for lord knows what
reason.

Any code for detected Vista when I start the database? Nothing shows up in
a search of this group, though feel free to correct me.



Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-22-2008 , 10:05 AM






Deano wrote:

Quote:
My Access 2000 app doesn't work correctly under Vista for lord knows what
reason.

Any code for detected Vista when I start the database? Nothing shows up in
a search of this group, though feel free to correct me.


Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

Help
http://www.youtube.com/watch?v=9ibX3TejlZE


Reply With Quote
  #3  
Old   
Arno R
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-22-2008 , 10:20 AM



"Salad" <oil (AT) vinegar (DOT) com> schreef in bericht news:13pc51qdgp6mh3b (AT) corp (DOT) supernews.com...
Quote:
Deano wrote:

My Access 2000 app doesn't work correctly under Vista for lord knows what
reason.

Any code for detected Vista when I start the database? Nothing shows up in
a search of this group, though feel free to correct me.


Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

Also look here
http://www.vbforums.com/showthread.php?t=434149

Arno R


Reply With Quote
  #4  
Old   
Larry Linson
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-22-2008 , 09:07 PM



"Deano" <deano (AT) mailinator (DOT) com> wrote

Quote:
Any code for detected Vista when I start the database?
I know some who'd say, "Make handsigns to ward off evil spirits, and watch
the reaction. If that causes a response, call a qualified exorcist."




Reply With Quote
  #5  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-24-2008 , 12:38 AM



Salad <oil (AT) vinegar (DOT) com> wrote:

Quote:
Any code for detected Vista when I start the database? Nothing shows up in
a search of this group, though feel free to correct me.

Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm
It's a bit out of date. I'm sure there's something newer somewhere at vbnet.mvps.org

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
  #6  
Old   
Deano
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-24-2008 , 03:43 AM




"Tony Toews [MVP]" <ttoews (AT) telusplanet (DOT) net> wrote

Quote:
Salad <oil (AT) vinegar (DOT) com> wrote:

Any code for detected Vista when I start the database? Nothing shows
up in
a search of this group, though feel free to correct me.

Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

It's a bit out of date. I'm sure there's something newer somewhere at
vbnet.mvps.org

Problem is I'm not sure I can convert vb.net code into VBA, certainly not
this sort of thing. If anyone has then please post.




Reply With Quote
  #7  
Old   
lyle
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-24-2008 , 04:17 AM



On Jan 24, 4:43 am, "Deano" <de... (AT) mailinator (DOT) com> wrote:
Quote:
"Tony Toews [MVP]" <tto... (AT) telusplanet (DOT) net> wrote in messagenews:licgp3941mduna3h6gc2sgbt8sqldp1bub (AT) 4ax (DOT) com...> Salad <o... (AT) vinegar (DOT) com> wrote:

Any code for detected Vista when I start the database? Nothing shows
up in
a search of this group, though feel free to correct me.

Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

It's a bit out of date. I'm sure there's something newer somewhere at

vbnet.mvps.org

Problem is I'm not sure I can convert vb.net code into VBA, certainly not
this sort of thing. If anyone has then please post.
Does this help?

Private Declare Function GetFileVersionInfo& Lib "Version" _
Alias "GetFileVersionInfoA" (ByVal FileName$, ByVal lptr&, _
ByVal lSize&, lpvData As Any)

Public Function Version$(ByVal FullPath$)
'2003/02/26 attribution to David Epson
Dim iBuf%(0 To 99)
GetFileVersionInfo FullPath, 0&, 200, iBuf(0)
Version = iBuf(25) & "." & iBuf(24) & "." & iBuf(27) & "." &
iBuf(26)
End Function

Sub test()
Debug.Print Version(Environ$("WINDIR") & "\Explorer.Exe")
End Sub


Reply With Quote
  #8  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-24-2008 , 02:52 PM



"Deano" <deano (AT) mailinator (DOT) com> wrote:

Quote:
Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

It's a bit out of date. I'm sure there's something newer somewhere at
vbnet.mvps.org

Problem is I'm not sure I can convert vb.net code into VBA, certainly not
this sort of thing.
That website was named vbnet long before vb.net was a gleam in someone's eye at
Microsoft. That website is specifically for VB6.0 API calls almost all of which are
copy and paste into Access (and others) VBA.

Tony

--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
  #9  
Old   
Stuart McCall
 
Posts: n/a

Default Re: A2K - how to detect Vista? - 01-24-2008 , 04:25 PM



"Deano" <deano (AT) mailinator (DOT) com> wrote

Quote:
"Tony Toews [MVP]" <ttoews (AT) telusplanet (DOT) net> wrote in message
news:licgp3941mduna3h6gc2sgbt8sqldp1bub (AT) 4ax (DOT) com...
Salad <oil (AT) vinegar (DOT) com> wrote:

Any code for detected Vista when I start the database? Nothing shows
up in
a search of this group, though feel free to correct me.

Maybe this link has the info you need.
http://www.mvps.org/access/api/api0055.htm

It's a bit out of date. I'm sure there's something newer somewhere at
vbnet.mvps.org

Problem is I'm not sure I can convert vb.net code into VBA, certainly not
this sort of thing. If anyone has then please post.
You could try checking the registry at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

My XP SP2 shows as 5.1. Vista will most likely be 6.x (no vista here, so I'm
unable to test).




Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.