|
■No7832 (komaru さん) に返信 > 21.obj : error LNK2001: unresolved external symbol "public: int __cdecl CWnd::CreateControl(struct _GUID const &,unsigned short const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,class CFile *,int,unsigned short *)" (?CreateCo > ntrol@CWnd@@QAAHABU_GUID@@PBGKABUtagRECT@@PAV1@IPAVCFile@@HPAG@Z) > > を表示され、ビルドできません。 > 申し訳ないですが、教えてくださいませんか? > よろしくお願いします。 > > eVC++4.0
class CFHTScan : public CWnd { protected: DECLARE_DYNCREATE(CFHTScan) public: CLSID const& GetClsid() { static CLSID const clsid = { 0x38eedeab, 0xa10f, 0x4fde, { 0x90, 0x2, 0xbf, 0xf5, 0x82, 0x49, 0x44, 0x3a } }; return clsid; } virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage, bstrLicKey); }
|