03. Basics of Graphics and Creating Graphics Window using graphics.h | CodeWar

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 18

  • @jean-camilgirard
    @jean-camilgirard 10 หลายเดือนก่อน

    THANKS I was strugling with Allegro 🎵🎶

  • @deepakkewat176
    @deepakkewat176 4 ปีที่แล้ว +1

    Awsome Bhai... 😎😎

    • @codewar
      @codewar  4 ปีที่แล้ว

      Thanks Bro..

  • @purple.requiem
    @purple.requiem 3 ปีที่แล้ว +1

    Why did I get an error message : =[Error] ld returned 1 exit status ? I already have graphics library setup yet I have the error.

    • @codewar
      @codewar  3 ปีที่แล้ว +1

      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

  • @nazmulhossain9389
    @nazmulhossain9389 ปีที่แล้ว

    How to fill the string in dev c++

  • @rifloanimations1182
    @rifloanimations1182 3 ปีที่แล้ว

    How do you put the graphic to full screen?

    • @codewar
      @codewar  3 ปีที่แล้ว +3

      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;
      }

  • @manishgoswami7476
    @manishgoswami7476 ปีที่แล้ว

    Thankyou so much!

  • @DHARANGANBit
    @DHARANGANBit 4 ปีที่แล้ว

    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."

    • @codewar
      @codewar  4 ปีที่แล้ว

      Check initgraph() function.. have you provided arguments correctly..?
      If yes then reinstall CodeBlocks, Setup graphics.h and try again..

    • @DHARANGANBit
      @DHARANGANBit 4 ปีที่แล้ว +1

      @@codewar Thank you for our response
      I will try.

  • @dauletalmas7591
    @dauletalmas7591 3 ปีที่แล้ว

    WHY I have a warning in my programm:
    ISO C++ forbids a string constant to 'char*'?

    • @codewar
      @codewar  3 ปีที่แล้ว +1

      In CodeBlocks, go to (Settings->Compiler..) and in Compiler Flags, make sure all are unchecked..

    • @dauletalmas7591
      @dauletalmas7591 3 ปีที่แล้ว

      @@codewar Thank you!

  • @jyotiKumari-vj1lu
    @jyotiKumari-vj1lu 4 ปีที่แล้ว

    Nice video

  • @luiz.lewiss
    @luiz.lewiss 2 ปีที่แล้ว

    How can I add videos/ gifs in my program?

    • @codewar
      @codewar  2 ปีที่แล้ว +1

      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..