Deprecated: Array and string offset access syntax with curly braces is deprecated in /homepages/21/d38531796/htdocs/jose/smfforum/Sources/Subs.php on line 3825
PB 10 SLL Question

Author Topic: PB 10 SLL Question  (Read 6134 times)

0 Members and 1 Guest are viewing this topic.

Offline Brice Manuel

  • Full Member
  • ***
  • Posts: 154
  • User-Rate: +0/-0
PB 10 SLL Question
« on: February 21, 2011, 08:41:57 PM »
My apologies if I did not start this thread in the proper forum.

I have been following the discussions on the official forum about PB 10.  I have a question that I was hoping somebody could answer for me.  With compiling an EXE or a DLL with PB, we have numerous options for including "media" (icons, graphics, etc.) into the compiled EXE/DLL.  When compiling to a SLL what would be the ideal method for including necessary icons/graphics into the SLL?

I realize PB 10 has not been released yet, and I know that beta testers are severely limited to what can be discussed.  However, I am hoping somebody might have an answer and I do not think the question is overly intrusive.

Thank you in advance.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • User-Rate: +204/-0
Re: PB 10 SLL Question
« Reply #1 on: February 21, 2011, 09:36:08 PM »
An SLL can't have resources. Only EXEs and DLLs can have a resource (and only one) file attached. An SLL is just a bunch of pre-compiled code that later is linked to an EXE or a DLL.

Offline Brice Manuel

  • Full Member
  • ***
  • Posts: 154
  • User-Rate: +0/-0
Re: PB 10 SLL Question
« Reply #2 on: February 21, 2011, 10:27:04 PM »
An SLL can't have resources. Only EXEs and DLLs can have a resource (and only one) file attached. An SLL is just a bunch of pre-compiled code that later is linked to an EXE or a DLL.

So that would mean the ideal way to include graphics in a SLL would be to convert them to data statements?

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • User-Rate: +204/-0
Re: PB 10 SLL Question
« Reply #3 on: February 21, 2011, 11:00:16 PM »
I don't have expertise with SLLs yet. The limitation of one resource file for EXE or DLL is a Windows limitation. One way is to provide the graphics and the user can include them in the resource file of his EXE or DLL.

Offline Brice Manuel

  • Full Member
  • ***
  • Posts: 154
  • User-Rate: +0/-0
Re: PB 10 SLL Question
« Reply #4 on: February 23, 2011, 09:07:45 PM »
Sounds like it should not be an issue as long as everything is in code form.  I have been asked to provide a SLL version of a DLL which two PBers are using.  Since I am working on a small update, I want to make sure what I am doing will be as "SLL-friendly" as possible :)

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 936
  • User-Rate: +30/-4
    • it-berater
Re: PB 10 SLL Question
« Reply #5 on: February 26, 2011, 10:22:42 AM »
Quote
So that would mean the ideal way to include graphics in a SLL would be to convert them to data statements?

If you read a bit in the PB Forum, you will find some additional news from PB 10, for example ASMDATA.
This is the prefered METHOD in PB 10 for Data that should be hold inside an SLL as i see it.

It also does not have the limitations the DATA/READ statements had.

Offline Patrice Terrier

  • ROMs
  • Hero Member
  • *****
  • Posts: 934
  • User-Rate: +62/-1
    • www.zapsolution.com
Re: PB 10 SLL Question
« Reply #6 on: February 26, 2011, 11:48:56 AM »
The best way is to include them as RCDATA, example:
Code: [Select]
PROGRAM ICON ZAP.ICO
REDMASK RCDATA DISCARDABLE REDMASK.GIF
ZMAGIC  RCDATA DISCARDABLE ZMAGIE.GIF
STAR    CURSOR STAR.CUR

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 936
  • User-Rate: +30/-4
    • it-berater
Re: PB 10 SLL Question
« Reply #7 on: February 26, 2011, 03:43:26 PM »
Quote
The best way is to include them as RCDATA, example:

In an SLL ?

Offline Patrice Terrier

  • ROMs
  • Hero Member
  • *****
  • Posts: 934
  • User-Rate: +62/-1
    • www.zapsolution.com
Re: PB 10 SLL Question
« Reply #8 on: February 26, 2011, 05:23:58 PM »
I think i would keep using the standard DLL resource model, to link them with all the languages i am using.
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Brice Manuel

  • Full Member
  • ***
  • Posts: 154
  • User-Rate: +0/-0
Re: PB 10 SLL Question
« Reply #9 on: February 27, 2011, 03:09:35 PM »
If you read a bit in the PB Forum, you will find some additional news from PB 10, for example ASMDATA.
This is the prefered METHOD in PB 10 for Data that should be hold inside an SLL as i see it.

It also does not have the limitations the DATA/READ statements had.

Thank you, Theo.  I no longer have a membership at those forums and do not read them as much as I used to.  This is something I definitely missed.  I will read up on it.