Windows 8 machine Detect User.

Blitz3D Forums/Blitz3D Programming/Windows 8 machine Detect User.

Yue(Posted 2013) [#1]
You can somehow detect which OS is the user, so that if Windows 8, copy to the game directory ddraw.dll?


xlsior(Posted 2013) [#2]
Are you asking how to detect what operating system the user uses?

If so:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1978


(windows 8.1 has version number 6.3, that's not included in that code yet)


Yue(Posted 2013) [#3]
If that's my question, but I do not understand how I apply that code, what language is that?

Edit: Ok, bmx, i use bb


xlsior(Posted 2013) [#4]
Ok, forgot you used B3D.

Here --I tweaked one of the B3D code archive versions to include windows 7/8/8.1:
(scroll down to the bottom of the page for the updated version)

http://www.blitzbasic.com/codearcs/codearcs.php?code=922#comments


Yue(Posted 2013) [#5]
ok thanks, I regret not speak English, and I always step as an Egyptologist deciphering messages to translate into my mother tongue.

Thank you very much :)


Yue(Posted 2013) [#6]
Take this opportunity to ask you something.

As is known Blitz3D was upgraded to a new version and this broke the fastlibs I think more will not be updated for the new version of Blitz3D.

What I want is to create a directory containing the library game ddraw.dll and if windows 8, when starting the game for first time copy that file to the root folder of the game in order to correct the problem full screen in windows 8, you think the above is feasible in this case?, using version 1.106 + fastlibs + ddraw.dll

Well the question is that in XP that I strip dll errors, as I show here.
http://blitzbasic.com/Community/posts.php?topic=99477

Gretins


xlsior(Posted 2013) [#7]
You can ciopy a file from within blitz3D using the 'copyfile' command.

However: Be careful: by default, windows 8 has 'UAC' enabled. (User Access Control).
With UAC enabled, if you have your program installed in "c:\program files\myprogram" (or "c:\program files (x86)\myprogram" omn a 64-bit system) windows will NOT allow the program to copy/create any new files into its program folder after the initial installation has completed and the program actually runs itself...

anyway, I don't really know much about Blitz3D myself, so I can't really help you much further with that.


Yue(Posted 2013) [#8]
Thanks for the information, then the best thing would be to try with an installer to copy the dll at the time of installation, I'll see if inno setup is able to do that.

I appreciate the help. :)