Important alert: (current site time 7/16/2013 2:54:33 AM EDT)
 

winzip icon

CODE FIXER 2.9.9

Email
Submitted on: 4/21/2004 1:20:14 AM
By: Roger Gilchrist 
Level: Advanced
User Rating: By 56 Users
Compatibility: VB 6.0
Views: 32327
author picture
(About the author)
 
     NEW VERSION 3 NOW AT http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=59247&lngWId=1 Will leave this here as a safety for a couple of weeks. This is a VB6 ( SP5 or SP6 required for ListView to work properly , Thanks Ariel) Add-In which allows you to indent code, find and repair/improve code for greater efficiency and readability and includes a user friendly replacement for VB's Find And Replace Tool. ------v2.9.9 several small tweaks mostly rare conditions or recent stuffups (See history.txt for details). --------------------------------------------- Quick search for 'CODE FIXER HELP FILE' to get the help file (You will need it!) The Find Tool component is designed to be permanently docked with the VB IDE(See Launch on Startup button on Settings screen). While this takes screen real estate, unlike VB's own find tool, it doesn't hide the code. I find it easiest to use if docked at top of the IDE under the VB toolbars. --------------------------------------------- WARNING All care; No responsibility. Some of the fixes the Add-In performs are capable of damaging code. Please use on copies of your code or use the built-in backup systems. --------------------------------------------- See readmeCodeFixer.txt in zip for installation instructions. -------------------------------------------- All bug reports gratefully recieved. If you have sent me one previously please check if I have patched it and let me know if not. -------------------------------------------- Thanks to Ulli for original inspiration and to the many who have assisted me with bug reports (you should find your name somewhere in the code, the thanks.rtf has been removed to keep the zip size down). --------------------- NEW NEW NEW NEW New item on CF menu 'Fix & Format (Ctrl Def Prop)': Because of the way it works the Default Property fix can be very slow, is unlikely to be needed more than once per project but it requires data gathered during the normal fix cycle. I know its an ugly menu item but until I think of a different, way to present this will do.

 
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 95 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 Advanced 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
4/21/2004 5:10:42 AMRobert Rayment

This is tremendous code of course, cheek to ask, but what I would like is a non-addin version with a choice to produce a report, in a given category (eg unused variables) without adding it all to the project.
(If this comment was disrespectful, please report it.)

 
4/21/2004 1:21:49 PMChris Seelbach.

A very useful tool. Thank you for sharing it. ;)
(If this comment was disrespectful, please report it.)

 
4/21/2004 7:58:42 PM

Thanks for sharing such a usefull tool. 5 G's.
(If this comment was disrespectful, please report it.)

 
4/24/2004 12:18:50 AMPaul Turcksin

Impressive submission.
Deserves a full documentation to clarify the myriad of options.
Also like to know what this AddIn is doing with my toolbar(s).
All in all, deserves more than a fiver
(If this comment was disrespectful, please report it.)

 
4/25/2004 2:13:11 AMandymacp

superb, i never usually comment but this is class. Why didnt you sell this ?
(If this comment was disrespectful, please report it.)

 
4/25/2004 9:03:50 AMJim K

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

 
4/28/2004 5:34:20 AMMasino Sinaga

You should post this submission at April 1, 2004 to get the winner of the month. Big and great job. I hope you can win it this month. 5 globes from me.
(If this comment was disrespectful, please report it.)

 
4/29/2004 1:44:04 AMRandy Giese

Roger;
Thank you for a great program. I use CodeFixer all the time. Sometimes when I make a few changes, then run CF again, I find out that I no longer need a couple of variables or an API call, etc. So I use it frequently to help keep my code clean.
Thank you Roger!!!!!
(If this comment was disrespectful, please report it.)

 
4/30/2004 3:19:00 AM

Great job... of greatest usefullness! Five globe from me.

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

 
5/2/2004 2:21:16 PMGeorge Inacio

Congratulations!
You deserve it!

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

 
5/2/2004 11:41:55 PMAlpha Binary

very nice piece of code.
the user interface...well..is horrible.
just dropping by to say congratulation :P
(If this comment was disrespectful, please report it.)

 
5/3/2004 9:12:06 AMReadError

I see that you finally got contest winner with it :) congrats
(If this comment was disrespectful, please report it.)

 
5/3/2004 11:37:38 AMPeter.

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

 
5/8/2004 6:55:38 AMJohn

I cant add anything new to the remarks by the other members!

Superb and Congratulations Roger.
(If this comment was disrespectful, please report it.)

 
5/12/2004 8:48:56 AM

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

 
5/13/2004 5:50:33 AMPaul Caton

