Page 1 of 1

Old code, New PB!

Posted: Wed May 24, 2017 7:16 pm
by Karbon
Wow it's been a looooong time since I posted here!

I'm blowing the dust off of some old code that was originally written with PB 3.X and have been able to get most of it working.. Now I'm getting a "Syntax Error" on this line :

_OPT_settings_Company : IncludeBinary "Images\companyinfo.ico"

It's in a datasection (obviously) and it's as straightforward as it can be.. I can see nothing about changes to the syntax of a datasection and I see IncludeBinary is still there as it has always been... Anyone have any ideas? I'm using the 32-bit version of 5.50

Re: Old code, New PB!

Posted: Wed May 24, 2017 7:23 pm
by netmaestro
Labels must be alone on their own line now. This is because of the new module syntax module::resource which introduced compiler difficulties with sorting out labels, multi-command lines and now modules. Lots of colons to anticipate and it had to be simplified somewhat. So labels were tightened up. Do it like this:

Code: Select all

DataSection
  startfile:
     IncludeBinary "file"
  endfile:
EndDataSection

Re: Old code, New PB!

Posted: Wed May 24, 2017 7:31 pm
by ts-soft
with other words: You have to do one : for the label and another : for the new line,
with space between!

Code: Select all

_OPT_settings_Company: :IncludeBinary "Images\companyinfo.ico"

Re: Old code, New PB!

Posted: Wed May 24, 2017 9:06 pm
by Karbon
Thanks guys!