I want to use the GetOpenFileName function in D (with DFL btw), the problem is, the linker doesn't find it cause it searches for _GetOpenFileName but comdlg32.dll seems to export it as GetOpenFileName. pragma(lib,"comdlg32.lib"); export extern(C) BOOL GetOpenFileName(OPENFILENAME* lpofn);