View Full Version: iDExtreme

C++ Learning Community > C++ Works in Progress > iDExtreme


Title: iDExtreme
Description: My own BCC IDE


TheHawgMaster - October 20, 2003 03:26 AM (GMT)
I am currently writing an IDE for the Borland Command-Line compiler for the competition. It is getting along decently but I would appreciate a little advice on compiling, maybe an example batch file for a decent sized project? It's going to be awesome :D

Dragon - October 20, 2003 04:54 AM (GMT)
:lol: Your making an IDE, too? Yours is probably going to be better than mine because I didn't spend as much time as I wanted to on it. I'll help you out a bit. For a program with no resource, this would work:

CODE
@echo off
path "C:\Borland\BCC55\Bin\"%PATH%
del "btool.exe"
del "log.txt"
echo Compiling C:\Borland\BCC55\Projects\Binary Tool\btool.cpp...
"C:\Borland\BCC55\Bin\bcc32.exe" -c -tWC "C:\Borland\BCC55\Projects\Binary Tool\btool.cpp">>"log.txt"
"C:\Borland\BCC55\Bin\ilink32.exe" -c -Gn -x -ap c0x32.obj "C:\Borland\BCC55\Projects\Binary Tool\btool.obj","btool.exe",,import32.lib cw32.lib,,>>"log.txt"
cls
del "C:\Borland\BCC55\Projects\Binary Tool\btool.obj"
del "btool.tds"


btool is the name of the source and exe, and log.txt is the file created where compilation details go in. Here's some code if you want to use resources:

CODE
@echo off
path "C:\Borland\BCC55\Bin\"%PATH%
del "dragontext.exe"
del "dragontext.txt"
echo Compiling C:\Borland\BCC55\Projects\Dragon Text Editor\dragontext.cpp...
"C:\Borland\BCC55\Bin\bcc32.exe" -c -tW "C:\Borland\BCC55\Projects\Dragon Text Editor\dragontext.cpp">>"dragontext.txt"
"C:\Borland\BCC55\Bin\brcc32.exe" -32 "C:\Borland\BCC55\Projects\Dragon Text Editor\resource.rc">>"dragontext.txt"
"C:\Borland\BCC55\Bin\ilink32.exe" -c -Gn -x -aa c0w32.obj "C:\Borland\BCC55\Projects\Dragon Text Editor\dragontext.obj","dragontext.exe",,import32.lib cw32.lib,, "C:\Borland\BCC55\Projects\Dragon Text Editor\resource.res">>"dragontext.txt"
cls
del "C:\Borland\BCC55\Projects\Dragon Text Editor\dragontext.obj"
del "C:\Borland\BCC55\Projects\Dragon Text Editor\resource.res"
del "dragontext.tds"


This is for my Dragon Text Editor.

Hope that helps!

Edit

QUOTE
I am currently writing an IDE for the Borland Command-Line compiler for the competition.


Didn't see that at first. Not fair! I wasn't planning on entering my IDE, but maybe I will now.

TheHawgMaster - October 20, 2003 12:57 PM (GMT)
Thanks

MonkeyMan - October 20, 2003 07:38 PM (GMT)
Hehehe... i also am planning on starting a ide for it... but first i got to finish my current project thats for the compitiion... my ide would take far more then from now and 10 days left :P

TheHawgMaster - October 20, 2003 09:50 PM (GMT)
10 days... I don't think he gave us long enough to make anything really good. Oh well, I have it working to some extent (no compiling yet but a GUI for editing the project files) and I've only been working on it for about 8 hours total.

Dragon - October 20, 2003 10:55 PM (GMT)
If there's enough whining then maybe the deadline will be extended a bit. :lol:

Also, TheHawgMaster, I assume you are using batch files to compile? Can you tell me how you are making the feature for saving to a batch file? My current code for it works fine, but I'm sure it's not the best way.

EDIT

QUOTE
10 days... I don't think he gave us long enough to make anything really good. Oh well, I have it working to some extent (no compiling yet but a GUI for editing the project files) and I've only been working on it for about 8 hours total.


