Ports
May 22, 2013, 05:55:00 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Linker Error Using VStudio 2010  (Read 3395 times)
jglawrence
Member
***
Posts: 13


« on: June 01, 2011, 11:56:52 am »

Hello,

I was able to convert your example code for HID drivers to work with Visual Studio 2010.  I am stuck on an error preventing my compilation of the code though.

1>usbhidiocDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CWnd::KillTimer(unsigned int)" (?KillTimer@CWnd@@QAEHI@Z) referenced in function "protected: void __thiscall CUsbhidiocDlg::OnContinuous(void)" (?OnContinuous@CUsbhidiocDlg@@IAEXXZ)

Do you have any idea what I could do to fix this?  It has me puzzled.

Thanks!
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #1 on: June 01, 2011, 12:44:36 pm »

It looks like you're using the VC++ 6 application?

This might help explain the problem:

http://www.codeguru.com/forum/printthread.php?t=349250

http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/15005ff3-b3ca-4869-9622-dc2dd8e62da8

Jan
Logged
jglawrence
Member
***
Posts: 13


« Reply #2 on: June 01, 2011, 02:06:13 pm »

I'm actually using Visual Studio C++ Express 2010.  I have also downloaded the WDK.  After commenting out the line of code calling the "KillTimer" function the program compiles.
Unfortunately when I run the program, I have the following error:
"The ordinal 5077 could not be located in the dynamic link library MFC42D.DLL."

Any ideas on this new error?

PS - I downloaded MFC42D.DLL and put it in the C:\WINDOWS\system32
« Last Edit: June 02, 2011, 02:12:33 pm by jglawrence » Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #3 on: June 01, 2011, 08:52:19 pm »

A search on the error message will bring up some suggestions. I have to admit that I haven't tried to compile that application in some time so have no specific suggestions.

Jan
Logged
jglawrence
Member
***
Posts: 13


« Reply #4 on: June 02, 2011, 02:12:03 pm »

I ran the .exe file from the Release folder and it works fine now!  Now I just have to write my own application.

Thanks for your help and the book!
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #5 on: June 03, 2011, 08:30:08 am »

I'm glad you got it working. Good luck with your application.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!