Hey, how do i create a loading bar in Dev C Bloodshed.
I am using windows 7 and my compiler is Bloodshed Dev C++
I need to create this for my program
Hey, how do i create a loading bar in Dev C Bloodshed.
I am using windows 7 and my compiler is Bloodshed Dev C++
I need to create this for my program
If your needs are simple and a text based program, you can print a line with the line-feed character to simulate this. Here is an example
Each time you print \r the cursor goes to the beginning of the line and overwrites what was there before. So the result gradually completes to show the entire line of dotsCode:#define DOTS_10 ".........." #define SPAC_10 " " int main(void) { for (int i=1; i <= 10; i++) { do_something(); printf("%1.*s", i, DOTS_10); printf("%1.*s\r", 10-i, SPAC_10); } printf("\nDone!\n"); return EXIT_SUCCESS; }
A more sophisticated approach is to use a GUI library which has classes and methods for drawing graphical progress bars to the screen. There are also text-based libraries which have these as well. Ncurses + CDK is one example for text mode.
How would i create the graphical progress bars
To create graphical progress bars, use a GUI library. Examples are Qt, GTK and on Windows you can use the WINAPI if you want. Try searching for winapi progress bar example for examples
> I am using windows 7 and my compiler is Bloodshed Dev C++
The last supported OS for bloodshed dev-c++ was windows 2000.
Perhaps you should upgrade.
Visual Studio Express 2012 Products | Microsoft Visual Studio
smorgasbordet - Pelles C
Code::Blocks
Orwell Dev-C++ | Free Development software downloads at SourceForge.net
Oh, and moved to the windows board.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Project Progress Bar in Codeblocks - XP Visual Style:
Win API - Capítulo 50 Barra de progreso
Regards