Linking comdlg32.lib(SOLVED)

I want to use some Win32 function, such as GetOpenFileNameW, But when I build win32, It shows error:


Then I add comdlg32.lib to ext.manifest, but I shows another error:
image
Can I use Win32 api through defold?

Why not use commdlg.h?

Do you mean including commdlg.h in my code?

Yes, including it.

By the way this may be useful https://www.defold.com/community/projects/76586/

We use MSVC 2015 and WinSDK 8.1 and 10.
Note that we’re building on linux, so the casing of the filename must be correct. (Msdn doesn’t always display the correct casing)

OK. And how about the casing of .h or .lib? All in lowercase?

The files are named “ComDlg32.lib” and “commdlg.h”

1 Like