-
Help!
I was wondering if there's some kind of plugin program for Dev-C++ that counts how many times you've actually compiled your project. I mean like other programs say: Build 1045 or something like that, and I refuse to believe that it's manual counting.
Thanks :)
-
nope sorry.....not unless one of the developers decide to put that in, or something.
-
In the menu: Tools->Compiler Options there's an option: Add The Following Commands When Calling Compiler, and a text box under it. I think it's got something to do with that. I mean you have to like find out the path of the program and maybe use the I/O to open the file (application path + Build.txt) and find the 1st value and add 1 to it. Can that be done?
Thanks :)
-
I am 99.9% sure that is for linking (like for Direct X). Know where you put stuff like: -fvtables -trunk and stuff like that.
-
-
And the other 00.1% I don't think so, but you got a better chance askin' at their boards.
-
Ok, I'll try. Another problem: how do you get your application path?
Thanks :)
-
The path will be the directory that the application is located, like this. If Dev-C++ was located in C:\Dev-C++, then the directory would be C:\Dev-C++\DevCpp.exe *is that what you wanted to know*
-
Err... Not exactly. I need to find out the path where the program is situated.
-
The program that you are making? Or what.........
-
Yes. I'll give you an example of the same thing in another language. Let's take Visual Basic, it's App.Path
-
Where's VBProgrammer when you need him...sorry, I can't help you anymore (dunno VB).
-
Hold on... Dont take care of vb. Let's say i just want to set: char filepath[250] to the path of the program itself...
-
Ok, Prelude....*cricket noises*...well, you can just set it mandatory like like this:
char filepath[250];
cout << "Where will the file be held?\n";
cout << "Include drive";
cin >> filepath;
and that is assuming ur using console and if you feel like doing it that way. Don't exactly know if that'll work.....or a system command might work, dunno if it will though
-
I dont want the user to input the path of the application, I want the program itself find out where it is located.