| View previous topic :: View next topic |
| Author |
Message |
Steve Endor Newbie
Joined: 13 Jan 2009 Posts: 1
|
Posted: Tue Jan 13, 2009 9:53 pm Post subject: Images and VDSIMG60.DLL |
|
|
Hi
This is my first VDS project and I've hit a problem when using VDSIMG60.DLL in the compiled project.
The program works find in the development environment, however when I compile the project, the image files are no longer displayed. Is there something special I need to do when I use the EXTERNAL command in a VDS Script? |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Jan 14, 2009 11:20 am Post subject: |
|
|
Hi Steve,
I have noticed that if you use a jpg image it appears in the IDE but not in the exe.
If you're using a bmp or png or something else, your problem is due to the location of your image file. Or the difference between the location specified in your script and the location expected by the compiled exe.
I usually find the reverse to you, where once I have the image working in the compiled exe it's no longer visible in the IDE. With VDS 6 you can use if @sysinfo(inide) to refer to a local image file when run in the IDE and the embedded image when run as a compiled exe.
If you haven't already, you should compile the image into the exe:
EXTERNAL VDSIMG60.DLL
#DEFINE FUNCTION,IMAGE
#resource add,image,#imagename.png
Note: Replace imagename with the name of YOUR image.
Then append the # to the image filename where ever you reference the image within the script.
DIALOG ADD,IMAGE,IMAGE1,0,0,64,64,#imagename.png
image set,image1,#imagename,7 _________________ cheers
Dave |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jan 14, 2009 2:31 pm Post subject: |
|
|
I moved this thread to the General Help forum due to the fact that vdsimg60.dll is a DialogScript.com product and not a VDSWorld.com product. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|