'How can i use double buffering with graphics.h

So i have never worked with double buffering before but i know that the basic idea is to draw an invisible layer for the next frame and leaving the old frame on until the new one is done and then replacing them. But how can i accomplish this? Im rather new to the whole graphics thing and my teacher said that i need to use graphics.h for now. So im kinda stuck on it. I dont think my code matters in this case so i wont post it. Really all im trying to accomplish is a flickerless refresh ;D Please give me a step by step explanation ;D All the explanation on google were very vague only describing how it works rather than how to do it with the given commands. Im using win10 and visual studio 2015 community.

EDIT: Im using the package from http://winbgim.codecutter.org/ .

Thanks in advance!



Solution 1:[1]

Yes you can. Simply use setactivepage() and setvisualpage().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ???