Im trying to program a open file dialog in C. I dont want to use any gui projects.
It seems there's XORG and wayland so I'm guessing I need to implement open file dialog for both of those.
So far my program looks like this
#ifdef _WIN32
OPENFILENAME ofd;
memset(&ofd,0,sizeof(ofd));
ofd.lStructSize = sizeof(ofd);
ofd.lpstrFile = filename;
ofd.nMaxFile = MAX_PATH;
ofd.Flags = OFN_FILEMUSTEXIST;
#endif
#ifdef __linux__
#endif