32bit or 64bit for compatibility?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: 32bit or 64bit for compatibility?

Post 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.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post 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..
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post 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"
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post 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"
Last edited by Thunder93 on Mon Jul 18, 2016 9:24 pm, edited 1 time in total.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post 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)
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

I like those shortcuts and the 2 reg hacks, I will implement them now.

Thanks for those -- they are good ideas.

- np
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post by Thunder93 »

Your welcome. :)
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post by Thunder93 »

For 32bit Shortcut Icons, I use IdeasVacuum Icon file http://www.purebasic.fr/english/viewtop ... =Blue+icon ;p
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

Thunder93 wrote:For 32bit Shortcut Icons, I use IdeasVacuum Icon file http://www.purebasic.fr/english/viewtop ... =Blue+icon ;p
Ok, now you just put a cherry atop my ice-cream! :shock:

I owe you a beer. :!:
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post by Thunder93 »

lol.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post 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. 8)

Give you a few minutes to find an error. lol

- np
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post by Thunder93 »

Looks right to me.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post 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.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post 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.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post 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
Post Reply