Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

setup of vb6.0 project eror

Visual Basic 4 / 5 / 6 form

  • Please log in to reply
10 replies to this topic

#1 danish raza

danish raza

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 03 November 2011 - 10:19 AM

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
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 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

Posted 03 November 2011 - 10:47 AM

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?
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 Abu Ehab

Abu Ehab

    CC Newcomer

  • Member
  • PipPip
  • 11 posts

Posted 03 November 2011 - 12:43 PM

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
  • 0

#4 danish raza

danish raza

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 04 November 2011 - 09:44 AM

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 .
  • 0

#5 danish raza

danish raza

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 04 November 2011 - 09:49 AM

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 .
  • 0

#6 Abu Ehab

Abu Ehab

    CC Newcomer

  • Member
  • PipPip
  • 11 posts

Posted 04 November 2011 - 11:39 AM

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"
  • -1

#7 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 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

Posted 04 November 2011 - 05:31 PM

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.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#8 danish raza

danish raza

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 05 November 2011 - 02:24 AM

could you explain in detail i will be thankful to you
  • 0

#9 danish raza

danish raza

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 05 November 2011 - 02:49 AM

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
  • 0

#10 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 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

Posted 05 November 2011 - 06:05 PM

Invalid attachment. Also, I don't actually know VB, just common coding mistakes.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#11 Abu Ehab

Abu Ehab

    CC Newcomer

  • Member
  • PipPip
  • 11 posts

Posted 06 November 2011 - 08:11 AM

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:)
  • 0





Also tagged with one or more of these keywords: Visual Basic 4 / 5 / 6, form

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download