Some time ago I was trying move my winapi framework code to external static lib (you could call it flib) so I could use it as an api which i could run from simple c environment like
void init_firs_framework();
void draw_frame_here();
void draw_frame_here()
{
//....
}
void main()
{
init_firs_framework();
}
but there appear some trouble. I am using winapi to setup my window
and want to use my flib as an only api avaliable to my main program -
the trouble is that compiling 'console' program such as my main program
here makes an ugle blue console to appear, I do not need such sh*t here,
I also do not want to use WinMain instead of main() in my main program
I just need to write c main program which will rely on my own flib api
not involving both c console on WinMain() environment - I was searching
abit but not found how to compile windows program which will not
involve making console or winapi but come kind of raw compilation for
my own lib.