|
-
Jan 17th, 2003, 11:29 AM
#1
Thread Starter
Fanatic Member
VB Issue - Finally Resolved :: Thanx All :D
I have recently recovered from a virus, and have had to re-install VB 6.0 Ent. A program which used to function.. now doesn't! HELP!
Here is the offending code:
Code:
allfields = string(LOF(1), Chr$(0))
When the package runs... it says
"Can't find project or library" with Chr$ highlighted!
Any idea's?
Regards,
Paul.
Last edited by VisionIT; Jan 19th, 2003 at 05:10 PM.
-
Jan 17th, 2003, 11:31 AM
#2
well the file that contains that function is
C:\WINNT\System32\MSVBVM60.DLL
also.. did you install service pack 5 when you reinstalled?
-
Jan 17th, 2003, 11:35 AM
#3
Thread Starter
Fanatic Member
Haven't installed SP yet...
The MSVBVM60.DLL file is located in sys32 directory, but it still refuses to work! Arrgghhh
Regards,
Paul.
-
Jan 17th, 2003, 11:42 AM
#4
Thread Starter
Fanatic Member
Just another quick note:
I have removed the line, and it then says the same message for:
This has to be a component/reference thing, but which one should i enable?
Regards,
Paul.
-
Jan 17th, 2003, 11:43 AM
#5
Did you uninstall VB prior to reinstalling it?
-
Jan 17th, 2003, 11:46 AM
#6
Thread Starter
Fanatic Member
The system was flattened prior to a re-install. No OS, nothing!
Can't understand it... HELP. Surely there's just an option i haven't clicked?
Regards,
Paul.
-
Jan 17th, 2003, 11:48 AM
#7
1) did you reformat the drive?
2) did you install SP5 after the VB install?
-
Jan 17th, 2003, 11:50 AM
#8
Originally posted by VisionIT
The system was flattened prior to a re-install. No OS, nothing!
Can't understand it... HELP. Surely there's just an option i haven't clicked?
Regards,
Paul.
Where did you get your code from? If it was from some sort of external backup which also contained your vbp file, that file should know all about the components and references you need.
-
Jan 17th, 2003, 11:52 AM
#9
Originally posted by MartinLiss
Where did you get your code from? If it was from some sort of external backup which also contained your vbp file, that file should know all about the components and references you need.
yeah or start a new app and see if you can run it...
-
Jan 17th, 2003, 11:54 AM
#10
Addicted Member
You might also just step through your code to make sure everything is correct. On occasion, I receive this type of error for the MID command, but it generally occurs as a result of nesting or a syntax error somewhere earlier in the program.
-
Jan 17th, 2003, 11:58 AM
#11
Thread Starter
Fanatic Member
Originally posted by MartinLiss
Where did you get your code from? If it was from some sort of external backup which also contained your vbp file, that file should know all about the components and references you need.
Mr Genius... i bow to thee ! 
It's fine now... i just opened the VBP file in wordpad, and read all the keys !
Nice one!
Regards,
Paul.
-
Jan 17th, 2003, 12:03 PM
#12
I'm happy my suggestion helped, but you actually misinterpreted what I meant. What I was trying to say was that the vbp file should know about the components and references you need and choose/select them automatically. I wonder why it didn't do that and you were (I assume) forced to reselect them?
-
Jan 17th, 2003, 12:55 PM
#13
Fanatic Member
Marty,
My best guess is he created a project and then later tried to open just one form, not the project. In this case it would create a new .vbp file with the generic references. Now the big question becomes, why was the generic .vbp file missing vb references library? Or was he just opening it with a corrupt .vbp file? Anyway, I've seen similar problems to this issue, so that would be my guess
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
-
Jan 18th, 2003, 06:14 AM
#14
Thread Starter
Fanatic Member
Armbuster...
Just to let you know, I was opening the package and not just a form, but STILL NOW... it refuses to work!
I'm in the process of formatting the system (again), so i'll see what it errors with then.
I thought i'de done it yesterday... turns out, it's still crashing with the same message.
Can anyone advise?
Regards,
Paul.
P.S No service pack yet!
-
Jan 18th, 2003, 01:56 PM
#15
-
Jan 18th, 2003, 02:41 PM
#16
Thread Starter
Fanatic Member
Yep... all those are listed. Can't understand why it's happening? It's 23Mb, and i'm NOT re-typing it! LOL
Regards,
Paul.
-
Jan 18th, 2003, 08:07 PM
#17
Fanatic Member
Please tell me your .vbp file isn't 23 Meg!! If it is, then it is definately corrupt. It should be about 2-3 KB, maybe 5-6 KB, but definately nowhere near a meg. It would be easy to recreate. Simply open one of your forms. This would open a default project. Add the rest of your forms and modules and any missing references and your done. It really would be quite easy.
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
-
Jan 18th, 2003, 09:54 PM
#18
Frenzied Member
Originally posted by kleinma
1) did you reformat the drive?
2) did you install SP5 after the VB install?
SP isn't necessary - core functions libarry will be present regardles off any fixes.
What I would try to do is to open a brand new project and try using any of "built-in" finctions and keywwords (especially String functions because most of them are part of VBA labrary). If that works then add all of your forms and modules to that project and get rid of default Form1. This should work. These sort of things are happening from time to time - your System has lost a pointer to one of VB's core library for some particular project, but when you start a brand new one - it will "refresh" itself.
Hope this will help you.
-
Jan 19th, 2003, 06:20 AM
#19
Thread Starter
Fanatic Member
Sorry...
My mistake...
the whole package is 23mb's, not the VBP file. 
I've tried creating a new program, and it still crashes with that !
I'm flattening the system now... so i'll BRB
Regards,
Paul.
-
Jan 19th, 2003, 07:17 AM
#20
Fanatic Member
hey,
i have the exact same problem with my project. I created it under windows xp, and then tried running it under 98. It didnt load, and i couldnt figure out why, so i installed VB on the 98 machine and ran my project through the interperator, and it highlights almost every line of basic stuff.
I found that adding VBA. before lines like Mid$, Chr$, Format, Instr, Left, etc made them work, but functions line Input still dont work and i cant add VBA. before them
VB Code:
MsgBox Left$("blah blah", 4) 'Doesnt work
MsgBox VBA.Left$("blah blah", 4) 'Works
Does this work for u? or do i have a different problem?
-
Jan 19th, 2003, 10:22 AM
#21
Thread Starter
Fanatic Member
Oh... too l8
Sorry, but i've already started the format. It should be ready in a few hours. There's 3 x 200Gb's to format BTW, thats why it takes sooooo long! 
If the problem still occurs after the format (hope it doesn't), i'll try it and let you know.
Hope you get your's fixed ! 
Regards,
Paul.
-
Jan 19th, 2003, 10:52 AM
#22
Frenzied Member
So far at least 2 people have asked if you have installed Service Pack 5 and you still havent answered them.
Can u post ur project and we'll see if we can run it?
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Jan 19th, 2003, 10:59 AM
#23
Thread Starter
Fanatic Member
Er... i think you'll find i have Look at my reply to Armbuster!
This package can not be given to an external source for security purposes, sorry. It's not my decision.
Regards,
Paul.
-
Jan 19th, 2003, 11:07 AM
#24
Frenzied Member
hehehe OK my apologies, ill let you off then! but the reply was 'no service pack yet'. Whats all that about? You having trouble downloading it?
Have you tried opening and running other large vb apps to see if its just a prob with that particular program?
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Jan 19th, 2003, 11:09 AM
#25
Frenzied Member
.....and you dont have to format the other 2 drives as they arent needed to get windows and vb up and running, you can do them later
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Jan 19th, 2003, 11:22 AM
#26
Thread Starter
Fanatic Member
No problems with downloading the SP, i just haven't got round to it 
Our format function format's all the drives on the IDE / MB133 at the same time, so windows registers the RAID for the other 2 200Gb's drives.
Anyway... the system has just finished... so i'll BRB.
Regards,
Paul.
-
Jan 19th, 2003, 01:34 PM
#27
Thread Starter
Fanatic Member
Well... it's finally finished installing... and you'll never guess !
It still DIDN'T WORK... but now it's fine.
SOLUTION:
Uncheck EVER reference & component, and save. Re-open and apply all the previous references & components.. and it's done !
Oh... and the VBA. prior to the code worked perfectly BTW, but I decided to find the root of the problem.
Thankyou all for the help, but I must finish it now. 
Kind Regards,
Paul.
-
Jan 19th, 2003, 01:59 PM
#28
-
Jan 19th, 2003, 02:17 PM
#29
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|