User32.decls?

Blitz3D Forums/Blitz3D Programming/User32.decls?

Boiled Sweets(Posted 2004) [#1]
HI,

I'm sure somewhere I was that someone had created a User32.decls file that contained most of the Win32 API calls. Has any one got it?


@rtur(Posted 2004) [#2]
http://blitz.pp.ru/?mod=trashbin&action=download&id=19


Boiled Sweets(Posted 2004) [#3]
I now have FULL user32.decls and kernel32.decls files. If any one wants them let me know...


GfK(Posted 2004) [#4]
What's possible with them?

that russian website is all in russian, and I don't speak russian.


Boiled Sweets(Posted 2004) [#5]
Yeah that site was Russian - and I although I drank a bottle of vodka it still didn't make any sense... ;)

Are you asking what's possible with the user32.decls? Well a better question is "whats not possible?".

For example...

Do you want to know what the current desktop resolution is?
Do you want to close any running task from within Blitz?

Etc...


Boiled Sweets(Posted 2004) [#6]
Ok I have the user32.dll and the kernel32.dll decls but now I really need a FULL gdi32.dll decls file.

Anyone?


@rtur(Posted 2004) [#7]
http://blitz.pp.ru/?mod=trashbin&action=download&id=20

:)


Boiled Sweets(Posted 2004) [#8]
Eh???

Sorry but that site is in Russian. Do you have gdi32.decls?


Boiled Sweets(Posted 2004) [#9]
*BUMP*


Damien Sturdy(Posted 2004) [#10]
why the empty russian site? :(


Boiled Sweets(Posted 2004) [#11]
Exactly! I did try translating it and selecting all the links but the gdi32.decls is not there.

I have also searched the various topics here and not found a complete one just 10 lines or so.

Someone must have it...


Damien Sturdy(Posted 2004) [#12]
I need it too. im terrible with Decls >.<


@rtur(Posted 2004) [#13]
This is link to gdi32:
http://blitz.pp.ru/?mod=trashbin&action=download&id=20

but if it it does not work for u, try this,direct link to file:

http://blitz.pp.ru/trashbin/tbf20.rar


Boiled Sweets(Posted 2004) [#14]
COOL! Thanks...

I have posted user32.decls, kernel32.decls and gdi32.decls in the code archives for everyone else so that they are nice and easy to find...


_PJ_(Posted 2004) [#15]
Thanks Boiled. - Are there Instructions for a complete 'plank' or tutorials//examples?


Boiled Sweets(Posted 2004) [#16]
Err, no, maybe I'll knock one up though this stuff it not for beginners...


_PJ_(Posted 2004) [#17]

not for beginners...



uh oh!


myabe I'll know one up though



:D


Boiled Sweets(Posted 2004) [#18]
Sorry, the keyboard has been drinking. It was a pain in the arse trying to find the 3 decls files. The way I see it you don't need them unless you want to do something 'out of the box'. Each function call is going to be different from any example you might give. A better task to undertake (and no I'm not doing it) is to completely wrap all three libs so they are easy to use in Blitz... GO FOR IT MALICE!


Damien Sturdy(Posted 2004) [#19]
thats a sweet idea. Id start coding if i wasnt swamped with work when i was near a computer that runs blitz >.<


Picklesworth(Posted 2004) [#20]
What can I use gdi32.decls for?


Boiled Sweets(Posted 2004) [#21]
Take look through the list of functions. Basically these are the functions that Windows is using to draw itself. They extend the functionality of Blitz. This is what MicroSoft say...

"A graphics device interface (GDI) enables applications to use graphics and formatted text on both the video display and the printer. Microsoft® Windows®-based applications do not access the graphics hardware directly. Instead, GDI interacts with device drivers on behalf of applications. GDI can be used in all Windows-based applications."

For example I wanted to get the desktop colour depth, there is no way to do this in Blitz however GetDeviceCaps returns this plus other exciting stuff like version of the display driver, width in millimeters of the monitor (!!!!).
This is just one function in a list of approx 500 (including User32.dll and Kernel32.dll) that can do pretty much ANYTHING that you could EVER possibly imagine to do with Windows.

For a detailed breakdown of GetDeviceCaps see here...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_88s3.asp


Picklesworth(Posted 2004) [#22]
Cool :)


rolow(Posted 2007) [#23]
Thanks Boiled Sweets for all your hard work and sharing it with the rest of us.

After all, BlitzBasic3D is NOT dead!!! Blitz Research needs to continue development of this programming language.

Look for new products developed completely with Blitz3D along with excellent Blitz3D Tutorials at www.2cwp.com.


Subirenihil(Posted 2007) [#24]
After all, Blitz3D is NOT dead!!! Blitz Research needs to continue development of this programming language.
No, Blitz3D isn't dead, but this thread was. :)

Keep up the good work everybody and the encouragement!
(but don't forget to have a little fun!)