Why not use IFileOpenDialog?
shalva97 opened this issue · 4 comments
Just a question. The docs of https://learn.microsoft.com/en-us/windows/win32/api/commdlg/nf-commdlg-getopenfilenamea say that they are superseded by IFileOpenDialog
, So why not use IFileOpenDialog
?
Correct me if I'm wrong, but isn't IFileOpenDialog
a C++ class?
I guess its C++ class. Im new to it and wanted to try Kotlin Native so I was wondering why you did not use IFileOpenDialog, because I had access to both of them from Kotlin.
Just to confirm its not possible to use C++ class in C, right?
I mean, we could workaround it somehow, but it's not like there's any reason to do this as C++ from C requires a layer of "C abstraction" due to different ABIs etc.
If Microsoft completely drops GetOpenFileNameA
and there's no other C-only alternative maybe I'll do it, but I don't see this happening any time soon.
thanks for the information. will close this ticket then 🚀