comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Problem concerning accessing external library in IDL6.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problem concerning accessing external library in IDL6.0 [message #47773 is a reply to message #47756] Tue, 28 February 2006 13:41 Go to previous messageGo to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
Hi Peng,

Have you tried using Randall Frank's Video For Windows dll on my
website?

http://www.kilvarock.com/freesoftware/dlms/randallfrank.htm

I am currently using it to control a web cam from IDL and it works
great.

Here is a simple test procedure that you can use

pro testVFW

if VFW_PRESENT() eq 0 then begin
void = dialog_message('No Devices Found!')
return
endif

err=VFW_LIST(names,descs)

print, 'These are the devices found'
location = -1
for i=0,n_elements(names)-1 do begin
print, names[i], descs[i]
;find the webcam
if strpos(strupcase(names[i]),'WEBCAM') ge 0 then location=i+1
endfor

if location eq -1 then message,'No WebCam found'

err = VFW_CONNECT(location)
if err ne 0 then message,'Cannot connect to Webcam'
err= vfw_dialog(1)
err = vfw_grab(image, info)
window,0,xsize=(info.dimensions)[0],ysize=(info.dimensions)[ 1]
tvscl,image,/true
for i=0,10 do begin
err = vfw_grab(image, info)
tvscl,image,/true
endfor

return & end

thanks,
Ronn Kling
KRS, inc.
email: ronn@rlkling.com
Use these books to upgrade your IDL skills.
"Application Development with IDL"
"Calling C from IDL, Using DLM's to extend your IDL code". SECOND
EDITION includes C++ and debugging!
"Power Graphics with IDL, A Beginner's Guide to Object Graphics",
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idl 6.2 segmentation fault on SUSE 10
Next Topic: Re: problem with dual monitor setup

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 04:17:15 PDT 2025

Total time taken to generate the page: 1.52013 seconds