Important alert: (current site time 7/16/2013 2:46:39 AM EDT)
 

winzip icon

DeepLook 4.9

Email
Submitted on: 3/4/2005 5:27:32 AM
By: Dean Camera  
Level: Intermediate
User Rating: By 50 Users
Compatibility: VB 6.0
Views: 22574
author picture
(About the author)
 
     DeepLook project analysing software. I have now moved onto embedded microcontrollers and the C language so I will not be updating this project any further, unless problems are found by users. DeepLook can scan and give reports for group, project or single VB files written in VB6, VB5 and (limited information) .NET. It shows all returned information in an easy to navigate Treeview and (for found unused variables) grid. Please vote and comments on the final version of this software are most definetly welcome. -------------------------------------------------- UPDATE: A new version is avaliable on PSC, this is kept because it has a shiny gold logo.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/4/2005 6:26:41 AMKinex

I'll gave you 5 because it is written very well and looks professional. I liked the unused variables information most. But well.. if someone uses Option Explicit this shouldn't happen.
(If this comment was disrespectful, please report it.)

 
3/4/2005 6:31:30 AMDean Camera

True, true. I hope to find the time one day to finish the unused-variable scanner engine (see note in the UVS grid) but in the meantime I really hope to win the Code of the Month contest as I have worked hard on this over a very long period of time.

Keep those comments and votes coming!
- Dean
(If this comment was disrespectful, please report it.)

 
3/4/2005 7:25:12 AMSanta''s Little Helper

I like your work, so 5 from me. only 1 suggestion incase you decide to release another version. - When I browse to the subs section within a form, it would be nice to beable to view the code.

But great work

Thanks
(If this comment was disrespectful, please report it.)

 
3/4/2005 8:20:09 AM

This is a brilliant piece of code. I hope I learn alot fromit.
(If this comment was disrespectful, please report it.)

 
3/4/2005 11:19:33 AMMatthew R. Usner

Nice job. Got your note re beta, check your inbox. Thanks.

(If this comment was disrespectful, please report it.)

 
3/4/2005 10:45:20 PMDean Camera

Remember to keep voting and commenting! If you REALLY want to be able to view the code, I could implement and update the .ZIP when time allows. I would re-write the unused variable scanner so it works correctly but I need to become sufficiently motivated to get away from my C coding ;) .

- Dean
(If this comment was disrespectful, please report it.)

 
3/5/2005 10:50:28 AMJohn D. Blakeney

You deserve 5 globes for the idea, and the fact that you put the time and effort into the project should get you 5 more. But alass, only 5 can be given...
(If this comment was disrespectful, please report it.)

 
3/6/2005 7:12:25 AMHappy Lobster

I didn't check the code but some of those custom controls are great!
(If this comment was disrespectful, please report it.)

 
3/6/2005 2:00:54 PM

Good one Dean. 5 from me.
(If this comment was disrespectful, please report it.)

 
3/6/2005 9:34:54 PMDean Camera

Thanks to all, i'm equal 6th at the moment! Only need to be in the top 3 to win...

Remember that the GUI controls arn't mine - credits on the "About" page - I only wront the actual scanning engine. However, if you want to vote 5 for my use of other's control's go ahead! ;)

- Dean
(If this comment was disrespectful, please report it.)

 
3/7/2005 6:57:30 AMA.M.E.

Gave you 5 globes, mainly because of your thinking, your manners and your scanning engine :)

works great, keep up the good work...

(If this comment was disrespectful, please report it.)

 
3/7/2005 9:10:32 AMMorgan Haueisen

It still does not find all of the unused variables. Check out Module ModRegistry, Sub DeleteKey, variable hKey and Module ModMsgBoxEx, Sub MsgBoxEx, variable lRet in your code.
(If this comment was disrespectful, please report it.)

 
3/7/2005 1:02:13 PMZirro Tolerance

Only bad comment i have about it is your not using FreeFile when opening a file. Other then that everything looks good.
(If this comment was disrespectful, please report it.)

 
3/7/2005 3:05:12 PMMorgan Haueisen

It also is not reporting the information correctly. Create a project with a single form and add the following code:

Option Explicit

Private Sub Command1_Click()

'// this is a comment line
Label1.Caption = "test line"

End Sub

It reports back
6-blank lines (should be 3)
3-lines of code (should be 3)
(If this comment was disrespectful, please report it.)

 
3/7/2005 5:47:58 PMDean Camera

Hey,

I know about the problems with my variable scanner - see the unused variable scanner note (double-click note text in the UVS grid). I could fix this when time allows.

More urgent is the above report that the blank lines are not reporting correctly. I shall investigate this further and update the .ZIP ASAP. I'll add the freefile commands also at the same time - that's easy.

Thanks for all the votes, i'm #3 so far! All I need to do is stay in the top 3 for the rest of the month...

- Dean
(If this comment was disrespectful, please report it.)

 
3/7/2005 6:09:53 PMDean Camera

