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
Old code, New PB!
Old code, New PB!
-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
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
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Old code, New PB!
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
Re: Old code, New PB!
with other words: You have to do one : for the label and another : for the new line,
with space between!
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.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Re: Old code, New PB!
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
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