Is it possible to specify an image in a wxHtmlWindow that is contained within the executable?

StackOverflow https://stackoverflow.com/questions/2547553

문제

I would like my executable to be self-contained. However, the wxHtmlWindow uses an image and it would be nice if the image could be stored inside the executable.

Can this be done, and if so how?

도움이 되었습니까?

해결책

Yes, use memory: schema. See my code in http://mahogany.git.sourceforge.net/git/gitweb.cgi?p=mahogany/M;a=blob_plain;f=src/gui/wxMDialogs.cpp;hb=HEAD for example (just search for "memory:" there).

Don't forget to register wxMemoryFSHandler or this won't work!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top