>THIS.nscan_opt=5 >THIS.cfront_fn = "F.TIF" >THIS.cback_fn = " " > temp_cfront_len = SPACE(255) > temp_cback_len = SPACE(255) > temp_cmicr_text = SPACE(255) > temp_cmicr_len = SPACE(255) > > m.nretval=buicscan(THIS.nscan_opt,; > THIS.cfront_fn, ; > @temp_cfront_len, ; > THIS.cback_fn, ; > @temp_cback_len, ; > @temp_cmicr_text, ; > @temp_cmicr_len)Just a guess. Since the declaration is prefixed with "lp", I think the type of this parameter used to be a Long Pointer but the VB code declared it as a String. It might help if you can post the C sample.
declare integer BUICScan in BUICAP32.DLL integer iJobType, ; string @lpFront, string @lpLenFront, ; string @lpBack, string @lpLenBack, ; string @lpCode, string @lpLenCode *** Don't forget to put this in the INI file *** FileNamesTerminated=1 temp_cfront_fn = "F.TIF" + chr(0) temp_cfront_len = SPACE(255) temp_cback_fn = space( 4096 ) temp_cback_len = SPACE(255) temp_cmicr_text = SPACE(255) temp_cmicr_len = SPACE(255) m.nretval=buicscan( 5, ; temp_cfront_fn, ; @temp_cfront_len, ; @temp_cback_fn, ; @temp_cback_len, ; @temp_cmicr_text, ; @temp_cmicr_len)