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 


VDS 5+ resources

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Mar 13, 2005 6:13 pm    Post subject: VDS 5+ resources Reply with quote

Hello all,

It just dawned on me that even though my dlls will work with VDS 5 that I
haven't included support for resources comipled into an execuable. The VDS
5 help file doesn't explain things good enough for me to understand exactly
how the resources are accessed in the executable. Let me rephrase that,
it explains it well enough for the VDS programmer, not an extension
developer.

If any of the other extension developers that have managed to add support
for VDS 5 resources could help me here it would be greatly appreciated.

Thanks in advance,

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sun Mar 13, 2005 7:11 pm    Post subject: Reply with quote

The data is in standard windows executable resource format.

You can use Windows api's like LoadResource, FindResource to get resource data.

You will want to use vds 5's #resource add, declaration to add the resources to your exe.
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Mar 13, 2005 7:29 pm    Post subject: Reply with quote

Thanks Prakash. I don't use VDS 5. I'm not trying to create a VDS 5 .exe,
only wanting to add support to my dlls for VDS 5 .exes to my extensions.

How can you tell what kind of resource a user is trying to use?

I know the '#' denotes an included resource, but I've also seen a '$'
immediately after the '#' before the resource name. What I'm trying to figure
out is what type of resource the user has specified to use. Does that make
any sense?

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Mar 13, 2005 8:18 pm    Post subject: Reply with quote

Silly me. Embarassed Since my dlls will only accept bitmap or icon resources, I just
need to check for those types of resources. Duh Shocked .

I still don't understand '#$someres'. Can some please elaborate?

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Mon Mar 14, 2005 12:57 am    Post subject: Reply with quote

resources in windows executables can be given a name. In vds you can call that resource by using the resource name:

#resname

The resource name has to be 8 characters or less.

Take a look at a resource editor program and open various programs/exe's with it and you'll see bitmaps and other resources usually have an id or a resource name associated.

Also you can take a look at the vdspopup extensions source code to see any example (in delphi) how to use resources from an extension.
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Mar 14, 2005 1:16 am    Post subject: Reply with quote

Thanks Prakash,

After some tinkering, I think I've figured it out Wink Smile

With the applications I've written in C/C++, I've no trouble with resources. I
just wasn't sure how VDS 5 hahdled them. I actually used ResourceHacker
to see exactly how VDS named the included resources. Unfortunately, since
I can't compile an .exe with VDS 5, I can't check to see if I have it figured
right or not. Confused

Thanks again Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous 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