Driver on PureBasic

Just starting out? Need help? Post your questions and find answers here.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Driver on PureBasic

Post by User_Russian »

Can I do it? Really? How?
User avatar
kryptonn
User
User
Posts: 47
Joined: Wed Apr 18, 2007 7:23 pm

Re: Driver on PureBasic

Post by kryptonn »

For mouse?
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Post by User_Russian »

For USB
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

:roll:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
kryptonn
User
User
Posts: 47
Joined: Wed Apr 18, 2007 7:23 pm

Post by kryptonn »

User_Russian wrote:For USB
For flash?

Image
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

oh... and have a nice day.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Post by User_Russian »

For flash?
No.
For my device on microcontroller.
User avatar
kryptonn
User
User
Posts: 47
Joined: Wed Apr 18, 2007 7:23 pm

Post by kryptonn »

Driver for thing which not see nobody?
Nowhere...
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Post by User_Russian »

But in general on PureBasic possible to write the driver?
User avatar
kryptonn
User
User
Posts: 47
Joined: Wed Apr 18, 2007 7:23 pm

Post by kryptonn »

You want to compile file Driver.SYS?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I am pretty sure that PB will not allow you to create such a program; at least not for a kernel mode driver. Just about all PB programs are tied to the underlying OS api's and thus sit way above the kernel.

Of course Vista allows for user-mode drivers which may suit your needs. Creating one of these requires that you create an in-process COM server, something which I am finding is really quite easy with Purebasic - at least it is once you've read a couple of COM related books! :wink:

The point, however, is that you will probably be better off looking at using C (or asm) for creating any kind of driver, be it a kernel-mode or one of the new user-mode drivers.
I may look like a mule, but I'm not a complete ass.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

srod wrote:The point, however, is that you will probably be better off looking at using C (or asm) for creating any kind of driver, be it a kernel-mode or one of the new user-mode drivers.
-1

He should learn to post first. :!:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Fluid Byte wrote:-1

He should learn to post first. :!:
+1 about his posting! :)
I may look like a mule, but I'm not a complete ass.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Post by User_Russian »

kryptonn wrote:You want to compile file Driver.SYS?
Yes
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Driver.sys not possible with PB. you must use assembler or c.
oh... and have a nice day.
Post Reply