Excellent improvements... but I feel a hissy fit coming on. Each new release I hope you're going to allow me to stop you formating the code the way you seem to insistt. Each time I'm disapointed. I hate half indents, I can't disable proc comments being moved inside, etc, etc. Why won't it remember my settings or am I supposed to set it up each time. Don't get me wrong, CodeFixer is excellent, it's just that using it causes me more grief than not. Maybe the answers lurk in the help.. but I can't read them as the font is way too small. I agree with the comment about the fixer interface, it needs a complete redesign. Please take this in the manner that it's intended. I want to use CodeFixer, it just frustrates the hell out of me.
(If this comment was disrespectful, please report it.)

 
5/13/2004 6:32:13 AMPaul Caton

Lest I appear too negative, here's a suggestion that would keep you amused for months. Re the code formatting, make a two way tool that is backed by tree-style properties that consists of a window showing sample code... with just enough code to represent all of the formatting properties, ie change the properties the code changes to reflect them. Then get real clever and allow the user to edit the sample code to taste.. which you then interpret/parse back into the properties.
(If this comment was disrespectful, please report it.)

 
5/20/2004 2:14:26 AMRoger Gilchrist

hi everyone, to shrink the download time for bug fixes, I've seperated out the help file. just Quick Search for CODE FIXER HELP FILE. If you have a copy of help file already don't download unless you are interested in a specific change. (XP Style creator is main newish thing in 2.0.9)
(If this comment was disrespectful, please report it.)

 
5/20/2004 8:32:26 AMRandy Giese

Outstanding job Roger! Splitting out the Help file knocked the download size way down. One suggestion: you might want to mention the 'CODE FIXER HELP FILE' in your description. Some people may not read your comments and therefore may miss it.

Thank you for an outstanding program that I use regularly. RG
(If this comment was disrespectful, please report it.)

 
5/30/2004 2:43:25 PM


Hi,
This sounds like a wonderful tool and I've wanted to try it for a long time but didn't have MS Office.
I've finally gotten a copy of OfficeXP 2002 and installed it.

I have a second issue to ask about before I try your addin.
I installed VB Studio in 'E:\Program Files\Microsoft Visual Studio\' instead of the default location.

After reading your Help\Miscellaneous\INSTALLATION I have 3 questions.
1. Since it won't have the default location to compile to, where will I find the Compiled the Dll and what will be its' full name?

2. Which VB folder will I need to move it to? There are a LOT of them installed with Studio.

3. Since this won't be a standard installation, is there anything else that will need to be done other than what's listed in your help file?

I've tried to use other addins which only install to the default VB location but never gotten any of them to work.

Thx, John
P.S. I'm running Win2K Pro


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

 
5/30/2004 6:06:40 PM

Ok, I think I've answered one of the the questions.
The name is CodeFixer2.dll.

Can anyone tell me which VB folder to place it in?

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

 
5/31/2004 2:53:35 AMRoger Gilchrist

as he said CodeFixer2.dll. Put it anywhere it won't get deleted, I put in Vb's home folder, don't forget to copy the help file to the same folder.
(If this comment was disrespectful, please report it.)

 
5/31/2004 5:55:37 PM

I have a better answer now.

If you did not use the standard VB install path follow these steps:
1. Before compiling the DLL locate the Visiual Basic Root directory on your system.
Example: ""E:\Program Files\Microsoft Visual Studio\"
2. When you compile the DLL you will be asked where to save it.
Just point it to that directory.
3. Manually place the help file in that same directory.

This way you won't have to worry about the Registry pointing to the wrong file path

Personaly, I created a DIR just for CodeFixer2 inside the the common tools folder like this:
"E:\Program Files\Microsoft Visual Studio\Common\Tools\CODE_FIXER_2-1-3"

The VB IDE placed 4 files there. CodeFixer2.dll, CodeFixer2.exp, CodeFixer2.lib and FindDoc.vbd.

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

 
6/14/2004 11:57:09 PMEvan Toder

You definitley should sell this.
I am surprised you havent gotten more excellent votes than you have
(If this comment was disrespectful, please report it.)

 
6/16/2004 6:14:45 AMrlblanch

CodeFixer fails on: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=54411&lngWId=1
(If this comment was disrespectful, please report it.)

 
6/16/2004 6:44:44 AMDipankar_Basu

Thanks Roger, for sharing this excellent tool.
(If this comment was disrespectful, please report it.)

 
6/25/2004 3:02:53 AMRoger Gilchrist

Read the description for help file location.
(If this comment was disrespectful, please report it.)

 
7/2/2004 1:30:42 PM

Just tried the latest one (2.2.4). Working really well - superb job.
(If this comment was disrespectful, please report it.)

 
7/28/2004 7:18:11 AMPaul Caton

