Page 3 of 4
Re: 32bit or 64bit for compatibility?
Posted: Sat Jul 16, 2016 9:56 pm
by Lunasole
@Lord, well, that's AV problems. There are many antiviruses maked ugly and looking like they want your money to remove your soft from their blacklists. Kind of companies like patent-trolls I guess.
Here from example is nice list of their shame from man getting tired of this:
http://blog.nirsoft.net/2015/10/18/anti ... oft-tools/
I don't even care about such AVs, rather I'll just tell users of some my code to not be stupid
@NoahPhense, dude, I don't think it will be soon. Windows still remains most often used system at home, and It's API still remains 32-bit dword-based (with providing full compatibility even in x64 systems, there are special APIs to disable filesystem virtualization for your x32 code, etc). That will remains for at least 3-5 years, before most of 32bit soft get really outdated, and even then no reasons to break compatibility with it at system level.
Re: 32bit or 64bit for compatibility?
Posted: Sun Jul 17, 2016 2:08 pm
by NoahPhense
Yeah, I will retract my comment. (must have been a #toomanybeers post) I checked, and see that even in the retail markets, they are still selling as many 32 bit systems as usual. Plus, there will always be 32bit systems for small scale mini systems. Especially ones that are meant to run linux, etc..
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 5:49 pm
by Thunder93
I like the complete separation of all PB preferences from one version to the next. Also between 32bit and 64bit versions. I also like my PB preferences all under \%APPDATA%\, so I don't use /PORTABLE parameter but just /NOEXT
Every-time I install a new version, and before first execution, I manipulate the new shortcuts and then move the old desktop shortcuts into a PB Desktop folder where all the previous PB versions shortcuts exists.
64bit
"D:\Program Files\PureBasic 5.42\PureBasic.exe" /P "C:\Users\Owner\AppData\Roaming\PB5.42_x64\PureBasic.prefs" /T "C:\Users\Owner\AppData\Roaming\PB5.42_x64\Templates.prefs" /A "C:\Users\Owner\AppData\Roaming\PB5.42_x64\Tools.prefs" /NOEXT
32bit
"D:\Program Files (x86)\PureBasic 5.42\PureBasic.exe" /P "C:\Users\Owner\AppData\Roaming\PB5.42_x86\PureBasic.prefs" /T "C:\Users\Owner\AppData\Roaming\PB5.42_x86\Templates.prefs" /A "C:\Users\Owner\AppData\Roaming\PB5.42_x86\Tools.prefs" /NOEXT
Then I modify a PureBasic.REG file and merge into the registry to reflect latest version.
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
"D:\\Program Files (x86)\\PureBasic 5.42\\PureBasic.exe"="PureBasic (x86) - 5.42"
"D:\\Program Files\\PureBasic 5.42\\PureBasic.exe"="PureBasic (x64) - 5.42"
[HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
"D:\\Program Files (x86)\\PureBasic 5.42\\PureBasic.exe"="PureBasic (x86) - 5.42"
"D:\\Program Files\\PureBasic 5.42\\PureBasic.exe"="PureBasic (x64) - 5.42"
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open\command]
@="\"D:\\Program Files (x86)\\PureBasic 5.42\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\PureBasic.prefs\"/T \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\Templates.prefs\" /A \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\Tools.prefs\" /NOEXT"
[HKEY_CURRENT_USER\Software\Classes\Applications\PureBasic.exe\shell\open\command]
@="\"D:\\Program Files (x86)\\PureBasic 5.42\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\PureBasic.prefs\"/T \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\Templates.prefs\" /A \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x86\\Tools.prefs\" /NOEXT"
[HKEY_CLASSES_ROOT\PureBasic.exe\shell\open\command]
@="\"D:\\Program Files\\PureBasic 5.42\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\PureBasic.prefs\"/T \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\Templates.prefs\" /A \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\Tools.prefs\" /NOEXT"
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 5:55 pm
by Thunder93
Also for the PB entry in Windows ShellNew list, to create new PB source file.
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pbi\ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT\pbi_auto_file]
@="PureBasic Source"
[HKEY_CLASSES_ROOT\pbi_auto_file\shell]
[HKEY_CLASSES_ROOT\pbi_auto_file\shell\open]
[HKEY_CLASSES_ROOT\pbi_auto_file\shell\open\command]
@="\"D:\\Program Files\\PureBasic 5.42\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\PureBasic.prefs\"/T \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\Templates.prefs\" /A \"C:\\Users\\Owner\\AppData\\Roaming\\PB5.42_x64\\Tools.prefs\" /NOEXT"
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:02 pm
by Thunder93
I also use a customized version of lexvictory IDE Tool to compile 32bit code from 64bit IDE Toolbar and vice versa.
Compile x86 programs from x64 IDE (windows only)
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:09 pm
by NoahPhense
I like those shortcuts and the 2 reg hacks, I will implement them now.
Thanks for those -- they are good ideas.
- np
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:14 pm
by Thunder93
Your welcome.

Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:24 pm
by Thunder93
For 32bit Shortcut Icons, I use
IdeasVacuum Icon file
http://www.purebasic.fr/english/viewtop ... =Blue+icon ;p
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:27 pm
by NoahPhense
Ok, now you just put a cherry atop my ice-cream!
I owe you a beer.

Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 6:41 pm
by Thunder93
lol.
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 7:48 pm
by NoahPhense
Ok, I'm about to pull the trigger on the reg files. Quite a bit of editing, as I use different locations, etc.. I already created and tested the shortcuts, that went well.
For my two shortcuts:
Code: Select all
64bit
"C:\pb\542lts\64\PureBasic.exe" /P "C:\Users\noah\AppData\Roaming\pb\542lts\64\PureBasic.prefs" /T "C:\Users\noah\AppData\Roaming\pb\542lts\64\Templates.prefs" /A "C:\Users\noah\AppData\Roaming\pb\542lts\64\Tools.prefs" /NOEXT
32bit
"C:\pb\542lts\32\PureBasic.exe" /P "C:\Users\noah\AppData\Roaming\pb\542lts\32\PureBasic.prefs" /T "C:\Users\noah\AppData\Roaming\pb\542lts\32\Templates.prefs" /A "C:\Users\noah\AppData\Roaming\pb\542lts\32\Tools.prefs" /NOEXT
For the reg imports:
FILE 1
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
"C:\\pb\\542lts\\32\\PureBasic.exe"="PureBasic (x86) - 5.42"
"C:\\pb\\542lts\\64\\PureBasic.exe"="PureBasic (x64) - 5.42"
[HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
"C:\\pb\\542lts\\32\\PureBasic.exe"="PureBasic (x86) - 5.42"
"C:\\pb\\542lts\\64\\PureBasic.exe"="PureBasic (x64) - 5.42"
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open\command]
@="\"C:\\pb\\542lts\\32\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\PureBasic.prefs\"/T \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\Templates.prefs\" /A \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\Tools.prefs\" /NOEXT"
[HKEY_CURRENT_USER\Software\Classes\Applications\PureBasic.exe\shell\open\command]
@="\"C:\\pb\\542lts\\32\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\PureBasic.prefs\"/T \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\Templates.prefs\" /A \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\32\\Tools.prefs\" /NOEXT"
[HKEY_CLASSES_ROOT\PureBasic.exe\shell\open\command]
@="\"C:\\pb\\542lts\\64\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\PureBasic.prefs\"/T \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\Templates.prefs\" /A \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\Tools.prefs\" /NOEXT"
FILE 2
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\PureBasic.exe]
@="PureBasic Include"
[HKEY_CLASSES_ROOT\.pbi\ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT\pbi_auto_file]
@="PureBasic Source"
[HKEY_CLASSES_ROOT\pbi_auto_file\shell]
[HKEY_CLASSES_ROOT\pbi_auto_file\shell\open]
[HKEY_CLASSES_ROOT\pbi_auto_file\shell\open\command]
@="\"C:\\pb\\542lts\\64\\PureBasic.exe\" \"%1\" /P \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\PureBasic.prefs\"/T \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\Templates.prefs\" /A \"C:\\Users\\noah\\AppData\\Roaming\\pb\\542lts\\64\\Tools.prefs\" /NOEXT"
I'll be merging them in shortly.
Give you a few minutes to find an error. lol
- np
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 8:02 pm
by Thunder93
Looks right to me.
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 8:22 pm
by NoahPhense
Thunder93 wrote:Looks right to me.
I did notice after completing this, while I'm getting my configs tweaked. That 2 files, one important, one not important.
(keeping in mind, that I did not create this directory)
C:\Users\noah\AppData\Roaming\PureBasic
History.db
UpdateCheck.xml
The xml is not important, because it contains all versions of pb and are checked against the pb executable at runtime to check version.
But the History.db can and has been important to me in some of my workflow.
I haven't done anything about it yet, but I do know that when portable is used, each pb install gets its own history.db file and updatecheck.xml..
Just throwing stuff around.
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 8:32 pm
by Thunder93
You could try to add the following to your shortcuts, but I have a feeling it might not support the entire length with the existing field information.
/H "C:\Users\noah\AppData\Roaming\pb\542lts\64\History.db"
I never minded my History.db being shared between 32-bit and 64bit versions.
Re: 32bit or 64bit for compatibility?
Posted: Mon Jul 18, 2016 8:39 pm
by NoahPhense
Thunder93 wrote:You could try to add the following to your shortcuts, but I have a feeling it might not support the entire length with the existing field information.
/H "C:\Users\noah\AppData\Roaming\pb\542lts\64\History.db"
I never minded my History.db being shared between 32-bit and 64bit versions.
Yeah, me neither. Not a problem at all.
- np