Does it work if the next line is added to any .cpp file?
#pragma comment(lib, "OleAut32")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I create a C++/WinRT Windows Console Application project and try to implement the IDispatch interface.
This is the class.h
And following is class.cpp. In the method GetIDsOfNames, I am trying to use the method DispGetIDsOfNames from oleauto.h header.
However, it gets the complier error that *Error LNK2019 unresolved external symbol __imp_DispGetIDsOfNames referenced in function "public: virtual long __cdecl int __cdecl main(void)'::
2'::MyCoclass::GetIDsOfNames(struct _GUID const &,wchar_t * *,unsigned int,unsigned long,long )" (?GetIDsOfNames@MyCoclass@?1??main@@YAHXZ@UEAAJAEBU_GUID@@PEAPEA_WIKPEAJ@Z)
Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Thank you and kind regards,
Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Thank you and kind regards,
Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Could you help me with fixing this compiler error? how to implement the GetIDsOfNames method?Thank you and kind regards,
Dung Huynh.
Does it work if the next line is added to any .cpp file?
#pragma comment(lib, "OleAut32")