Better and better. Try it against the WISPA winsock submission on the contest board. Just one problem with an api declare. I may need a PC upgrade if I keep
running this against larger projects :) Oh, and could you save the indent setting it keeps going back to half-indent.
(If this comment was disrespectful, please report it.)

 
8/6/2004 6:35:22 AM

Great job Roger!
As always it exceeds all expectations for a free add-in! Now we need some formatting options and have the options panel come up the first time the program is run, so we can set our defaults. Thanks again and 5 globules from me! Tai Shan
(If this comment was disrespectful, please report it.)

 
8/15/2004 9:00:07 PMRoger Gilchrist

solved formatting really big arrays.
(If this comment was disrespectful, please report it.)

 
9/8/2004 7:19:10 AMrlblanch

http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=56053&lngWId=1
Cr ashes
after running the program on it.
(If this comment was disrespectful, please report it.)

 
10/14/2004 10:18:39 PM

Really great tool. I consider myself a good coder, but I had no way of knowing all the bugs regular code could contain... thanks for the help roger.

Small thing though, I've recently upgraded to XP Pro and installed Office 2003, now the Settings page for the code fixer tools are screwed up. Instead of looking like they are supposed to, for example, the One of the settings looks like ('\' means cell change) 'La\Mark\1\Off|Mark|Fix\1\Add a comm\1X100'. If anybody knows what's wrong and knows how to fix it, please email me at a[removethis]poliak[at]gmail[dot]com. Thanks
(If this comment was disrespectful, please report it.)

 
10/18/2004 4:18:45 PM

Wonderful !
It is all missing in VB6. I use always your Addin. Thanks

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

 
10/31/2004 12:59:04 AMRoger Gilchrist

hi all, fixed several recent bugs in v 2.5.6. As always let me know if you find any bugs, still working on the badly displaying settings page, has any one else suffered this one? Currnet theory is some sort of language incompatibility.
(If this comment was disrespectful, please report it.)

 
11/14/2004 10:28:21 PMRoger Gilchrist

badly displayed settings was problem with old ListView SP6 cleared it. So update soonest.
(If this comment was disrespectful, please report it.)

 
12/6/2004 7:30:37 PMShimirel

Roger is as always King Of The Code!
(If this comment was disrespectful, please report it.)

 
12/29/2004 2:02:00 PM

PSC seam to be "out of order" at the moment, if it's because of all this totally unintresting Ulli/Evan nonsense, I don't know, but no downloads seam to work. And I need this piece of brilliant code to clean up some old VB3 projects over the holidays.

Anyone willing to supply (including help file)? Are you "home" Roger?

I used ver. 1.7 something, last time I had a freak on my old projects, and it did a pretty good job, so this must be brilliant as you finaly was rewarded for it, congrats btw!
(If this comment was disrespectful, please report it.)

 
12/29/2004 4:32:09 PM

Ahh great it all works again!
(If this comment was disrespectful, please report it.)

 
1/18/2005 5:36:15 PMGeorge

Outstanding and extremely productive tool. Worth 10 globs, IOU you another 5. Q:How to remove Marks from previous run?
(If this comment was disrespectful, please report it.)

 
1/18/2005 6:35:50 PMRoger Gilchrist

Right-Click the find tool and select delete all
(If this comment was disrespectful, please report it.)

 
1/25/2005 2:47:12 PM

Wow this is awsome! 5Gs even though you alredy won! Outstanding work.
(If this comment was disrespectful, please report it.)

 
2/16/2005 4:09:45 AM

I just used this add-in for the first time. All my code is in SourceSafe, and read only in my working folder. This add-in however changed all my files to writable apparently because of the default setting for the Auto Read-Write property. This is not a good thing, and please change it. This add-in should not change anything automatically on first start without explicit permission of the user.
(If this comment was disrespectful, please report it.)

 
2/16/2005 7:45:56 PMRoger Gilchrist

Given the sole purpose of the program is to rewrite code and I think i have enough warnings about using copies of code, what can i say. Why would the working code be read only? Anyway will add a warning message for first time users.
(If this comment was disrespectful, please report it.)

 
2/19/2005 4:02:28 PMJames Miller

LMAO .... Roger, I've had your code for some time now and have never un-zipped it. Today I did. After putting one of my submissions through it, it was like a 7th Grader turning in a Thesis to a College!!! Thanks for the code and I'll definitely start implimenting structure from this nice add-on. Sorry the vote's so late but it's definitely due!
(If this comment was disrespectful, please report it.)

 
5/7/2005 11:04:55 PM

nice code, very usefull
(If this comment was disrespectful, please report it.)

 
12/11/2005 10:15:56 PMMustafa KATLANC

i'm like.. good work!
(If this comment was disrespectful, please report it.)

 
7/16/2006 11:26:31 AMnate

good work...
(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.