Results 1 to 13 of 13

Thread: Windows 7 and Data Connections

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    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 Attached Images  

  2. #2
    Addicted Member
    Join Date
    Apr 2009
    Location
    Near Dog River (sorta)
    Posts
    160

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: Windows 7 and Data Connections

    yeah, Im assuming there is a different method to database connections. perhaps it doesn't use JET

  4. #4
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    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

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    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?

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: Windows 7 and Data Connections

    I can not find any solutions to connecting to a database from windows 7 64-bit

  7. #7
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: Windows 7 and Data Connections


  8. #8
    Addicted Member
    Join Date
    Apr 2009
    Location
    Near Dog River (sorta)
    Posts
    160

    Re: Windows 7 and Data Connections

    Quote Originally Posted by TheUsed View Post
    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

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: Windows 7 and Data Connections

    dang.. im using 2008 express... I have 2008 professional at home i'll just compile it there.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: Windows 7 and Data Connections

    How can this be done programmatically?

  11. #11
    Addicted Member
    Join Date
    Apr 2009
    Location
    Near Dog River (sorta)
    Posts
    160

    Re: Windows 7 and Data Connections

    Quote Originally Posted by TheUsed View Post
    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

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: Windows 7 and Data Connections

    correct. however that wont work.. will it? what is TargetCPU declared as?

  13. #13
    Addicted Member
    Join Date
    Apr 2009
    Location
    Near Dog River (sorta)
    Posts
    160

    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
  •  



Click Here to Expand Forum to Full Width