Hi,
1) no, there is no better solution. When using DLLs the application simply
does not need to link with "iupstub.lib".
2) what do you mean by "attached resources"? Resources in the .RC file
linked into the executable? Or a resource file as an external file like a
.png or .jpg in a separate file?
In the first case, simply use the same when associating the atribute, for
instance if your resource declaration in the RC file is "MYIMAGE1" then
simply do iup.label{image = "MYIMAGE1"}
In the second case you can use the IM library to load a file, for
instance iup.label{image = iup.LoadImage(app_folder.."MYIMAGE1.PNG")}
Best,
Scuri
On Wed, Dec 7, 2016 at 5:12 AM, Ulrich Schmidt <u.sch...@gmx.de> wrote:
> Hi all.
>
> Finally i got a minimal iuplua sucessfully compiles as dll and/or static
> lib.
> Caused by the fact, i am using my own WinMain() function, i had to disable
> iup's one. I found no DEFINE to disable iup's WinMain() and so I copied
> "win/iupwindows_main.c" to "win/iupwindows_nomain.c" and removed the
> WinMain()
> stuff. But I don't like to hack original iup files and so the questions
> remains: Is there a better solution to deal with?
>
> Second question: I found no examples how to load (eg: images/icons) from
> attached ressourses. Are there any lua example codes available?
>
> TIA.
>
> Ulrich Schmidt.
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users