PictureResName and PictureResID

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PictureResName and PictureResID

Postby Bas » Tue Jan 29, 2008 2:30 pm

How do I use PictureResName and PictureResID?

Tried adding a BMP to the .res-file (the ID is 101):
Code: Select all
Call VP1.PictureResID(VRIGHT, VTOP, VFREE, VFREE, 0, 101, PIC_KEEPIMAGE)

And tried renaming the resource-ID with a string:
Code: Select all
Call VP1.PictureResName(VRIGHT, VTOP, VFREE, VFREE, 0, "TEST", PIC_KEEPIMAGE)


What is the correct way of using these functions?
Thanks in advance!
Bas
 
Posts: 18
Joined: Mon Nov 07, 2005 3:35 pm
Location: Hellevoetsluis

Postby IDEAL Software Support » Tue Jan 29, 2008 5:13 pm

With what programming language are you working? This requires that your application is a compiled EXE with a standard EXE resource file format, so it is accessible by the WIN-API resource functions.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby Bas » Wed Jan 30, 2008 12:43 am

I use VB6. :oops:
When debugging the res-file has an .res extension.
When I compile I get one .exe-file, with the resource-file compiled into the .exe.

With Picture() I can load a picture from a path on the hard-drive.
I would like to compile those images into the .exe with a resource file.
Bas
 
Posts: 18
Joined: Mon Nov 07, 2005 3:35 pm
Location: Hellevoetsluis

Postby IDEAL Software Support » Wed Jan 30, 2008 11:32 am

We don't know the format of a compiled VB6 exe. With C++ it works. If it does not work with VB6, we can't do anything, since we use the WIN API.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 15 guests

cron