How can i solve those lnk2019 errors [duplicate]

  activex, atl, c++, lnk2019, wtl

I am working on the creation of an activex controller using ATL/WTL on Visual Studio 2022, but when i try to compile my solution its come with those line :

LNK2019 symbole externe non résolu __imp_GetOpenFileNameA référencé dans la fonction "public: int64 cdecl WTL::CFileDialogImpl::DoModal(struct HWND *)" ([email protected][email protected]@[email protected]@@[email protected]@QEAA_JPEAUHWND@@@Z)

LNK2019 symbole externe non résolu __imp_GetSaveFileNameA référencé dans la fonction "public: int64 cdecl WTL::CFileDialogImpl::DoModal(struct HWND *)" ([email protected][email protected]@[email protected]@@[email protected]@QEAA_JPEAUHWND@@@Z)

I think its probably atldlgs.h that make everything go wrong but i don’t know why and how can i fix it ?

Source: Windows Questions C++

LEAVE A COMMENT