As for my status on my IDE, I'm done with the editor (it's based off of my Dragon Text Editor, so just copy and paste there). I am now working on the compile options part and the actual compilation. As for now I'm just going to have the program create a batch file containing the compile information and then have the program execute it.

TheHawgMaster - October 21, 2003 01:59 AM (GMT)
For the most part my progress is quite different from yours because I am writing it with the MFC framework. I havn't yet made the compiling and editing features (they shouldn't be challenging). btw tI wouldn't use my code as a model for efficiency because I am just trying to write it as quickly as possible with no regard as to efficiency or style so my batch creating system could well end up being worse than yours. ( I will prbably have a batch export and direct compil features)

QUOTE
To someone special,
I am truly sorry for what I did in the past.
I had no idea how much grief I would cause myself.
I wish that I can go back in time,
and correct what I did wrong.
But I know that's not possible,
and I can only continue with life.
I just want you to know
How sorry I truly am.
Greeting cards rule the world!!! :D

Dragon - October 21, 2003 02:08 AM (GMT)
QUOTE
For the most part my progress is quite different from yours because I am writing it with the MFC framework. I havn't yet made the compiling and editing features (they shouldn't be challenging). btw tI wouldn't use my code as a model for efficiency because I am just trying to write it as quickly as possible with no regard as to efficiency or style so my batch creating system could well end up being worse than yours. ( I will prbably have a batch export and direct compil features)


That's okay. I'm going to go with the easiest way I know (I don't want to spend a lot of time on writing to the batch file): C++ file I/O (with ifstream and ofstream). It may not be the best way but it's sure easy. :)

dr voodoo - October 21, 2003 01:20 PM (GMT)
If everyone is working on an IDE than I'll also :P . Anyway I have already worked about 3 hours on it and have 300 lines of code and a first GUI. I'm using the API.

Dragon - October 21, 2003 08:28 PM (GMT)
QUOTE
If everyone is working on an IDE than I'll also  . Anyway I have already worked about 3 hours on it and have 300 lines of code and a first GUI. I'm using the API.


Lol. :lol:

Maybe we should have a competition for the best IDE for the Borland C++ Compiler. :lol:

dr voodoo - October 22, 2003 03:05 PM (GMT)
QUOTE
Maybe we should have a competition for the best IDE for the Borland C++ Compiler.

Na, I'm not going to make it open source :P

Dragon - October 22, 2003 11:57 PM (GMT)
That's fine. :)

Are you planning on entering something for the competition? It wouldn't be a lot of fun if only two or three people entered.

dr voodoo - October 23, 2003 11:05 AM (GMT)
QUOTE
Are you planning on entering something for the competition? It wouldn't be a lot of fun if only two or three people entered.

Yeah, I'm going to enter a string class. I'll try to make the functions similar to the ones GM has.

TheHawgMaster - October 23, 2003 06:51 PM (GMT)
There are already a million good string classes all over the place... Maybe it would be better to make something original.

dr voodoo - October 23, 2003 07:14 PM (GMT)
QUOTE
There are already a million good string classes all over the place... Maybe it would be better to make something original.

Really? I looked on google and all I found was a shareware one and lots of tuts and docs about std::string.

Beside this cometion is not about originalyity but usefulness and a string class is in my eyes more useful than a notepad with a compile button (of which at least 20 freeware ones exist). :P

TheHawgMaster - October 23, 2003 10:08 PM (GMT)
I realize that many IDEs have been made but at least there isn't one in the SCL.

that person - October 30, 2003 02:38 AM (GMT)
What exactly is an IDE, and how would you make one?

Dragon - October 30, 2003 02:59 AM (GMT)
IDE - Integrated Development Environment

An IDE is a visual editor for source code. I don't understand what you mean by "how would you make one." You program it.

that person - October 30, 2003 04:05 AM (GMT)
What I meant was is there any special library such as openGL or something, but I guess not

Dragon - October 30, 2003 04:07 AM (GMT)
What are you talking about? There's no library for an IDE.

that person - October 30, 2003 09:11 PM (GMT)
Now I know that :)




* Hosted for free by InvisionFree