forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Images and VDSIMG60.DLL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Steve Endor
Newbie


Joined: 13 Jan 2009
Posts: 1

PostPosted: Tue Jan 13, 2009 9:53 pm    Post subject: Images and VDSIMG60.DLL Reply with quote

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
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Jan 14, 2009 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jan 14, 2009 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group