Hello Again!
I just re-read your posting and I see a worrisome combination. You want to build a Vision app, but you are using the eiffelmedia library. This is certainly possible, but not for the faint of heart. eiffelmedia applications have their own main event loop, as do EiffelVision applications. Once you launch the eiffelmedia application, you are pretty much out of the EiffelVision business. You might not have realized this.
For the application you describe, the combination might actually work, but you will have to be careful. Perhaps some of the eiffelmedia experts out there can advise as to the best method by which to use the jpg support in eiffelmedia, without instantiating an eiffelmedia application (with its main event loop). If that can be accomplished, then you will indeed have a vision2 application and you can have all sorts of fun with it - and have predictable behavior. If not, you will effectively have an eiffelmedia application inside a vision2 main window. That is far less satisfying.
This is not intended as a knock on eiffelmedia, by the way. It's an impressive body of work. The issue is only with the interaction between the two rather different libraries. I would hope someday in the future, we might be able to meld them better, perhaps adopting the eiffelmedia event handling into vision2. I think this would benefit Windows apps especially, as timing is more controllable and predictable with eiffelmedia than with Win32.
Best regards,
R
==================================================
Roger F. Osmond
----------------------------------------
Amalasoft Corporation
273 Harwood Avenue
Littleton, MA 01460
> -------- Original Message --------
> Subject: [eiffel_software] Opening jpg images in Eiffel 6
> From: Don <
cooped02@...>
> Date: Sun, April 01, 2007 3:31 am
> To:
eiffel_software@...
>
> Hello Eiffel experts,
> after only attempting very trivial tasks in Eiffel previously, I've
> decided
> the best way to learn Eiffel is to try something a little more
> substantial.
> The first step in my project is to write a Vision2 app that is able to
> open
> and view a .jpg file. Second I'd like to be able to clip it then save the
> .jpg file and third I'd like to be able to view the exif info. Further
> steps
> will be dependent on me getting this far ;)
> Looking through EiffelMedia I see that some of the examples load .jpg
> files,
> for example lovely loads matterhorn.jpg as a background image.
> However, the
> EiffelMedia 0.9 examples don't work with the version of EiffelStudio I
> have
> installed (EiffelStudio 6 (6.0.6.7183 GPL Edition)). I get the following
> message when I try to compile:
> Error code: VYCQ(2)
> Error: current class conforms to target of conversion query.
> What to do: make sure current class does not conform to target of
> conversion query or remove the target from the type list.
>
> Class: EM_VECTOR4F
> Feature name: to_reference
> Conversion type: EM_VECTOR4F_REF
>
> I see four options:
> 1) Go back to using an older version of Eiffel
> 2) Wait until I can get EiffelMedia working with ES6 (not sure if this
> is my
> problem or a result of ES 6 implementing new language concepts).
> 3) Find another library function to convert .jpgs into pixmaps
> 4) Write my own functions to load and save .jpgs
>
> Any advice appreciated.
>
> Thanks
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/eiffel_software/<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/eiffel_software/join (Yahoo! ID required)
<*> To change settings via email:
mailto:
eiffel_software-digest@...
mailto:
eiffel_software-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
eiffel_software-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/