Announcement

Collapse
No announcement yet.

RES Files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RES Files

    Hi,

    I'm new to PowerBasic. Please forgive me, if this was already asked.

    I am going to create a GUI with the Dialog Editor supplied with PBDLL60. Everything works fine. A .RES file is created, and I assumed, this should be converted in a .PBR file with the PBRES.EXE utility. Whenever I tried to do the conversion I got the message "Error: Not a 32-bit Resource File
    (make sure you are using the 32-bit Resource Compiler)" Any idea what I did wrong?

    Thanks in advance for any suggestion.
    rgds


    ------------------

  • #2
    You need to tell the resource compiler (RC.EXE) that it should create aa 32-bit resource file. From memory, the command-line switch is -32 (you can check this by typing "RC /?" from the command-line).

    However, the easiest way is to load the resource (*.RC or *.DLG) into the IDE (modify the .DLG file as necessary and save as a .RC), and click Compile. PowerBASIC will compile a resource script for you. Note: make sure "capitalize keywords" is not active or the resource script will not be compiled as many of the RC keywords are case sensitive (such as "#include", etc).

    Finally, there are a few FAQ postings in the FAQ Forum about using DLGEDIT with PowerBASIC and PowerGEN - they may be helpful to you.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Thanks for your quick reply!

      rgds

      ------------------

      Comment

      Working...
      X