Click to See Complete Forum and Search --> : >(resources->GetObject(L"Ythree.Image")));


ikurtz
October 29th, 2009, 11:15 AM
>(resources->GetObject(L"Ythree.Image")));

I need some help. The above code gets an image from .resX file.

What is the code if i want to load an image from the app.rc file?

I am finding that using resX, if i am using the same image more than once a new copy of the image is being created on executing the application.

Thanks for the time.

ikurtz
October 29th, 2009, 11:27 AM
i think i have to use the imageList control for this as resX is the .net way of doing things.

ikurtz
October 29th, 2009, 02:55 PM
if images are imported/used in resX using imagelist.

how do i store audio clips in the application resources? do i use app.rc for that?

also i would like to embed icons in it also. how and where do i store them?

thanks.

Alex F
October 30th, 2009, 02:29 AM
Ask in C# forum. C++/CLI is used only for interoperability, all other tasks are much better to write in C#. Such questions usually reamins unanswered in C++/CLI forum.

ikurtz
October 30th, 2009, 10:33 AM
ok thanks. i think i have resX figured out now.