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

Home » Public Forums » archive » Re: IDL and C-
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: IDL and C- [message #39413] Thu, 20 May 2004 13:50 Go to previous message
rsmith1 is currently offline  rsmith1
Messages: 3
Registered: May 2004
Junior Member
M. Katz-

Thanks a bunch for your response. I tried the code and ran into more
issues. Upon using the call_external it simply converts the image
variable back to a long since IDL does its variable type declarations
on the fly. I then tried the following code:
image = ptr_new(bytarr(call_external("C:\Users\11ryan\CIDLFinal\testDLL\Debug\testDLL.dll ","testDLL")))
window, xsize=640, ysize=480 ;--- open a window for display
help, image
tvscl, *image

And the help, image says that it is a pointer, but when trying to
display it i get an error saying TVSCL: Width and Height must be less
than 32000. It looks as if it is trying to take the value and use it
as a dimension instead. Any more advice on what I could try? thanks
again for all the help-

-Ryan

MKatz843@onebox.com (M. Katz) wrote in message news:<4a097d6a.0405192255.693cd62b@posting.google.com>...
> This is just a guess, but you might try the following.
>
> ;--- declare image as a pointer to an array of byte type
> image = ptr_new(bytarr(640,480))
> image = call_external("C:\11ryan\temp\Debug\testDLL.dll","testDLL ")
> window, xsize=640, ysize=480 ;--- open a window for display
> tvscl, *image ;--- scale and display the contents of the image pointer
>
> after the call_external, you might also issue
> print, image
> If it returns something like this <PtrHeapVar1> then it's certainly a pointer.
> M. Katz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Smoothing Data with optimal wiener filter
Next Topic: Re: will pay

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

Current Time: Sat Oct 11 01:23:58 PDT 2025

Total time taken to generate the page: 0.55936 seconds