Click here to Skip to main content
15,887,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLinker problem with WinDDK Pin
sashoalm12-Oct-09 20:05
sashoalm12-Oct-09 20:05 
AnswerRe: Linker problem with WinDDK Pin
thready6-Feb-10 7:58
thready6-Feb-10 7:58 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:05
sashoalm6-Feb-10 8:05 
GeneralRe: Linker problem with WinDDK Pin
thready6-Feb-10 8:11
thready6-Feb-10 8:11 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:16
sashoalm6-Feb-10 8:16 
GeneralRe: Linker problem with WinDDK Pin
thready6-Feb-10 8:28
thready6-Feb-10 8:28 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:41
sashoalm6-Feb-10 8:41 
GeneralRe: Linker problem with WinDDK Pin
thready6-Feb-10 8:53
thready6-Feb-10 8:53 
Well not a driver, but a USB HID device - so sort of a driver? I've got this credit card reader that is a USBHID device - so you need to use the WinDDK. Here's my story - I actually got this working in VC++ 6.0 about 3 years ago and now I can't figure out how to setup my project anymore. But that's just what I did - I created a COM object and linked to the DDK (from VC++ 6.0). Now I've upgraded to VC++ 2008 and just want to take the best route - if I have to learn the right way of doing it along the way, BONUS! I'm all ears. Just because I got it working before doesn't mean it was the best way of doing it anyway - and just the same, I can't get my project linked with MFC.

Current project settings: (with errors below)

Use MFC in a Static Library
Not Using ATL

Additional include directories:
C:\WinDDK\7600.16385.0\inc
C:\WinDDK\7600.16385.0\inc\api
C:\WinDDK\7600.16385.0\inc\crt
C:\WinDDK\7600.16385.0\inc\mfc42
C:\WinDDK\7600.16385.0\inc\ddk
C:\WinDDK\7600.16385.0\inc\api\dao360

Ignore standard include path: No

Additional library directories:
C:\WinDDK\7600.16385.0\lib\wxp\i386
C:\WinDDK\7600.16385.0\lib\Mfc\i386
C:\WinDDK\7600.16385.0\lib\ATL\i386

Additional dependencies:
ntdll.lib
msvcrtd.lib

