Home › Forums › TWAIN Classic › Problem compiling sample app
- This topic has 1 reply, 2 voices, and was last updated 14 years, 10 months ago by mlcarey.
- AuthorPosts
I want to include in my Windows application the ability to capture an image from a scanner, determine if it has a bar code on it, and save the image as a TIFF. I am assuming that TWAIN is what I should be using. So I downloaded the sample source code and tried to compile it but I get about a dozen unresolved externals (see example below). The project I am trying to compile is TWAIN_APP_VS2003_mfc
TWAIN_App_mfc error LNK2019: unresolved external symbol “int __cdecl VerifyEmbeddedSignature(wchar_t const *)” (?VerifyEmbeddedSignature@@YAHPB_W@Z) referenced in function “bool __cdecl LoadDSMLib(char *)” (?LoadDSMLib@@YA_NPAD@Z)
Can anybody help me please?
Graham Dicker
@Graham Dicker wrote:
I want to include in my Windows application the ability to capture an image from a scanner, determine if it has a bar code on it, and save the image as a TIFF. I am assuming that TWAIN is what I should be using. So I downloaded the sample source code and tried to compile it but I get about a dozen unresolved externals (see example below). The project I am trying to compile is TWAIN_APP_VS2003_mfc
TWAIN_App_mfc error LNK2019: unresolved external symbol “int __cdecl VerifyEmbeddedSignature(wchar_t const *)” (?VerifyEmbeddedSignature@@YAHPB_W@Z) referenced in function “bool __cdecl LoadDSMLib(char *)” (?LoadDSMLib@@YA_NPAD@Z)
Can anybody help me please?
Graham Dicker
You need to include the VerifySignature.cpp source file. Depending on your OS you may need to comment out the following variable WinTrustData.dwUIContext = 0; . Depending on the application you are tyring to compile you will need to include other source files as well.
- AuthorPosts