Results 1 to 6 of 6

Thread: Add a reference to Visual FoxPro dll

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    Add a reference to Visual FoxPro dll

    Hey guys. My program uses the visual foxpro driver to open dBase files, but I can't seem to get it to add a reference to this dll so that when it is installed on someones computer it works. I have even tried to manualy browse to the dll and include it but VS says I can't.

    It doesn't show up in the COM reference list at all.

    My program wont work without the fox pro driver, so how do I include it as a prerequesite?

    Thanks!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Add a reference to Visual FoxPro dll

    You shouldn't need to reference anything. You should just be specifying that driver in your connection string. As for requiring it as a prerequisite for your app, you would either install it as part of your Setup or else add a Launch Condition to your Setup that looks for a file, registry entry or the like that identifies that driver as being installed.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Add a reference to Visual FoxPro dll

    You mean the ODBC Driver? If yes, the way i'm deploying this Driver is adding this Driver to my App's Installation Package and executing the installer before my App's Installer ends. The driver must be the correct language, i think it has to be the same language than the OS is, for multiple language support you have to deploy all the installers (files) you need and execute one of them, if that's not the correct language that same Installer will call the correct language Installer, but it must be present in the same path.

    The Driver installers are here: Visual FoxPro ODBC Driver
    (i just tested the MSI versions)
    Last edited by jcis; Sep 10th, 2007 at 07:49 PM.

  4. #4

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    Re: Add a reference to Visual FoxPro dll

    Hrmm, I am using the ClickOnce publisher in VS2005, how would I go about adding the driver to my setup package? I dont see an option for that.

    I just need to make sure this driver is installed on the client machine before my program runs.

    Yes it is the ODBC driver.

    Thanks guys!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Add a reference to Visual FoxPro dll

    http://msdn2.microsoft.com/en-us/lib...1x(VS.80).aspx

    On that page there's a Note box that provides a link to a page entitled "Adding Custom Prerequisites". Sounds like exactly what you want.

    Note that I have never used ClickOnce and barely researched it. I just went to MSDN and typed clickonce prerequisites in the search box and that was the third result. The simple things in life are often the best.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    Re: Add a reference to Visual FoxPro dll

    Interesting, looks like I need to do some work to the manifest file.

    I'll read into it.

    If anyone has any first hand knowledge on this subject feel free to let me in on it!

    thanks!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


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