 |
| Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET). |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 10th, 2006, 09:02 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sub Main makes me feel subnormal
I have lost my application aand get a request for a sub main or start-up.
Several months ago some members tried to help another subscriber with the same problem, but as far as I can see it went unresolved.
If there is no successful remedy I should prefer to know this, then I can start my application again.
I am not trying to hurry anyone, but a man of my age has of course
limited time.
Love and compassion to all,
Bogeybrown
|
|

October 10th, 2006, 09:11 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
hi there..
and your problem is???
did you lost your code???
HTH
Gonzalo
|
|

October 10th, 2006, 02:52 PM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Gonzalo
Yes I lost my code.
When I try to open my application I am asked for sub main or startup. I have tried for hours to put things right and failed.
Yours,
Bogeybrown
|
|

October 10th, 2006, 02:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
sorry I don't follow you.. you have parts of your code or you lost everything?? when you say that you open your app are you opening the project???
HTH
Gonzalo
|
|

October 11th, 2006, 11:37 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have two very similar versions of the project, Gonzalo. If you can help with just one, it would be greatly appreciated.
One project will not start and gives 'file not found.' It was first created in C:\program files\MicrosoftVisual Studio\vb98, but I have made so many attempts to fix it that it is now in several temporaries and My Documents all named as Project1, and all giving 'file not found'. The instruction to'use sub-main does not appear now.
The other version, which is basically the same, I named ADOVersion, and shows all the code, but will not show the user face.
It highlights an error as Compile error: User-defined type not defined,
and highlights faulty code as Public Function LoadRecordSetintGrid(ct1Grid As MSFlexGrid rs As ADODB.Recordset As Boolean.
Hoping for a successful remedy,
Yours
Bogeybrown
|
|

October 11th, 2006, 01:22 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
Let's go with the second version b/c the solution will be straigh foward... basically you have problems with the project dependences... just open the project, go to project (in the menu) and then to references.. you will see that some of then looks like missing (I dont recall the exact way it looks, I think it has a (missing) on it rigth...
you will have to find or install what is missing, and then it will work.
Maybe some of the references are not needed.. so try taking they out, but always take notes of what you take out. Also try to start the program with CTRL+F5 to do a full compile...
HTH
Gonzalo
|
|

October 11th, 2006, 04:37 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think this is not a problem of Reference, but some missing source files. it is possible that someone added a file to the project and now that file is missing (easy to do when more than one developer is working on the same project)
I would open the .vbp file in notepad, and see if one or some of the listed files (forms, modules, classes, usercontrols) is missing
if the file is missing, I am sorry but no one will be able to help you :(
do a search on your hard disk (of the one in the developer's computer) to see if you can still locate it
|
|
 |