エラーLNK2019:未解決の外部シンボル '__declspec(dllimport)const CReadUserInfo :: `vftable' '(__



Error Lnk2019 Unresolved External Symbol__declspec Const Creaduserinfo



画像
VS2010を使用してDLLプロジェクトを作成すると、次のエラーが発生します。
ライブラリE: Product1 DlagDll Debug DlagDll.libとオブジェクトE: Product1 DlagDll Debug DlagDll.expを作成しています
1> ReadUserInfo.obj:エラーLNK2019:未解決の外部シンボル「_declspec(dllimport)const CReadUserInfo :: `vftable ''(__ improot @ xxxxx @ root @ xxxxx)関数「public:__ thiscall CReadUserInfo :: CReadUserInfo(void)」(root @ xxxxx @ root @ xxxxx)で参照されています
1> E: Product1 DlagDll Debug DlagDll.dll:致命的なエラーLNK1120:1つの未解決の外部

VS2010プロジェクトのプロジェクト->設定-> C / C ++->プリプロセッサ定義にマクロ定義を追加します