Hi Jojo, Well there can be many reasons of it. But I think you have some issue in your program and due to which, the Compiler is not being able to build the executable file.. By the way, if you mail me the Screenshot of your "Program" and your "Build Logs", then maybe I will be able to figure out exactly what is happening.. mail me at rp181135198@gmail.com
Use initwindow() function #include #include int main() { int width=GetSystemMetrics(SM_CXSCREEN); int height=GetSystemMetrics(SM_CYSCREEN); initwindow(width+6, height+6, "", -3, -3); getch(); return 0; }
I got no errors but the output is not come. It opens one dialog box which shows that "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
Unfortunately you can't use videos in "graphics.h".. You can only show a bitmap (.bmp) and (.jpg) files using the getimage() and putimage() functions in "graphics.h".. If you want to show a video, then you will have to use any more advanced graphics library like OpenGL, Vulkan etc..
THANKS I was strugling with Allegro 🎵🎶
Awsome Bhai... 😎😎
Thanks Bro..
Why did I get an error message : =[Error] ld returned 1 exit status ? I already have graphics library setup yet I have the error.
Hi Jojo,
Well there can be many reasons of it. But I think you have some issue in your program and due to which, the Compiler is not being able to build the executable file.. By the way, if you mail me the Screenshot of your "Program" and your "Build Logs", then maybe I will be able to figure out exactly what is happening..
mail me at rp181135198@gmail.com
How to fill the string in dev c++
How do you put the graphic to full screen?
Use initwindow() function
#include
#include
int main()
{
int width=GetSystemMetrics(SM_CXSCREEN);
int height=GetSystemMetrics(SM_CYSCREEN);
initwindow(width+6, height+6, "", -3, -3);
getch();
return 0;
}
Thankyou so much!
I got no errors but the output is not come. It opens one dialog box which shows that "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
Check initgraph() function.. have you provided arguments correctly..?
If yes then reinstall CodeBlocks, Setup graphics.h and try again..
@@codewar Thank you for our response
I will try.
WHY I have a warning in my programm:
ISO C++ forbids a string constant to 'char*'?
In CodeBlocks, go to (Settings->Compiler..) and in Compiler Flags, make sure all are unchecked..
@@codewar Thank you!
Nice video
How can I add videos/ gifs in my program?
Unfortunately you can't use videos in "graphics.h".. You can only show a bitmap (.bmp) and (.jpg) files using the getimage() and putimage() functions in "graphics.h"..
If you want to show a video, then you will have to use any more advanced graphics library like OpenGL, Vulkan etc..