Bin and Obj Folders

D

Diarmuid

Some questions on these

1) If I want to copy my project to another PC, do I need to copy the Bin and
Obj folders? I notice that they are rather large, especially if I'm mailing
to my home PC, where I only have dial up.

2) I have a database in the project, C:\Planner\Planner.mdb. It seems when I
run the project, that Planner.mdb gets copied into
C:\Planner\bin\Debug\Planner.mdb

Is there a way round this? I get the concept, its just that when I store
some data using the program, it seems to get overwritten the next time I
open the project.

Thanks
Diarmuid
 
C

Chris

Diarmuid said:
Some questions on these

1) If I want to copy my project to another PC, do I need to copy the Bin and
Obj folders? I notice that they are rather large, especially if I'm mailing
to my home PC, where I only have dial up.

No, the bin and obj folders are recreated when you build.
2) I have a database in the project, C:\Planner\Planner.mdb. It seems when I
run the project, that Planner.mdb gets copied into
C:\Planner\bin\Debug\Planner.mdb

Did you include the mdb in the project? There is no reason it has to
reside in the bin directory. How are you referencing the database in
your program? (what is your connection string)
Is there a way round this? I get the concept, its just that when I store
some data using the program, it seems to get overwritten the next time I
open the project.

Thanks
Diarmuid

Chris
 
D

Diarmuid

Thanks. I did include the mdb in the project.Connection string as follows:
Public Const conCONNECT As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data
Source= HTPlanner.mdb"
 
C

Chris

Diarmuid said:
Thanks. I did include the mdb in the project.Connection string as follows:
Public Const conCONNECT As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data
Source= HTPlanner.mdb"

Did you put the mdb in the debug directory?

Did you add the mdb as an item in the project?

Chris
 
D

Diarmuid

Chris said:
Did you put the mdb in the debug directory?

Did you add the mdb as an item in the project?

Chris


I didn't put it in the debug directory. Well, I think I didn't!
I did add the mdb as an item in the project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top