Hmmm, sure your not reading the nodes wrong? Remember, they are lines WITH blanks, and lines WITHOUT blanks. That woudl make it 6 lines including blanks, and 3 lines without blanks. Incidentally, that would make the code lines out by one (comments are not included in this) but i'm sure DeepLook's just ignoring the
(If this comment was disrespectful, please report it.)

 
3/8/2005 4:50:21 PMDean Camera

...Sub end or start code lines. After testing, it seems the code lines is always out by 1 (+1 to the result) but this will require further testing to determine the cause. Thanks for tryig DeepLook.

- Dean
(If this comment was disrespectful, please report it.)

 
3/8/2005 7:16:21 PMtamogachi

44 check out lol on psc
http://www.planet-source-code.com/vb/scr
ipts/showcode.asp?txtCodeId=59378&lngWId
=1

(If this comment was disrespectful, please report it.)

 
3/9/2005 11:24:56 PMDean Camera

Uh, am I missing somthing? Are you speading the word for us to bag the guy, or are you implying somthing about me or the code?

- Dean
(If this comment was disrespectful, please report it.)

 
3/11/2005 11:40:35 AMMatthew R. Usner

He's been spamming a lot of submissions, don't take it personally. See you moved up to second place, congrats! Don't worry about Lite Templer's petition notification; it won't be considered for COTM because it's not just a matter of computer-counting of excellent votes. Humans do play a role in determining the winner, ya know! Good luck.

(If this comment was disrespectful, please report it.)

 
3/17/2005 10:59:49 AMLaVolpe

Dean you got Round(4.75) from me. 2 suggestions. 1) Unused variables-different issue I think. It doesn't appear code is recognizing variable names using in Choose,Select,Function Parameters. They are used but not assigned to a variable. The other suggestion is for next version(s): 1) unused Declares (project wide if public declare), 2) unused subs/functions, 3) Maybe allow vbg files to be analyzed--currently errors out when attempted.
(If this comment was disrespectful, please report it.)

 
3/17/2005 11:16:32 AMLaVolpe

One more thing. If you do post another version, fix memory leaks. Simply opening & closing the selection form leaks -- most likely related to custom controls but that is for you to figure out. To see what I mean use task mgr & watch the GDI count keep rising.
(If this comment was disrespectful, please report it.)

 
3/17/2005 11:43:34 AMRichard Mewett

Good work. Nice functionality and implementation. You have kept improving this so I'll give 5 for the program and the committment!
(If this comment was disrespectful, please report it.)

 
3/17/2005 12:25:13 PMLight Templer

Dean, you must stay in top four, not only top three ;-) to get COTM, so you have a very good chance this time ;-) ! ______ The most supported, over and over improved VB source code scanner I know is the one included in fine freeware addin MZ-Tools. Carlos fixes glitches, specials and rare code situations for years now, but he still isn't ready and releases a new fixed version every month ;-). Maybe you want to check your results against MZ-Tools to see parts with problems. (And remember: Your code is public source, MZ-Tools are totaly free, but not open source. So you are doing an important job writing a public available VB parser.)
Kind regards and good luck! LiTe
(If this comment was disrespectful, please report it.)

 
3/18/2005 5:00:38 AMDean Camera

Hmmm, I must address these issues. Like the name suggests, this WAS supposed to be the final version, but I can't STAND to leave a project unfinshed. I shall endevour to fix the UVS before releasing; but remember people, the program even states that the UVS is unfinished! LaVolpe, DeepLook should scan VBG file - at least, everyone i've tried works fine. Coudl you please email the .VBG file (only) to me so I could look at it? Incidentally, does all the projects within the VBG scan correctly? The memory leak i'd say comes from either the charmelion button control or the progress bar; shall look at this more. I've been tweaking the code at home, made it a tiny bit faster, fixed obscure issues and added pie charts to graphically show the proportion of code, blank and comment lines. Will upload once major fixes implemented - anyone interested in BETA tests?

- Dean
(If this comment was disrespectful, please report it.)

 
3/18/2005 9:12:09 AMLaVolpe

Dean, I can do better. I'll run it again & tell you exactly what the vbg file issue is. You'll prove yourself right -- the usercontrols (at a minimum) are your leaks & they are somewhat significant.
(If this comment was disrespectful, please report it.)

 
3/22/2005 5:09:58 PMDean Camera

Hey all,

Thanks for the votes, almost won COTM! Stay tuned for an updated version next month, including pie charts to graphically show the code/blank lines of the group/project/selected file/selected sub, function or property. I've also fixed a lot of minor and major bugs in the parser engine.

Before I submit, I will iron out the annoying memory leak with others (LaVolpe, etc.) help. Speakig of which, remeber to check out LaVolpe's subclassing submission, it's great!

- Dean
(If this comment was disrespectful, please report it.)

 
3/27/2005 6:48:40 PMMatthew R. Usner

