Hello, @khalibloo ! Thank you for sharing the code, it works perfect.
However I’ve noticed that there are several #include which seems unnecessary in your code here , namely
#include "WindowsApplication.h"
#include "Windows/WindowsSystemIncludes.h"
#include <Windows.h>
#include <tchar.h>
My code can still run without them. Do you still remenber what are they used for? I’m just wondering it because the msdn post which you mentioned seems already expired. Also I found that it is better to put #include "HideWindowsPlatformTypes.h"
after #include <commdlg.h>
, as it is paired with #include "AllowWindowsPlatformTypes.h"
. Anyway, you have done a great job!