Powerbuilder Resource File Not Loading Pics

Posted on 2006-04-21
Last Modified: 2013-12-26

I'm working on a third party PB app which has one resource file referenced in the Project object (in the main Resource File Name edit box at the top of the project window).  The pbr references bitmaps that are stored in the pbr's directory.

After deploying the app, the resource pictures are not displaying even though the resource name is referenced correctly in the Resource Name edit box in the project object.

I tried to type the resource pbr name in a Resource edit box directly next to one of the pbl's that references a pbr bitmap then deployed app again - this didn't change the issue.

Any suggestions on what else to look for to resolve this?
Question by:ssebring
    LVL 18

    Expert Comment


    kinda strange issue...

    try copying all ur bitmaps in ur application directory...

    LVL 5

    Expert Comment


    try to look if full path is placed for your pictures, for example if they are in a datawindow check for file name property, if they are then it must be removed so your deployed app can take the resource from your EXE file and not from path. It must said only filename and not full path:

    Ex. if it said:
    c:\my folder\pbr\image1.bmp

    Change to:



    LVL 14

    Expert Comment

    Hi ssebring,

    Is it the same problem which you asked earlier ?


    Author Comment


    One of the icons not appearing during the app run is 'pic1.bmp' referenced in m_mdi (no path - name only).

    The .bmp is one of the resource.pbr items.

    I tried clicking the ToolbarItemName item search button next to the pic1.bmp edit box then selected the .bmp directly from the directory - this pulled the full path in and showed the icon next to the name.  From here, I then removed the path so that the name was w/out path in the edit box, saved m_mdi then ran the app from pb -- pic1.bmp and all the other culprit icons appeared this time during the devl PB run.

    Tried deploying the app right after the first m_mdi save (when the icons were all there) but the icons didn't display in the .exe run - the .pbr file is not being 'seen' for whatever reason.

    Tried moving the RESOURCE directory to the development source code directory and also to the deployment exe directory - neither worked.

    Any other suggestions would be greatly appreciated.

    btw: yes, this was the same issue as

    I had accepted answers too early - the problem still existed.  Wasn't sure how to reopen a discussion while awarding more points so started a new dialogue.
    LVL 14

    Accepted Solution


    Let me explain you with example,

    1) say your application directory is c:\myapp
    2) and have two pbls in that directory...
    3) your menu object is in main.pbl.
    4) in menu you have used pic1.bmp which is also in the same directory c:\myapp
    ( becoz as you said you removed the path of that file but in development environment runtime it displays the icon)
    5) now you create new myapp.pbr file it should look like this ( c:\myapp\myapp.pbr)


    ( becoz all picture files are in the same directory where your pbls are )
    6) now when you build application, put c:\myapp\myapp.pbr against all pbls as well as against exe path.

    ( against all pbls means there is a provision to select resource file against each pbl)

    7) now build exe and see

    If this works for you no need to give points for my answer as you already given point to me for the same problem.


    Author Comment


    Many thanks!  My confusement was in putting all resource files directly into the directory where the application object's .pbl resided.  The directory structure here is one .pbl per directory so I wasn't quite getting the point.  Thanks for your reply - everything is now working.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    Save a new file in 9 333
    Mavenproject with NetBeans 3 84
    easiest way to find port number 12 97
    Eclipse XML hightlightning 5 32
    In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now