CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    [Help Required] Platform Related issues in visual basic program

    Hi Friends,

    I am facing a certain problem in a program that i am writing. I am using Visual Basic 2008 on a 64 bit Win 7 OS. The program i am writing calculates the hash of certain windows processes and then stores them in an Access database (2003 .mdb type).

    Now the problem that occurs is that to access the database I make changes as

    Project (right click) -> Properties -> Compile -> Advanced Compile Options -> Target CPU to x86

    But when i use this setting the program throws a file not found exception when it tries the access the windows/system32 folder.

    So to access the windows/system32 folder i have to use the settings as :

    Project (right click) -> Properties -> Compile -> Advanced Compile Options -> Target CPU to x64

    but on using this setting i cannot access the database.

    Can anybody help me with this (if u can understand my problem)
    thanks in advance friends...

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: [Help Required] Platform Related issues in visual basic program

    Have you tried the 'Any CPU' option????
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Mar 2012
    Posts
    3

    Re: [Help Required] Platform Related issues in visual basic program

    Quote Originally Posted by GremlinSA View Post
    Have you tried the 'Any CPU' option????
    when i set the target anyCPU the database connection does not work because the jet driver is not for 64 bit systems. But the hash function fetches files from the windows/system32 folder. Is there any way to access the access database using target anyCPU

  4. #4
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: [Help Required] Platform Related issues in visual basic program

    But then i'd say your using old drivers to open the DB.. Not the built in .NET drivers...
    Post the code used to open the DB so that we can check for ya...

    please use code tags..

    [code] Your Code [/code]
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

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

Featured