• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Creating an application file and .pbd file

I have created a .pbl file and is ready to be distributed. How do I create .pbd and application file from pbl

Thanks
Sushma
0
sushmasriram
Asked:
sushmasriram
  • 3
  • 2
1 Solution
 
sandeep_patelCommented:
Hi,

If pb version is 8.0 or later then there will be workspace and target other wise directly open your application and proceed from the second step.

1) Open your workspace.
2) Select File > New > Project Tab > Application. It will open project painter.
3) Give 'Executable File Name'. (i.e exe name with path )
4) Give resource file name.
5) Select 'Full' for 'Rebuild' option.
6) Tick checkbox 'pbd' for each pbls in your workspace and give resource file name against each if you don't know for which pbl exactly it is used.
7) keep other default options as it is.
8) select Design > Deploy Project. OR select last icon in tool bar for project painter.

That's it....
NOTE: don't forget to back up your pbls, pbw and pbt before you start creating exe.

Regards,
Sandeep
0
 
sushmasriramAuthor Commented:
I am using PB 6.5. What is the procedure?
0
 
sushmasriramAuthor Commented:
What do I give under resource file name?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sushmasriramAuthor Commented:
How do I create a .pbr file?
0
 
berXpertCommented:
Hi Sushmasriram,

A .PBR file is a text file format, it can be made in File Editor from toolbar.  In this file you put the name of files and location of extrernal resources you use in your application. When you do this files, all resources are copied into your EXE file so you do not need to redistribute those files separately.

Samples of these files are image .BMP files, icon .ICO files or cursor .CUR files.

Here is a sample content of a MyProject.PBR file:
===============================
splith.cur
splitv.cur
WCheckredWithHand.bmp
WCheck.bmp
WAPP_COPY.bmp
WError.bmp
WQuestion.bmp
WPhone.bmp
WCheckRed.bmp
WValidBad.bmp
WLetter.bmp
MyApp.ico

By the way, if you do not have resources to add to your application you can leave that option empty.

Regards,

BerX

0
 
sandeep_patelCommented:
Hi,

In PB6.5 also the procedure remains same as i said

First you open your application then open project painter and now start to proceed from step-3.

More clearification about resource file is that. Suppose you are using any icon files in your application for picture button or elsewhere. And at present for that picture control picture file is in any directory (e.g c:\your project\icon\open.bmp). Now while building your application if this icon files are not included, you need to distribute the icon files with your application and need to place in the same directory. So while building application you create simple text file with extension .pbr having list of all external image files you have used in your application. If images are not in the same directory where your pbls are there you need to specify path also.

myapp.pbr
=======

c:\your project\icon\open.bmp
c:\your project\icon\close.bmp
c:\your project\icon\save.bmp
c:\your project\icon\exit.bmp

And as BerX said if not using any external resource, there is no need to mention resource file. (It's optional)

Regards,
Sandeep




0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now