Important alert: (current site time 7/16/2013 3:29:34 AM EDT)
 

winzip icon

CgEye (Make CGI Scripts Easier THAN EVER!!!!!)

Email
Submitted on: 9/11/2000 10:07:48 PM
By: Eric Malamisura  
Level: Advanced
User Rating: By 22 Users
Compatibility: VB 5.0, VB 6.0
Views: 22917
author picture
(About the author)
 
     Lets you edit, look at, and much more with cgi scripts. Numbers the lines on the right, highlights the code and even as you type, uses ZER0 OCX's and much much more. Also shows you how to do a lot of stuff involving a text editor or script editor. Saves all your settings and uses intuitive non-ocx interfaces throughout. As well as using common dialog's with api, unlimited undo , complex string manipulation, and much more. (Updated October 16: Fixed a GUI bug and redid the color module yet again...Still some bugs in it that are really annoying..Also fixed a bug with the undo/redo staying enabled when you closed a mdiform..Thanks to drevil for pointing that out to me.)

 
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 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
9/11/2000 11:41:15 PM[]D[][]V[][]D

Hey man, I am gunna learn cgi/perl someday soon and this will probably help. But since I dont use it now, I have just tested the proggy the best I can and I think you deserve an excellent so......... I am giving you one. Hope you win. Need more people to submit more useful tools such as this. KEEP UP THE GREAT CODING MAN........

----------
[]D[][]V[][]D
(If this comment was disrespectful, please report it.)

 
9/11/2000 11:47:01 PMEric Malamisura

Thanks..I do realize the color code module is very poorly implemented but I hacked it a bit to much and now it messes up a bit because I gave up on getting it to work right cause it was pointless cause I found out it would take nearly 1 minute to color a cgi script on open thats 300 kb..Sorta sad vb is that slow...But anyways if you want the color stuf gone just do a find text and take out the two lines that look like this: Colorize ActiveForm.txtMain, &H8000&, &H800000, &H80&, True

the true might be false..These lines should only be in mdiMain =] and frmMain


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

 
9/12/2000 12:47:41 AMDrakken

You know i havent really seen anything like this before, and this is great. i give ya a 5. and i was wondering if maybe i could use this in my prog. wwll thanx
Drakken
(Drakken@zipmail.com)
(If this comment was disrespectful, please report it.)

 
9/12/2000 4:24:57 AM$mTp

Very usefull code, you deserve an excellent rating! It's cool to know that there a still a few innovative people around. Keep up the great coding!
(If this comment was disrespectful, please report it.)

 
9/12/2000 8:34:38 AMChris Ruesink

Yea this is a great program, let me know if you make a ver 2.00 ok thanks alot!
(If this comment was disrespectful, please report it.)

 
9/12/2000 10:01:19 AMFredrik Qvarfort

"Sorta sad vb is that slow."

Are you sure this is _only_ because VB is slow? How about putting some of the blame on the programmer? The sad thing with VB is that it's so easy to make slow code. But it's also possible to do good (fast) code! I looked over your colourize-code and I see that you can do *a lot* of optimizations. So do not blame VB just because your code is slow.
(If this comment was disrespectful, please report it.)

 
9/12/2000 11:42:54 AMVasilis Sagonas

go! go! go!
excellent from me :->
(If this comment was disrespectful, please report it.)

 
9/12/2000 11:59:02 AMEric Malamisura

Ummm I did put blame on me on the colourizing code. I sad "I do realize the color code module is very poorly implemented".
(If this comment was disrespectful, please report it.)

 
9/12/2000 5:59:45 PMMr Tofu

nice code, and maybe I'm picky, but... there's no such thing as an unlimited undo. It does end EVENTUALLY, either you reach the limit for the type, or your cpu runs out of memory (most likely the latter). Still, very nice code. got an excellent. the color module is a but buggy, but I think we all know that. ;)
(If this comment was disrespectful, please report it.)

 
9/12/2000 7:43:30 PMFredrik Qvarfort

"or your cpu runs out of memory"

But we usually use RAM too besides the CPU cache. Sorry I just had to comment. ;)

If you really think the RAM is a limiting factor you can save older undos on disk and just store the latest 100 undos or so in memory. This is fairly easy and you can work until the undos reach 2Gb.

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

 
9/21/2000 7:04:55 PMKillerSpaz

