Linking comdlg32.lib(SOLVED)

#1

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?

0 Likes

#2

Why not use commdlg.h?

0 Likes

#3

Do you mean including commdlg.h in my code?

0 Likes

#4

Yes, including it.

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

0 Likes

#5

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)

0 Likes

#6

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

0 Likes

#7

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

1 Like