I'm familiar with using ActiveX controls, but have never used IDL's draw widget control. But it seems to me there are a lot of things that could cause this. You're calling ENVI functions, and i'm not sure that the activex control can even do that in the first place. Do other ENVI functions work? The other thing, of course, is that your code has to start ENVI running...did you remember to do that? :)
And since you're just writing a tiff file, I'd probably stick with just using the IDL's WRITE_TIFF unless I had a pretty compelling reason to do otherwise. There's a GEOTAG keyword/tag you can use for the GeoTIFF info I believe.
Jeff
|