Results 1 to 2 of 2

Thread: Determine Target CPU | Microsoft Access OleDB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2013
    Posts
    4

    Determine Target CPU | Microsoft Access OleDB

    Hi,

    I have an application which I've developed which is used across a big organization. As such, there are a variety of PCs with different OS being used. As such, the ODBC connection doesn't always work unless the user is using the correct bit version of the application. I receive an error message when I try to connect to access when the wrong Target CPU has been selected.

    My proposed solution is to deploy both versions of the application (V_x86 & V_64) and include a Launch (startup) application which would then load the applicable exe to match the user's PC settings.

    Would anyone know if there is a function/property which would I could call/read to determine the which of the two exes (V_x86 & V_64) to run for a given user?

    Thank you in advance for any guidance.
    Kind regards,
    MJC

  2. #2
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,684

    Re: Determine Target CPU | Microsoft Access OleDB

    The following should work

    Code:
    Select Case RuntimeInformation.ProcessArchitecture
        Case Architecture.X64
            '
        Case Architecture.X86
            '
        Case Else
            '
    End Select

Tags for this Thread

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