Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 10th, 2006, 09:02 AM
Registered User
 
Join Date: Oct 2006
Location: leeds, yorkshire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



Reply With Quote
  #2 (permalink)  
Old October 10th, 2006, 09:11 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

and your problem is???

did you lost your code???

HTH

Gonzalo
Reply With Quote
  #3 (permalink)  
Old October 10th, 2006, 02:52 PM
Registered User
 
Join Date: Oct 2006
Location: leeds, yorkshire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
  #4 (permalink)  
Old October 10th, 2006, 02:55 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

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
Reply With Quote
  #5 (permalink)  
Old October 11th, 2006, 11:37 AM
Registered User
 
Join Date: Oct 2006
Location: leeds, yorkshire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Reply With Quote
  #6 (permalink)  
Old October 11th, 2006, 01:22 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

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
Reply With Quote
  #7 (permalink)  
Old October 11th, 2006, 04:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you feel the same? thinkseo123 HTML Code Clinic 0 May 18th, 2007 10:14 AM
The thing makes me confuse. explain to me please PhungVinh General .NET 0 June 22nd, 2006 12:53 AM
PlaySound makes wierd noise darthziv C# 2 April 5th, 2006 02:52 AM
With SendInput, KEYEVENTF_KEYUP makes no keyup EMHmark7 Pro VB.NET 2002/2003 0 November 22nd, 2004 05:56 PM
Editing makes a topic active? Snib Forum and Wrox.com Feedback 2 April 7th, 2004 08:05 PM



All times are GMT -4. The time now is 03:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.