Announcement

Collapse
No announcement yet.

How use Vis Studio 5 to compile resources ?

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

  • How use Vis Studio 5 to compile resources ?

    How do I use MS Visual Studio 5 to compile resources for PBDLL6 ?

    The PowerGen manual says we can use MS Visual Studio to compile resources instead of the DLGEDIT method.

    I have tried using Visual Studio 5 and have come away confused because the files it creates are not the same as those created by DLGEDIT.

    Robert

    -------------
    Robert Lightbourne
    Bob Lightbourne

  • #2
    I dont have ver. 5 installedanymore, but If I remember correctly
    you have the option to save your resource-script as a
    resource-file:
    So the easy answer is
    Save as "MYRESOURCE.RES"
    PBRES MYRESOURCE.RES
    and you have a readyToUse MYRESOURCE.PBR


    ------------------
    Fred
    mailto:[email protected][email protected]</A>
    http://www.oxenby.se

    Fred
    mailto:[email protected][email protected]</A>
    http://www.oxenby.se

    Comment


    • #3
      Assuming you've already used VC's IDE to create the resource script:

      1. Make sure you switch off the MFC features of your resource script in VC5's IDE (right-click on the root level of your RC file in the IDE, select Properties).

      2. Save the RC file.

      3. Choose SAVE-AS, select .RES format, and click OK. Answer YES to overwrite.

      4. Execute PBRES on the .RES file.

      Alternatively, if you want to compile the .RC file from the command line, you'll need to use RC.EXE that shipped with VC5 (not the one shipped with PB/DLL). In my machine, that is located at "I:\DEVSTU~1\SHARED~1\BIN\RC.EXE"

      Here is my BUILD32.BAT file for VC5 and PB/DLL 6.0
      Code:
       if exist %1.exe del %1.exe
       I:\DEVSTU~1\SHARED~1\BIN\RC /R /II:\DEVSTU~1\SHARED~1\TEMPLATE\ATL %2 
       F:\PBDLL60\BIN\PBRES %2
       F:\PBDLL60\BIN\PBDLL %1 /IF:\PBDLL60\WINAPI
       if exist %1.exe %1.exe
      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment

      Working...
      X