| View previous topic :: View next topic |
| Author |
Message |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 13, 2005 6:13 pm Post subject: VDS 5+ resources |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Mar 13, 2005 7:11 pm Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 13, 2005 7:29 pm Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 13, 2005 8:18 pm Post subject: |
|
|
Silly me. Since my dlls will only accept bitmap or icon resources, I just
need to check for those types of resources. Duh .
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Mar 14, 2005 12:57 am Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Mar 14, 2005 1:16 am Post subject: |
|
|
Thanks Prakash,
After some tinkering, I think I've figured it out
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.
Thanks again  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
|