Page 1 of 2

Driver on PureBasic

Posted: Mon Mar 23, 2009 10:34 am
by User_Russian
Can I do it? Really? How?

Re: Driver on PureBasic

Posted: Mon Mar 23, 2009 10:40 am
by kryptonn
For mouse?

Posted: Mon Mar 23, 2009 10:48 am
by User_Russian
For USB

Posted: Mon Mar 23, 2009 11:45 am
by PB
:roll:

Posted: Mon Mar 23, 2009 12:58 pm
by kryptonn
User_Russian wrote:For USB
For flash?

Image

Posted: Mon Mar 23, 2009 1:08 pm
by Kaeru Gaman

Posted: Mon Mar 23, 2009 1:34 pm
by User_Russian
For flash?
No.
For my device on microcontroller.

Posted: Mon Mar 23, 2009 1:52 pm
by kryptonn
Driver for thing which not see nobody?
Nowhere...

Posted: Mon Mar 23, 2009 1:57 pm
by User_Russian
But in general on PureBasic possible to write the driver?

Posted: Mon Mar 23, 2009 2:29 pm
by kryptonn
You want to compile file Driver.SYS?

Posted: Mon Mar 23, 2009 2:40 pm
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.

Posted: Mon Mar 23, 2009 3:01 pm
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. :!:

Posted: Mon Mar 23, 2009 3:04 pm
by srod
Fluid Byte wrote:-1

He should learn to post first. :!:
+1 about his posting! :)

Posted: Mon Mar 23, 2009 3:29 pm
by User_Russian
kryptonn wrote:You want to compile file Driver.SYS?
Yes

Posted: Mon Mar 23, 2009 4:51 pm
by Kaeru Gaman
Driver.sys not possible with PB. you must use assembler or c.