We help IT Professionals succeed at work.

Compiling sample TWAIN application

http://sourceforge.net/projects/twain-samples/files/TWAIN%202%20Sample%20Application/

I am using Visual Studio 2010.  The sample app that comes from twain.org is for Visual Studio 2008.  It will not compile in VS2010.  Is there a way to get around this?
Thanks!
Dave
Comment
Watch Question

Most Valuable Expert 2012
Top Expert 2008

Commented:
1) You will need to have the FreeImage installed on your system for this
application to work properly.

FreeImage website: http://freeimage.sourceforge.net

2) Missing twain.h

http://twain.org/devfiles/twain.h

3) Home site

http://twain.org/
AviationAceSole-Proprietor

Author

Commented:
I got FreeImage downloaded and compiled, but I am not quite sure how to integrate it into the TWAIN sample project.  Do you have any insights?
Thx,
Dave
Most Valuable Expert 2012
Top Expert 2008

Commented:
It should already be integrated.  Are you still getting compiler errors?
AviationAceSole-Proprietor

Author

Commented:
Error      89      error MSB6006: "cmd.exe" exited with code 3.      C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets      151      6      TWAINDS_Sample


I'm thinking that the TWAIN project needs to know where the FreeImage files are, but I'm not sure.
Most Valuable Expert 2012
Top Expert 2008
Commented:
That error doesn't make any sense, but it is not referring to FreeImage.  I would have to look closer, but the project has a dependency to FreeImage that should already be correct, if the FreeImage was installed as expected.

This looks like a configuration problem, that might be because you are using 2010, instead of 2008.
AviationAceSole-Proprietor

Author

Commented:
That's what I think as well.  I'm pretty sure it would be just a small "tweak" to get it to compile, but I don't know where to start.
Most Valuable Expert 2012
Top Expert 2008

Commented:
I am not sure that I can help you with this one.  You might want to request attention to this question.
AviationAceSole-Proprietor

Author

Commented:
I was waiting for a response from the TWAIN web site too.  We'll see how it goes.
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
Have you seen this from MSDN on migrating VS2008 to S2010
http://msdn.microsoft.com/en-us/library/cc512930.aspx

mlmcc
AviationAceSole-Proprietor
Commented:
It looks painful and intimidating, but I will give it a shot and get back to you.  Thanks for the insight!

 - Dave
AviationAceSole-Proprietor

Author

Commented:
http://msdn.microsoft.com/en-us/library/cc512930.aspx

I can't figure out step #3.

I think I am just going to have to wait until the people at TWAIN.org come out with a new project that is compatible with VC2010.
AviationAceSole-Proprietor

Author

Commented:
Bummer.  Now I play the waiting game for the TWAIN people to come out with a version compatible with VC2010.