In one of my programs, it says I have 155 controls on my main form, but there are in actuality fewer than that, because many if not most of them are in control arrays. Remember that VB counts multiple control array elements as one towards the allowable maximum. Is there a way to expand upon reporting the number of forms on a control so that it reports both the number of controls on the form but also the number that actually count towards the maximum? In other words take control arrays into account? (I think there's 250 max distinct controls allowed????) Am I making any sense? Should I even be asking? :)


(If this comment was disrespectful, please report it.)

 
3/27/2005 9:31:29 PMDean Camera

HOW DARE YOU ASK!! No, I kid, I kid. Implementing that feature seems like an easy task; shall add and re-post with the new version next month. Stay tuned for some exciting new features and bug fixes; working on getting the Unused Variable Scanner working before releasing.

- Dean
(If this comment was disrespectful, please report it.)

 
3/28/2005 6:47:22 AMDean Camera

Ok, added the feature; took a little while longer than expected due to dumb-thinking but works fine - can send the advance BETA code to you if you want. Still an annoying bug to fix in the UVS engine, although it works much better now than before.

- Dean
(If this comment was disrespectful, please report it.)

 
3/28/2005 12:18:04 PMMatthew R. Usner

Go ahead and mail it to me if you want; I'd like to see the new features but can wait till repost next month. Re the UVS: Is the bug you're talking about the one you have documented where variables declared in multiple subs aren't processed properly? i.e. a variable 'i' declared as private in multiple subs doesn't get totally scanned? That would be a nice issue to resolve.

(If this comment was disrespectful, please report it.)

 
3/28/2005 6:54:57 PMDean Camera

Well, i'd rather you wait until I get the bugs figured out before I let you see it. Incidentally, your going to (figurativly speaking) love me for this; i've resolved the UVS issue (now the scanner even tells you the SPF location of the unused variables) - the bug is in the new code (some used variables are reported as unused in cetain situations). Will fix and post ASAP liek I said.

- Dean
(If this comment was disrespectful, please report it.)

 
3/28/2005 10:21:46 PMMatthew R. Usner

Figuratively speaking indeed... :)

(If this comment was disrespectful, please report it.)

 
3/31/2005 6:01:37 PMMatthew R. Usner

6 hours to go... tick... tick... tick...
(If this comment was disrespectful, please report it.)

 
3/31/2005 11:14:39 PMLaVolpe

.5 hours to go... tock ... tock
(If this comment was disrespectful, please report it.)

 
3/31/2005 11:15:16 PMLaVolpe

ugh, my pc time is off 15 mins again -- need a new cpu soon :)
(If this comment was disrespectful, please report it.)

 
4/1/2005 11:54:23 AMLaVolpe

Dean, did you read the post by Ian? The vote tallies somehow skewed & there won't be any winners for March, the number of votes will be erased & will compete for April. This being your first win, I can't help but say: hah, happy April Fool's day. All joking aside, congrats. Keith
(If this comment was disrespectful, please report it.)

 
4/2/2005 1:17:04 PMMatthew R. Usner

LaVolpe, you evil, evil man...

(If this comment was disrespectful, please report it.)

 
4/2/2005 1:18:47 PMMatthew R. Usner

Geez, it's only the 2nd and you already got you COTM bitmap? it usually takes over a week. I smell a rat, or a payoff to someone. :-) Congratulations, this is excellent code and it deserves COTM.

(If this comment was disrespectful, please report it.)

 
4/5/2005 9:38:45 PMDean Camera

Finished the (now TRUE) final version, including new features, no leaks and a working Unused Variable Scanner. Shall upload ASAP after some more rigerous testing. Anyone interested in giving the BETA a workout?

- Dean
(If this comment was disrespectful, please report it.)

 
4/6/2005 11:32:51 AMMatthew R. Usner

Count me in.
(If this comment was disrespectful, please report it.)

 
4/19/2005 1:03:39 AMBenjamin Turski

When you scan a project where a project's file reference doesn't exist, program errors out.

Ex. Scan FileRegister.vbp in the .\Source\File Registerer EXE\ dir contained with this project. Errors out b/c C:\temp\FS\Source\FileSearch\File.cls does not exist.

Just a little bug...
(If this comment was disrespectful, please report it.)

 
4/19/2005 1:40:37 AMDean Camera

Try the latest version - submitted seperatly. At most DeepLook should just give a MsgBox warning and continue scanning (unless you disable the warnings via the options screen) although there is a relative file bug that is present in all version except the one im currently working on. It's got HTML/XML reports, wanna try it out?
(If this comment was disrespectful, please report it.)

 
4/23/2005 5:34:50 PMunsticky

When I ran this on one of my projects, I got a bad file name error, during the scan. On debug, it highlighted your FileExist Function. Whether or not this has happened with anyone else, I'm just giving you a heads up.
(If this comment was disrespectful, please report it.)

 
3/31/2006 9:16:30 AMJuan Carlos

Great code, I really like it. From Costa Rica, Central America - Greetings.
(If this comment was disrespectful, please report it.)

 
2/17/2010 10:46:41 AMrobin

this is good softwere
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.