get file full name and path

I have written some C++ but I am a newbie. I have a C program for which I need an input filename,type,path. I want to get it using a GUI wrapper for the C file. I need to get it from Linux WIN and MAC (should have used JAVA or QT but want it to be free $). I just need to be pointed in the right direction. Thank you. Alvin...
I thought QT is free?! And, I think it has a file open dialog somewhere, but I can't recall fully.

Both Java and Qt can be free as in money ($).

As far as "free as in freedom", I am not as sure. Java has parts of its libraries still not open source, and I'm not sure of the specifics in licensing.

Qt provides both proprietary and open licenses.
The "open" version is licensed under GPL & LGPLv3 licenses. Certain parts are GPL, and in order to distribute them, you must provide source code, but for the LGPLv3 parts, it is sufficient to dynamically link the Qt libraries.
https://www.quora.com/Can-I-use-the-free-QT-for-c++-commercially
https://www1.qt.io/qt-licensing-terms/

That being said... I am not too familiar with the specifics for how to open up a file menu cross-platform.

For Qt, a google search gives https://doc-snapshots.qt.io/qt5-dev/qfiledialog.html

For Windows (or I guess it can be cross-platform with Mono? No idea), .NET has classes like OpenFileDialog https://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog(v=vs.110).aspx
Windows C/C++: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646829(v=vs.85).aspx#open_file
Last edited on
Registered users can post here. Sign in or register to post.