Home › Forums › TWAIN Classic › Scanning directly into a file › Reply To: Scanning directly into a file
January 21, 2008 at 10:38 pm #24281
I tried:
rc = DSM_Entry(appid, srcds, TwDG.Control, TwDAT.SetupFileXfer, TwMSG.Set, twsfFile);
where twsfFile is a SetupFileXfers structure.
I am using C#. My SetupFileXfers structure is as follows:
internal class SetupFileXfers
{
/* [MarshalAs( UnmanagedType.ByValArray, SizeConst=256)] – commented out */
public Byte[] FileName = new Byte[256]; /* File to contain data */
public UInt16 Format; /* A TWFF_xxxx constant */
public IntPtr VrefNum; /* Used for Macintosh only */
}
I get a Failure report when this is called, but don’t know how to get an error code.
I suspect the structure is wrong?