Jun 4th, 2009, 09:03 AM
#1
Thread Starter
Fanatic Member
Windows 7 and Data Connections
Hello, I need help getting a connection to a database from within the windows 7 environment. The code currently works for windows XP flawlessly.
However in Windows 7 i get an error about a resource not being registered on the local computer.
Attached Images
Jun 4th, 2009, 09:09 AM
#2
Addicted Member
Re: Windows 7 and Data Connections
This is the same dialog box when I try to import an Excel file on Vista 64, where there is no 64-bit JET resource.
Could my situation and your situation be related?
PC #1: Athlon64 X2+Vista64+VS2008EE+.NET3.5 #2: XP (all flavours Ghost'd)+VS2008EE+.NET3.5
Help Files: HelpMaker · Dr. Explain · Create Icons: IcoFX
"Whoever eats my flesh and drinks my blood has eternal life, and I will raise him on the last day." John 6:54
Jun 4th, 2009, 09:18 AM
#3
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
yeah, Im assuming there is a different method to database connections. perhaps it doesn't use JET
Jun 4th, 2009, 09:18 AM
#4
Re: Windows 7 and Data Connections
I'm guessing you are running the 64-bit version of Windows 7?
http://en.wikipedia.org/wiki/Microso...atabase_Engine
The Jet Database Engine will remain 32-bit for the foreseeable future. Microsoft has no plans to natively support Jet under 64-bit versions of Windows.
Does this help? http://www.telerik.com/support/kb/as...l-machine.aspx
Jun 4th, 2009, 09:21 AM
#5
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
well this sure does look like the issue. If this is the case, which im 99% sure, then how can I connect to the database?
Jun 4th, 2009, 09:47 AM
#6
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
I can not find any solutions to connecting to a database from windows 7 64-bit
Jun 4th, 2009, 10:03 AM
#7
Re: Windows 7 and Data Connections
Jun 4th, 2009, 10:05 AM
#8
Addicted Member
Re: Windows 7 and Data Connections
Originally Posted by
TheUsed
I can not find any solutions to connecting to a database from windows 7 64-bit
What version of Visual Basic are you using? If you're using a non-Express Edition:
On a VS2008 project, if you chance the Target CPU to x86, it will work. (I went through the same thing using Vista 64 + VS 2008.)
Go to your project's properties, and navigate to Compile > Advanced Compile Options > Target CPU. Change to x86.
PC #1: Athlon64 X2+Vista64+VS2008EE+.NET3.5 #2: XP (all flavours Ghost'd)+VS2008EE+.NET3.5
Help Files: HelpMaker · Dr. Explain · Create Icons: IcoFX
"Whoever eats my flesh and drinks my blood has eternal life, and I will raise him on the last day." John 6:54
Jun 4th, 2009, 10:21 AM
#9
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
dang.. im using 2008 express... I have 2008 professional at home i'll just compile it there.
Jun 4th, 2009, 10:47 AM
#10
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
How can this be done programmatically?
Jun 4th, 2009, 11:26 AM
#11
Addicted Member
Re: Windows 7 and Data Connections
Originally Posted by
TheUsed
How can this be done programmatically?
How can what be done programatically? I'm guessing you want something like this:
Code:
If Environment.Version = "Professional Edition" Then
TargetCPU = "x86"
End If
???
PC #1: Athlon64 X2+Vista64+VS2008EE+.NET3.5 #2: XP (all flavours Ghost'd)+VS2008EE+.NET3.5
Help Files: HelpMaker · Dr. Explain · Create Icons: IcoFX
"Whoever eats my flesh and drinks my blood has eternal life, and I will raise him on the last day." John 6:54
Jun 4th, 2009, 12:17 PM
#12
Thread Starter
Fanatic Member
Re: Windows 7 and Data Connections
correct. however that wont work.. will it? what is TargetCPU declared as?
Jun 4th, 2009, 12:27 PM
#13
Addicted Member
Re: Windows 7 and Data Connections
No, I do not believe it will work.
PC #1: Athlon64 X2+Vista64+VS2008EE+.NET3.5 #2: XP (all flavours Ghost'd)+VS2008EE+.NET3.5
Help Files: HelpMaker · Dr. Explain · Create Icons: IcoFX
"Whoever eats my flesh and drinks my blood has eternal life, and I will raise him on the last day." John 6:54
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