I think it is interesting that you did this, but do you realize that there are already mass-used programs that do this already? UltraEdit 32, and i heard CoolEdit does the same thing.. From the SS it seems like a utilization of your resources (and maybe too much in some cases, according to the other repsonses)!
(If this comment was disrespectful, please report it.)

 
9/22/2000 10:19:45 AMDigital Vampire

i gave this a 4 out of 5 rating simply because it's great to see actual usefull stuff being submitted as opposed to useless waiste of space graphical things that serve no point :)
(If this comment was disrespectful, please report it.)

 
9/25/2000 1:30:31 AMPaC

not to bust anybody's bubble.

http://www.solutionsoft.com/perl.htm
(If this comment was disrespectful, please report it.)

 
9/27/2000 8:52:01 PMEric Malamisura

PaC there is a great advantage over my client even though I have been to busy lately to even touch programming at all. ALL of my programs are free AND open source. Two HUGE advantages over any other program with same functionality. If you dont recall Open Source is letting linux catch up with big bad microsoft's poorly coded os.

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

 
10/2/2000 11:51:07 PMPaC

Oh Eric I wasn't trying to shoot you down man. I think you did a wonderful job. It was more ment to Dakken's comment. Plus I thought maybe someone would like to check it out. They did a nice job on the Perl Builder IMO.
anyways keep up the good work
(If this comment was disrespectful, please report it.)

 
10/4/2000 9:11:35 PMEric Malamisura

I wasnt trying to take defense PaC I was just trying to say free software usually has an advantage. They did an excellent job with there Perl Builder way beyond the depths I was going to go with mine. Now it seems I dont have much time on my hands with college and work and all so I don believe I can further any of my programs at all. Maybe a update or two here and there..I will upload the newer version of this program that I made that uses a byte array for the color coding that Fredrik gave to me...It speeds it up about 60% faster...
(If this comment was disrespectful, please report it.)

 
10/5/2000 10:48:54 AMTristan

been waiting for something like this for ages! i can't believe it was finally made and released on an open source page for free
(If this comment was disrespectful, please report it.)

 
10/5/2000 5:33:08 PMstrommy

sorry, complete novice trying to get into VB. When running this script, I get Class RichTextLib.RichTextBox of txtmain not loaded. why?
(If this comment was disrespectful, please report it.)

 
10/8/2000 11:47:46 AMParag Mehta

Great! I was looking for similar kind of kind. Now I can develop JAVA Editor for WIN32 using JDK1.2 Reflection . I will publish source as soon as I finish. Thanks again!
(If this comment was disrespectful, please report it.)

 
10/10/2000 1:22:36 AMiBme

good job man, good luck in college by the way
(If this comment was disrespectful, please report it.)

 
10/10/2000 9:19:24 PMEric Malamisura

Thanks all for the comments..Thanks iBme
(If this comment was disrespectful, please report it.)

 
10/16/2000 7:47:25 PMicanfindanybug!!!

i love it! but...

if you close all the MDI windows and click a toolbar button (such as undo) you get an error... you should disable the toolbar buttons (except for new/open) when there are no open document.
(If this comment was disrespectful, please report it.)

 
12/5/2000 6:11:14 AMdsf

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

 
2/22/2001 10:21:28 AMJean-Philippe Leconte

Your program is great, but I must agree with Qvarfort... A lot of thing could be optimized.

never put a function in a loop
i.e.
for i = 0 to len(string) is way slower than
temp = len(string)
for i = 0 to temp

use API when you can, they are fast :)

always use long instead of integers because windows in 32bit, it works faster with longs (32 bits) but I guess you knew that

do not use variants when you can use strings (I've seen this in your code)

instead of using lcase 6 times in a row on the same string, make a temp string...

and finally... VB file functions are faster than APIs... I guess it's because of string conversions before calling apis...

or you could use a c++ DLL... but that would not prove that VB can be fast... so... :)

last reason for being told vb is slow, programmer that use VB are usually young and have learned less "maths and logic" than older programmers, thus, making their code slow.

Have fun... I hope I helped
(If this comment was disrespectful, please report it.)

 
2/22/2001 7:06:07 PMThe VeNd

I think the code rocks!
You Da' Man!

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

 
2/26/2005 3:16:10 PMmwarner

Hey man, I would realy like to know how you made the line counter, on the left of the RTF box, and I would also like to get it to work with a Textbox.
(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.