Old code, New PB!

Just starting out? Need help? Post your questions and find answers here.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Old code, New PB!

Post 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
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Old code, New PB!

Post 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
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Old code, New PB!

Post 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"
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Re: Old code, New PB!

Post by Karbon »

Thanks guys!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply