#define TESTGIF "d:\monster.gif" TEXT TO ctemp noshow && create a string with a few lines of code PUBLIC x as Form x=CREATEOBJECT("form") x.Visible=1 x.addobject("img","image") && add an image control and call it "img" x.img.picture=TESTGIF x.img.visible=1 ENDTEXT STRTOFILE(ctemp,"temp.prg") && save as a file on disk BUILD PROJECT temp FROM temp && build a project MODIFY PROJECT temp nowait && add the GIF to the project so it's embedded inside the target APP, EXE ,or DLL _vfp.ActiveProject.Files.Add(TESTGIF) _vfp.ActiveProject.Close *CLEAR RESOURCES TESTGIF && this line will fix the problem BUILD APP temp FROM temp && build the APP (or exe) DO temp