Thread: PRS-500 Reader internals
View Single Post
Old 10-18-2006, 08:11 AM   #62
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by geekraver
Aargh. I'm finally at the point where I'm trying to build my C shim program, and I get:

fatal error LNK1107: invalid or corrupt file: cannot read at 0x280 c:\Program Files\Sony\CONNECT Reader\Data\bin\ebookusb.dll 1
What you are doing? Could you show the command line for link? Dll is not supposed to be red during linking. It is DINAMIC link library. You must be using the dll instead of export library which you don't have.

How to produce export lib: create a fake dll in VS/C++ with the same name and with the same set of exported functions (at least the prototypes (names and parameters) and ordinals of the used exports should be the same), the build process will give you the export lib.
gseryakov is offline   Reply With Quote