Title: Batch maker
Description: A little tool for free BC++ 5
dr voodoo - August 25, 2003 05:56 PM (GMT)
Version 0.2 is finished.
It's on my site (link in sig)
It's a little tool to setup batch files to compile files with the free Borland C++ 5 commandline compiler (I hate that long name but the compiler's great)
Actually with this little tool you don't even need to know how to use commandlines. Simply enter the name of your file, click on create and execute the batch file by double clicking.
It also containes a little function to check for (and most times also correct) errors in the installation of the compiler (Dragon you can use it to set the enviroment varibals)
If you try it and use the little function to check your installation could you please post which Win version you have so I know that it works on that system. (I have only tested it on XP)
Also what do you think of it?
Dragon - August 25, 2003 06:55 PM (GMT)
That's a nice little tool. I haven't tried it yet, but I will soon. The only reason why I'm not using the Borland compiler is because I can't link resources. I tried the #pragma thing but it doesn't work for me for some reason. I was thinking of download VIDE, and I will check out your bat maker soon.
dr voodoo - August 25, 2003 07:06 PM (GMT)
Resource files are very simple: Check "resource" and enter the name of your *.rc file (without extension) and your done. No #pargma, no special linking. You can add a resource header but all you need to do for this is #include it into *.cpp and *.rc just like in Dev-C++.
Dragon - August 25, 2003 09:20 PM (GMT)
Ok, I downloaded the Borland C++ Compiler again. Now I'll have to see if resources work. Wish me luck! :D
Dragon - August 25, 2003 09:42 PM (GMT)
Dr. Voodoo, it works! I tested it by compiling my Dragon Text Editor and it works! I have just one little favor to ask of you. Can you make a version especially for me because my environment variables are not working so that instead of just "bcc32" it's "C:\Borland\BCC55\Bin\bcc32"? Would that work? This way I don't have to move everything to the Bin directory to compile it.
Thank you so much!
Dragon - August 26, 2003 04:56 AM (GMT)
Never mind about making that version. It doesn't work anyways. Can you tell me how to use the environment variables, like how to set them?
dr voodoo - August 26, 2003 09:28 AM (GMT)
In the prog there is a button called "Check install". Click it and it will check (and correct when possible) the installation of BC++. (This means also set the enviroment varibals).
Dragon - August 26, 2003 05:37 PM (GMT)
When I do that I get the following error message:
Unable to check the environment varibals!
Does that mean it's fixed, or what?
dr voodoo - August 26, 2003 06:29 PM (GMT)
Strange, it works on my computer. Anyway if it can't check it wont do anything.
Try this:
Make a bat file and write this in it:
| CODE |
@echo off set A=b echo %A% set A=a%A% echo %A% set A= pause |
Execute it and it should show:
| QUOTE |
b ab Press any key to continue |
If it does make a new bat file and write this in it:
| CODE |
| set PATH=C:\Borland\BCC55\Bin;%PATH% |
Execute it and the enviroment varibal should work.
Now if the first bat does not show that then post what it shows.
What system are you running?
Dragon - August 26, 2003 06:58 PM (GMT)
The batch files work. This is the output of the second one:
| QUOTE |
C:\WINDOWS\Desktop>set PATH=C:\Borland\BCC55\Bin;C:\WINDOWS\COMMAND\
C:\WINDOWS\Desktop> |
I'm using Windows ME.
Dragon - August 26, 2003 07:13 PM (GMT)
Also, can you make it so that the .bat file exits when it's finished?
dr voodoo - August 26, 2003 07:26 PM (GMT)
Now the enviroment varibals should work. Remeber keep the bat file in the same folder as *.cpp and *.rc.
But that error message you got when testing is puzzeling me because it works on my comp and I don't really do anything but that what my bat file above does :blink: .
| QUOTE |
| Also, can you make it so that the .bat file exits when it's finished? |
What do you mean? It creates a bat file in it's current directory
Dragon - August 26, 2003 10:01 PM (GMT)
What should the folder name be? Can it be C:\Borland\BCC55\Projects?
| QUOTE |
| What do you mean? It creates a bat file in it's current directory |
What I mean is to have the .bat file (Compile.bat) exit after it's done compiling. Can this be done?
dr voodoo - August 26, 2003 10:23 PM (GMT)
| QUOTE |
| What should the folder name be? Can it be C:\Borland\BCC55\Projects? |
I really don't get your question. It's simple:
a)Create any folder
b)Create a file in that folder and name it something like Main.cpp
c)move batmaker.exe into that folder
d)execute batmaker.exe from that folder
e)enter your setting and the name of your *.cpp file without extension.(in my case Main)
f)Click on create
g)a compile.bat has been created in that folder
h)execute compile.bat from that folder
i)that's it
If you still don't get it I have a tut on my new site which mainly says what I mentioned above (only in whole sentences). It's called "Hello".
| QUOTE |
| What I mean is to have the .bat file (Compile.bat) exit after it's done compiling. Can this be done? |
When I double click on compile.bat (you are executing it from Win Explorer not from a dos console right?) a console pops up saying:
| QUOTE |
***Batmaker for BC++*** ***By Dr Voodoo*** |
And when it's finished compiling the console window closes again and a *.log and *.exe have been created.
PS:Do you like my new site? (Link in sig)
Dragon - August 27, 2003 12:17 AM (GMT)
Well, thanks for your help, but my environment variables aren't working. Either that or there's some other reason why I to move everything to the Bin directory to compile it.
So you're saying the console window (Compile.bat) closes by itself? It doesn't for me. It just says 'Finished - Compile' in the caption (very top).
Yeah, I checked out your site. My comment is to add more stuff to it!
dr voodoo - August 27, 2003 07:48 AM (GMT)
With the enviroment varibals, did you restart your computer? You need to do that or else they won't get loaded.
| QUOTE |
| So you're saying the console window (Compile.bat) closes by itself? It doesn't for me. It just says 'Finished - Compile' in the caption (very top). |
Then that's some special thing about Me.
Does it close on your computer if you add the command "exit" to the very bottom of a batch. If so I can add it because it wouldn't change anything on my comp.
Dragon - August 27, 2003 11:54 PM (GMT)
| QUOTE |
| With the enviroment varibals, did you restart your computer? You need to do that or else they won't get loaded. |
Yeah, I did that. I even went to the Windows configuration thing and set PATH to C:\Borland\BCC55 and that didn't work, so I tried C:\Borland\BCC55\Bin, which didn't work either.
However, to make up for this problem I'm making a little tool that will allow me to compile without having to manually move the files and stuff.
dr voodoo - August 28, 2003 09:12 AM (GMT)
ME is a strange system :blink: . Oh well I'll see if I can get a version done which doesn't need the eviroment varibals.
Oh and try adding as last command to a *.bat "exit" does the console then close when you exit the console?
EDIT: I have finished version 0.2. I hope it works now witout enviroment varibals.