Jump to content

setup of vb6.0 project eror

- - - - -

  • Please log in to reply
10 replies to this topic

#1
danish raza

danish raza

    Newbie

  • Members
  • Pip
  • 5 posts
hi!
i am stuck in a problem ...i had made a setup of vb6.0
project through visual studio installer the set up works perfectly fine on the same pc .but when i install it on other machine it installs easily but when i open up any form it give me path errors that access file not found .it occurs because i have given the path of that pc on which i had made the project ..some body help me to resolve this issue plz so that my project can run on other pc also .......waiting for the response

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Moved to the correct forum.

Aside from the question of why you're using VB6.0, Can you provide more information about the paths, versions of Windows, etc?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Abu Ehab

Abu Ehab

    Newbie

  • Members
  • PipPip
  • 11 posts
Look :Must specify all the required files first .... Skip the following steps
And especially the database file and DLL & Ocx

Posted Image

While it is best to use the program Setup Factory 8

#4
danish raza

danish raza

    Newbie

  • Members
  • Pip
  • 5 posts
i am using factory setup for making the setup the issue is that when i run my project setup installer on the same PC it works fine but when i work it on other machine setup installs successfully but when i play vb forms it gives error that this path does not exist .the problems occurs because my vb form submit the data from vb form to a access database and i have give the location of the database on that pc in which i had made my project so how can i make my project work also on other pcs .

#5
danish raza

danish raza

    Newbie

  • Members
  • Pip
  • 5 posts
i am using window xp......
and for path
con.Provider = "Microsoft.ACE.OLEDB.12.0"
con.ConnectionString = "D:\Downloads\Compressed\Project \vb6\pd.accdb"
this path is on that pc on which i had my project but this path does not exist on other pc thats why it is giving error so how to resolve it???
i am using factory setup for making the setup the issue is that when i run my project setup installer on the same PC it works fine but when i work it on other machine setup installs successfully but when i play vb forms it gives error that this path does not exist .the problems occurs because my vb form submit the data from vb form to a access database and i have give the location of the database on that pc in which i had made my project so how can i make my project work also on other pcs .

#6
Abu Ehab

Abu Ehab

    Newbie

  • Members
  • PipPip
  • 11 posts

Quote

I have give the location of the database on that pc in which i had made my project
This is big mistak
The Connection must be like : App.Path & "\DataBase Name.mdb"
don't use for example "c\MyFolder\DatabaseName.mdb"

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I would install the access database to a known location, such as %My Documents%. Alternatively, you could have a small configuration file to store the location of the database and read in the connection string on startup.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
danish raza

danish raza

    Newbie

  • Members
  • Pip
  • 5 posts
could you explain in detail i will be thankful to you

#9
danish raza

danish raza

    Newbie

  • Members
  • Pip
  • 5 posts
thanks ! its solve my problem:rolleyes:)

---------- Post added at 03:49 PM ---------- Previous post was at 03:33 PM ----------

itz working fine with my vb forms but i had made reports also on vb6.0 but now the problems occurs that when i play the reports it give me this error
[ATTACH]4288[/ATTACH]
kindly help me out

#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Invalid attachment. Also, I don't actually know VB, just common coding mistakes.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#11
Abu Ehab

Abu Ehab

    Newbie

  • Members
  • PipPip
  • 11 posts
Iam proishionnal in VB and good in VB.Net ,, Upload your project Contains Ocx and Dll files and I well return it as a profisionnal Setup File To you:)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users