Errors:
1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/RELEASE' specification
1>LINK : warning LNK4075: ignoring '/DELAYLOAD' due to '/DRIVER' specification
1>MathHelper.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/DRIVER' specification
1> Creating library C:\dev\USBHIDCardReader\Debug\USBHIDCardReader.lib and object C:\dev\USBHIDCardReader\Debug\USBHIDCardReader.exp
1>LINK : error LNK2001: unresolved external symbol _DriverEntry
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
1>MathHelper.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
1>stdafx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
1>StringHelper.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
1>USBHIDCardReader.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol __afxForceUSRDLL
1>MathHelper.obj : error LNK2001: unresolved external symbol __afxForceUSRDLL
1>stdafx.obj : error LNK2001: unresolved external symbol __afxForceUSRDLL
1>StringHelper.obj : error LNK2001: unresolved external symbol __afxForceUSRDLL
1>USBHIDCardReader.obj : error LNK2001: unresolved external symbol __afxForceUSRDLL
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,char,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HDH@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,char,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HDH@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,char,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HDH@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,char,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HDH@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char)" (??YCString@@QAEABV0@D@Z) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,class CString,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HV2@H@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char)" (??YCString@@QAEABV0@D@Z)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char)" (??YCString@@QAEABV0@D@Z)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::Find(char,int)const " (?Find@CString@@QBEHDH@Z) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,class CString,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HV2@H@Z)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,class CString,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HV2@H@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomString(int,class CString,int)" (?GenerateRandomString@CMathHelper@@SA?AVCString@@HV2@H@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
1>MathHelper.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(class CString const &)" (??YCString@@QAEABV0@ABV0@@Z) referenced in function "public: static class CString __cdecl CMathHelper::GenerateRandomStringOfNumbers(int)" (?GenerateRandomStringOfNumbers@CMathHelper@@SA?AVCString@@H@Z)
1>StringHelper.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(class CString const &)" (??YCString@@QAEABV0@ABV0@@Z)
1>StringHelper.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CStringArray::~CStringArray(void)" (??1CStringArray@@UAE@XZ) referenced in function "public: static class COleDateTime __cdecl CStringHelper::GetOleDateTimeFromMySQLString(class CString,int)" (?GetOleDateTimeFromMySQLString@CStringHelper@@SA?AVCOleDateTime@@VCString@@H@Z)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CStringArray::~CStringArray(void)" (??1CStringArray@@UAE@XZ)
1>StringHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall COleDateTime::COleDateTime(class COleDateTime const &)" (??0COleDateTime@@QAE@ABV0@@Z) referenced in function "public: static class COleDateTime __cdecl CStringHelper::GetOleDateTimeFromMySQLString(class CString,int)" (?GetOleDateTimeFromMySQLString@CStringHelper@@SA?AVCOleDateTime@@VCString@@H@Z)
1>StringHelper.obj : error LNK2019: unresolved external symbol "public: int __thiscall COleDateTime::SetTime(int,int,int)" (?SetTime@COleDateTime@@QAEHHHH@Z) referenced in function "public: static class COleDateTime __cdecl CStringHelper::GetOleDateTimeFromMySQLString(class CString,int)" (?GetOleDateTimeFromMySQLString@CStringHelper@@SA?AVCOleDateTime@@VCString@@H@Z)
1>StringHelper.obj : error LNK2019: unresolved external symbol "public: int __thiscall COleDateTime::SetDate(int,int,int)" (?SetDate@COleDateTime@@QAEHHHH@Z) referenced in function "public: static class COleDateTime __cdecl CStringHelper::GetOleDateTimeFromMySQLString(class CString,int)" (?GetOleDateTimeFromMySQLString@CStringHelper@@SA?AVCOleDateTime@@VCString@@H@Z)
1>StringHelper.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ) referenced in function "public: static class COleDateTime __cdecl CStringHelper::GetOleDateTimeFromMySQLString(class CString,int)" (?GetOleDateTimeFromMySQLString@CStringHelper@@SA?AVCOleDateTime@@VCString@@H@Z)
1>USBHIDCrdRdrThread.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
...............
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 9:22
sashoalm6-Feb-10 9:22 
Questionhow to capture event in a dialog dll in application Pin
Vijeesh Theningalaedathil12-Oct-09 18:09
Vijeesh Theningalaedathil12-Oct-09 18:09 
AnswerRe: how to capture event in a dialog dll in application Pin
Naveen12-Oct-09 18:34
Naveen12-Oct-09 18:34 
GeneralRe: how to capture event in a dialog dll in application Pin
Vijeesh Theningalaedathil13-Oct-09 2:31
Vijeesh Theningalaedathil13-Oct-09 2:31 
QuestionRe: how to capture event in a dialog dll in application Pin
Rajesh R Subramanian12-Oct-09 19:33
professionalRajesh R Subramanian12-Oct-09 19:33 
AnswerRe: how to capture event in a dialog dll in application Pin
sashoalm12-Oct-09 20:08
sashoalm12-Oct-09 20:08 
GeneralRe: how to capture event in a dialog dll in application Pin
Rajesh R Subramanian12-Oct-09 20:11
professionalRajesh R Subramanian12-Oct-09 20:11 
QuestionI want to know some c libraries Pin
Dengjin_CN12-Oct-09 16:33
Dengjin_CN12-Oct-09 16:33 
AnswerRe: I want to know some c libraries Pin
«_Superman_»12-Oct-09 18:01
professional«_Superman_»12-Oct-09 18:01 
GeneralOT Pin
Naveen12-Oct-09 18:38
Naveen12-Oct-09 18:38 
GeneralRe: I want to know some c libraries Pin
CPallini12-Oct-09 21:07
mveCPallini12-Oct-09 21:07 
GeneralRe: I want to know some c libraries Pin
Dengjin_CN12-Oct-09 23:59
Dengjin_CN12-Oct-09 23:59 
GeneralRe: I want to know some c libraries Pin
CPallini13-Oct-09 0:09
mveCPallini13-Oct-09 0:09 
QuestionWhen to execute hashing function in Win32 app Pin
Patcher3212-Oct-09 15:17
Patcher3212-Oct-09 15:17 
AnswerRe: When to execute hashing function in Win32 app Pin
David Crow12-Oct-09 15:52
David Crow12-Oct-09 15:52 
GeneralRe: When to execute hashing function in Win32 app Pin
Patcher3213-Oct-09 18:56
Patcher3213-Oct-09 18:56 
AnswerRe: When to execute hashing function in Win32 app Pin
«_Superman_»12-Oct-09 16:18
professional«_Superman_»12-Oct-09 16:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.