Bonjour,
J'ai écrit une ligne de programme pour implémenter WIA dans un programme Visual C++ 2005 express mais dés la premiere ligne de code j'ai une erreur de link, avez-vous une idée car cela fait 3 jours que je cherche sur le net sans solution ?
Merci de l'aide apportée aux novices dont je fais partie![]()
Détail du code qui génère l'erreur :
void CWiaVideo::CreationInstance(IWiaDevMgr **ppWiaDevMgr )
{
HRESULT hr = CoInitialize(NULL);
}
ERREUR DE LINKAGE extraite de VIsual C++ express
Édition des liens en cours...
WiaVideo.obj : error LNK2028: jeton non résolu (0A00000E) "extern "C" long __stdcall CoInitialize(void *)" (?CoInitialize@@$$J14YGJPAX@Z) référencé dans la fonction "public: static void __cdecl CWiaVideo::CreationInstance(struct IWiaDevMgr * *)" (?CreationInstance@CWiaVideo@@$$FSAXPAPAUIWiaDevMgr@@@Z)
WiaVideo.obj : error LNK2019: symbole externe non résolu "extern "C" long __stdcall CoInitialize(void *)" (?CoInitialize@@$$J14YGJPAX@Z) référencé dans la fonction "public: static void __cdecl CWiaVideo::CreationInstance(struct IWiaDevMgr * *)" (?CreationInstance@CWiaVideo@@$$FSAXPAPAUIWiaDevMgr@@@Z)
Partager