This code doesn't make much sense:
Try instead:
Code:
' --- Initializes Camera ----- FUNCTION LC1SetInitialize (camcommandstring$, CamTIMEOUT#, LC1Handle???) AS LONG CamTIMEOUT# = 4000 DIM x10 AS INTEGER PTR 'camcommandstring$ camcommandstring$ = "USB0::0x1313::0x0110::S/N M00226832::RAW" x10% = STRPTR(camcommandstring$) '"USB0::0x1313::0x0110::S/N M00226832::RAW" 'Message$ = camcommandstring$ ' returns vaiable string$ 'Message$ = @x$ ' returns variable string$ as the target of x x1$ = camcommandstring$ x2# = camTIMEOUT# 'time out ms LC1_init (BYVAL x1$, BYVAL x2#, x3???) TO result_var# 'as long LC1Handle??? = x3??? result_var# = x4# END FUNCTION
Code:
DIM lStatus AS LONG DIM LC1Handle AS DWORD lStatus = LC1_init ("USB0::0x1313::0x0110::S/N M00226832::RAW", 4000, LC1Handle)
Comment