Sounds just the ticket...
I presume iCamSetCallbackAddress cant be set to a NULL address (for default processing) ? If not, looks like I'll have to do a plug-in for the required processing, and try and get the address of the function. Or do a plug-in that gets the address of a function in a DLL (and do a new version of LOAD DLL).
On the plus side anyway, it no longer crashes when getting memory data
For those interested, this is the code so far :
Rem testICam
load dll "F:iCamPlayICAMplay.DLL",1
call dll 1,"iCamInitCapture",0:rem result
call dll 1,"iCamGetMotion"
mem=make memory(16)
call dll 1,"iCamGetCapSize",mem
x=peekL(mem,0)
y=peekL(mem,4)
delete memory mem
mem=make memory (x*y*4)
repeat
`call dll 1,"iCamEvent",1
call dll 1,"iCamGetMotion"
call dll 1,"iCamCopyWebcamImage",mem
p=0
lock pixels
for py=0 to y-1
for px=0 to x-1
dot px,py,peekL(mem,p)
inc p
text 0,200,str$(x)+" "+str$(y)
next px
next py
unlock pixels
`x=msgbox(hex$(ptr)+" "+hex$(mem),"*",1)
`l=peekL(mem,0)
`copyMemory mem,ptr,x*y*4
`x=msgbox("2","*",1)
`text 0,0,hex$(mem)+" "+str$(x)+" "+str$(y)+" "+str$(p)
inc p
sync
until spacekey()<>0
delete memory mem
wait key
end
dot 0,0 : ` Basic2D
load object "",1 : ` Basic3D
load bitmap "",1 : ` Bitmap
autocam off : ` Camera
cls : ` Core
ftp connect "","","" : ` FTP
close file 1 : ` File
load image "",1 : ` Image
hide mouse : ` Input
delete terrain 1 : ` LODTerrain
delete light 1 : ` Light
delete matrix 1 : ` Matrix
delete memblock 1 : ` Memblock
free net game : ` Multiplayer
delete music 1 : ` Music
delete particles 1 : ` Particle
show window : ` Setup
delete sound 1 : ` Sound
sprite 1,0,0,1 : ` Sprite
disable systemkeys : ` System
text 0,0,"" : ` Text
Couple of other things : The end detection system is very clever.
And having DX overlayed DBPro's DX does of course mean you cant exit DBPro properly...
The place for all
great plug-ins
2xXP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me