USB driver & Sample code comiplation on VC++

Hi ,

I am new to Device Driver .
Please let me know where can I get the information related to USB device Driver.

Please tell me can I compile/build sample source code from win ddk on VC++ 2006 or VC++ 2007.

Thanks

Amit

You can’t build a reputation on what you are going to do.
Henry Ford


IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Amit,

On the question of compilation, you should only use the compiler from
the DDK/WDK. If you want to use the GUI environment from VC get DDKBUILD
from OSR or http://www.hollistech.com/. For more information on the build
environment you might read
http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.

As a newbie consider taking a class on driver writing, Windows drivers
have a complex rich enviroment, OSR and others offer excellent courses.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“Amit Shahi” wrote in message
news:xxxxx@ntdev…
Hi ,

I am new to Device Driver .
Please let me know where can I get the information related to USB device
Driver.

Please tell me can I compile/build sample source code from win ddk on VC++
2006 or VC++ 2007.

Thanks

Amit

You can’t build a reputation on what you are going to do.
Henry Ford


______________________________________________
IndiaInfo Mail - the free e-mail service with a difference!
www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail
storage, POP3, e-mail forwarding, and ads-free mailboxes!

Hi Amit,

This works for me in VS2005.

get the latest DDKBUILD from OSR.
copy it into the sample folder with all the source code

create a makefile project in your IDE and point the build directory to that
folder where you placed ur DDKBUILD.

build commad ddkbuild -WXP free . ( or checked )

click ok.

hit F7.

done deal.

Best wishes,
Kelvin

On 4/18/07, Don Burn wrote:
>
> Amit,
>
> On the question of compilation, you should only use the compiler from
> the DDK/WDK. If you want to use the GUI environment from VC get DDKBUILD
> from OSR or http://www.hollistech.com/. For more information on the
> build
> environment you might read
> http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
>
> As a newbie consider taking a class on driver writing, Windows drivers
> have a complex rich enviroment, OSR and others offer excellent courses.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> “Amit Shahi” wrote in message
> news:xxxxx@ntdev…
> Hi ,
>
> I am new to Device Driver .
> Please let me know where can I get the information related to USB device
> Driver.
>
> Please tell me can I compile/build sample source code from win ddk on VC++
> 2006 or VC++ 2007.
>
> Thanks
>
> Amit
>
> You can’t build a reputation on what you are going to do.
> Henry Ford
>
>
> –
> ______________________________________________
> IndiaInfo Mail - the free e-mail service with a difference!
> www.indiainfo.com
> Check out our value-added Premium features, such as an extra 20MB for mail
> storage, POP3, e-mail forwarding, and ads-free mailboxes!
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hi Kelvin & Don ,

Thanks for your reply .

I download the DDKBuild.cmd from http://www.hollistech.com/
& copied it with the source code for USB sample application which I am trying to compile with VC 2005 .

I follow the steps given in www.hollistech.com , Created a make Project & set the command line option.

while I am trying to build solution it gives the error

error PRJ0019: a tool return error code from sample(sample is my SLN name).

I searched on google but not able to remove the probllem.

Please help me to get rid of the the problem .

Thanks

Amit Shahi

----- Original Message -----
From: “kelvin lim”
> To: “Windows System Software Devs Interest List”
> Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> Date: Thu, 19 Apr 2007 08:28:27 +0800
>
>
> Hi Amit,
>
> This works for me in VS2005.
>
> get the latest DDKBUILD from OSR.
> copy it into the sample folder with all the source code
>
> create a makefile project in your IDE and point the build directory to that
> folder where you placed ur DDKBUILD.
>
> build commad ddkbuild -WXP free . ( or checked )
>
> click ok.
>
> hit F7.
>
> done deal.
>
> Best wishes,
> Kelvin
>
>
> On 4/18/07, Don Burn wrote:
> >
> > Amit,
> >
> > On the question of compilation, you should only use the compiler from
> > the DDK/WDK. If you want to use the GUI environment from VC get DDKBUILD
> > from OSR or http://www.hollistech.com/. For more information on the
> > build
> > environment you might read
> > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> >
> > As a newbie consider taking a class on driver writing, Windows drivers
> > have a complex rich enviroment, OSR and others offer excellent courses.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > Website: http://www.windrvr.com
> > Blog: http://msmvps.com/blogs/WinDrvr
> > Remove StopSpam to reply
> >
> > “Amit Shahi” wrote in message
> > news:xxxxx@ntdev…
> > Hi ,
> >
> > I am new to Device Driver .
> > Please let me know where can I get the information related to USB device
> > Driver.
> >
> > Please tell me can I compile/build sample source code from win ddk on VC++
> > 2006 or VC++ 2007.
> >
> > Thanks
> >
> > Amit
> >
> > You can’t build a reputation on what you are going to do.
> > Henry Ford
> >
> >
> > –
> >
> > IndiaInfo Mail - the free e-mail service with a difference!
> > www.indiainfo.com
> > Check out our value-added Premium features, such as an extra 20MB for mail
> > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

>



IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

It looks like the system could not find ddkbuild.bat in the PATH. Make
sure you can run the ddkbuild.bat from command line. You may need to
set the path in PATH environment variable.

On 4/19/07, Amit Shahi wrote:
> Hi Kelvin & Don ,
>
> Thanks for your reply .
>
> I download the DDKBuild.cmd from http://www.hollistech.com/
> & copied it with the source code for USB sample application which I am trying to compile with VC 2005 .
>
> I follow the steps given in www.hollistech.com , Created a make Project & set the command line option.
>
> while I am trying to build solution it gives the error
>
> error PRJ0019: a tool return error code from sample(sample is my SLN name).
>
> I searched on google but not able to remove the probllem.
>
> Please help me to get rid of the the problem .
>
> Thanks
>
> Amit Shahi
>
>
> > ----- Original Message -----
> > From: “kelvin lim”
> > To: “Windows System Software Devs Interest List”
> > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > Date: Thu, 19 Apr 2007 08:28:27 +0800
> >
> >
> > Hi Amit,
> >
> > This works for me in VS2005.
> >
> > get the latest DDKBUILD from OSR.
> > copy it into the sample folder with all the source code
> >
> > create a makefile project in your IDE and point the build directory to that
> > folder where you placed ur DDKBUILD.
> >
> > build commad ddkbuild -WXP free . ( or checked )
> >
> > click ok.
> >
> > hit F7.
> >
> > done deal.
> >
> > Best wishes,
> > Kelvin
> >
> >
> > On 4/18/07, Don Burn wrote:
> > >
> > > Amit,
> > >
> > > On the question of compilation, you should only use the compiler from
> > > the DDK/WDK. If you want to use the GUI environment from VC get DDKBUILD
> > > from OSR or http://www.hollistech.com/. For more information on the
> > > build
> > > environment you might read
> > > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> > >
> > > As a newbie consider taking a class on driver writing, Windows drivers
> > > have a complex rich enviroment, OSR and others offer excellent courses.
> > >
> > >
> > > –
> > > Don Burn (MVP, Windows DDK)
> > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > > Website: http://www.windrvr.com
> > > Blog: http://msmvps.com/blogs/WinDrvr
> > > Remove StopSpam to reply
> > >
> > > “Amit Shahi” wrote in message
> > > news:xxxxx@ntdev…
> > > Hi ,
> > >
> > > I am new to Device Driver .
> > > Please let me know where can I get the information related to USB device
> > > Driver.
> > >
> > > Please tell me can I compile/build sample source code from win ddk on VC++
> > > 2006 or VC++ 2007.
> > >
> > > Thanks
> > >
> > > Amit
> > >
> > > You can’t build a reputation on what you are going to do.
> > > Henry Ford
> > >
> > >
> > > –
> > >
> > > IndiaInfo Mail - the free e-mail service with a difference!
> > > www.indiainfo.com
> > > Check out our value-added Premium features, such as an extra 20MB for mail
> > > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > To unsubscribe, visit the List Server section of OSR Online at
> > > http://www.osronline.com/page.cfm?name=ListServer
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
> >
>
>
>
>
>
> –
>

> IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
> Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

  1. Copy the contents of the output window from visual studio and post them
    here.

  2. Run the ddkbuild command line you are using in your project from a shell
    in the correct directory and see what it does there. If it works from the
    command shell then you have set up your project incorrectly.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-283982-
xxxxx@lists.osr.com] On Behalf Of Amit Shahi
Sent: Thursday, April 19, 2007 12:57 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++

Hi Kelvin & Don ,

Thanks for your reply .

I download the DDKBuild.cmd from http://www.hollistech.com/
& copied it with the source code for USB sample application which I am
trying to compile with VC 2005 .

I follow the steps given in www.hollistech.com , Created a make Project
& set the command line option.

while I am trying to build solution it gives the error

error PRJ0019: a tool return error code from sample(sample is my SLN
name).

I searched on google but not able to remove the probllem.

Please help me to get rid of the the problem .

Thanks

Amit Shahi

> ----- Original Message -----
> From: “kelvin lim”
> > To: “Windows System Software Devs Interest List”
>
> > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > Date: Thu, 19 Apr 2007 08:28:27 +0800
> >
> >
> > Hi Amit,
> >
> > This works for me in VS2005.
> >
> > get the latest DDKBUILD from OSR.
> > copy it into the sample folder with all the source code
> >
> > create a makefile project in your IDE and point the build directory
> to that
> > folder where you placed ur DDKBUILD.
> >
> > build commad ddkbuild -WXP free . ( or checked )
> >
> > click ok.
> >
> > hit F7.
> >
> > done deal.
> >
> > Best wishes,
> > Kelvin
> >
> >
> > On 4/18/07, Don Burn wrote:
> > >
> > > Amit,
> > >
> > > On the question of compilation, you should only use the compiler
> from
> > > the DDK/WDK. If you want to use the GUI environment from VC get
> DDKBUILD
> > > from OSR or http://www.hollistech.com/. For more information on
> the
> > > build
> > > environment you might read
> > > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> > >
> > > As a newbie consider taking a class on driver writing, Windows
> drivers
> > > have a complex rich enviroment, OSR and others offer excellent
> courses.
> > >
> > >
> > > –
> > > Don Burn (MVP, Windows DDK)
> > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > > Website: http://www.windrvr.com
> > > Blog: http://msmvps.com/blogs/WinDrvr
> > > Remove StopSpam to reply
> > >
> > > “Amit Shahi” wrote in message
> > > news:xxxxx@ntdev…
> > > Hi ,
> > >
> > > I am new to Device Driver .
> > > Please let me know where can I get the information related to USB
> device
> > > Driver.
> > >
> > > Please tell me can I compile/build sample source code from win ddk
> on VC++
> > > 2006 or VC++ 2007.
> > >
> > > Thanks
> > >
> > > Amit
> > >
> > > You can’t build a reputation on what you are going to do.
> > > Henry Ford
> > >
> > >
> > > –
> > >
> > > IndiaInfo Mail - the free e-mail service with a difference!
> > > www.indiainfo.com
> > > Check out our value-added Premium features, such as an extra 20MB
> for mail
> > > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > To unsubscribe, visit the List Server section of OSR Online at
> > > http://www.osronline.com/page.cfm?name=ListServer
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
> >
>
>
>
>
>
> –
>

> IndiaInfo Mail - the free e-mail service with a difference!
> www.indiainfo.com
> Check out our value-added Premium features, such as an extra 20MB for
> mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

Hello ,

In my test project I select the

View->Properties Page->Configuration Properties -> NMake

Here I put the value in Build Command Line Option & ReBuildCommandLine Option as described in the site.

After addition of my source/header file for Bulk USB & Compilation I am getting following error

TestDriver error PRJ0019: A tool returned an error code from “Performing Makefile project actions”

When I remove the DDKBuild exe from my project folder it is giving the same error.So I think that this error is because my application is not finding the DDKBuild path.

Please let me know How can I configure the project to find the DDKBuild exe ?

Thanks
Amit Shahi

----- Original Message -----
From: “Mark Roddy”
> To: “Windows System Software Devs Interest List”
> Subject: RE: [ntdev] USB driver & Sample code comiplation on VC++
> Date: Thu, 19 Apr 2007 06:17:13 -0400
>
>
> 1) Copy the contents of the output window from visual studio and post them
> here.
>
> 2) Run the ddkbuild command line you are using in your project from a shell
> in the correct directory and see what it does there. If it works from the
> command shell then you have set up your project incorrectly.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com [mailto:bounce-283982-
> > xxxxx@lists.osr.com] On Behalf Of Amit Shahi
> > Sent: Thursday, April 19, 2007 12:57 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> >
> > Hi Kelvin & Don ,
> >
> > Thanks for your reply .
> >
> > I download the DDKBuild.cmd from http://www.hollistech.com/
> > & copied it with the source code for USB sample application which I am
> > trying to compile with VC 2005 .
> >
> > I follow the steps given in www.hollistech.com , Created a make Project
> > & set the command line option.
> >
> > while I am trying to build solution it gives the error
> >
> > error PRJ0019: a tool return error code from sample(sample is my SLN
> > name).
> >
> > I searched on google but not able to remove the probllem.
> >
> > Please help me to get rid of the the problem .
> >
> > Thanks
> >
> > Amit Shahi
> >
> >
> > > ----- Original Message -----
> > > From: “kelvin lim”
> > > To: “Windows System Software Devs Interest List”
> >
> > > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > > Date: Thu, 19 Apr 2007 08:28:27 +0800
> > >
> > >
> > > Hi Amit,
> > >
> > > This works for me in VS2005.
> > >
> > > get the latest DDKBUILD from OSR.
> > > copy it into the sample folder with all the source code
> > >
> > > create a makefile project in your IDE and point the build directory
> > to that
> > > folder where you placed ur DDKBUILD.
> > >
> > > build commad ddkbuild -WXP free . ( or checked )
> > >
> > > click ok.
> > >
> > > hit F7.
> > >
> > > done deal.
> > >
> > > Best wishes,
> > > Kelvin
> > >
> > >
> > > On 4/18/07, Don Burn wrote:
> > > >
> > > > Amit,
> > > >
> > > > On the question of compilation, you should only use the compiler
> > from
> > > > the DDK/WDK. If you want to use the GUI environment from VC get
> > DDKBUILD
> > > > from OSR or http://www.hollistech.com/. For more information on
> > the
> > > > build
> > > > environment you might read
> > > > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> > > >
> > > > As a newbie consider taking a class on driver writing, Windows
> > drivers
> > > > have a complex rich enviroment, OSR and others offer excellent
> > courses.
> > > >
> > > >
> > > > –
> > > > Don Burn (MVP, Windows DDK)
> > > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > > > Website: http://www.windrvr.com
> > > > Blog: http://msmvps.com/blogs/WinDrvr
> > > > Remove StopSpam to reply
> > > >
> > > > “Amit Shahi” wrote in message
> > > > news:xxxxx@ntdev…
> > > > Hi ,
> > > >
> > > > I am new to Device Driver .
> > > > Please let me know where can I get the information related to USB
> > device
> > > > Driver.
> > > >
> > > > Please tell me can I compile/build sample source code from win ddk
> > on VC++
> > > > 2006 or VC++ 2007.
> > > >
> > > > Thanks
> > > >
> > > > Amit
> > > >
> > > > You can’t build a reputation on what you are going to do.
> > > > Henry Ford
> > > >
> > > >
> > > > –
> > > >
> > > > IndiaInfo Mail - the free e-mail service with a difference!
> > > > www.indiainfo.com
> > > > Check out our value-added Premium features, such as an extra 20MB
> > for mail
> > > > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > To unsubscribe, visit the List Server section of OSR Online at
> > > > http://www.osronline.com/page.cfm?name=ListServer
> > > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > To unsubscribe, visit the List Server section of OSR Online at
> > > http://www.osronline.com/page.cfm?name=ListServer
> >
> > >
> >
> >
> >
> >
> >
> > –
> >

> > IndiaInfo Mail - the free e-mail service with a difference!
> > www.indiainfo.com
> > Check out our value-added Premium features, such as an extra 20MB for
> > mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

>

Amit Rajkumar Shahi
email xxxxx@indiainfo.com

You can’t build a reputation on what you are going to do.
Henry Ford


______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Ddkbuild has to be in a path that visual studio knows about, or you have to
use the fully qualified path to ddkbuild.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-284342-
xxxxx@lists.osr.com] On Behalf Of Amit Shahi
Sent: Monday, April 23, 2007 7:39 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB driver & Sample code comiplation on VC++

Hello ,

In my test project I select the

View->Properties Page->Configuration Properties -> NMake

Here I put the value in Build Command Line Option & ReBuildCommandLine
Option as described in the site.

After addition of my source/header file for Bulk USB & Compilation I am
getting following error

TestDriver error PRJ0019: A tool returned an error code from
“Performing Makefile project actions”

When I remove the DDKBuild exe from my project folder it is giving the
same error.So I think that this error is because my application is not
finding the DDKBuild path.

Please let me know How can I configure the project to find the DDKBuild
exe ?

Thanks
Amit Shahi

> ----- Original Message -----
> From: “Mark Roddy”
> > To: “Windows System Software Devs Interest List”
>
> > Subject: RE: [ntdev] USB driver & Sample code comiplation on VC++
> > Date: Thu, 19 Apr 2007 06:17:13 -0400
> >
> >
> > 1) Copy the contents of the output window from visual studio and post
> them
> > here.
> >
> > 2) Run the ddkbuild command line you are using in your project from a
> shell
> > in the correct directory and see what it does there. If it works from
> the
> > command shell then you have set up your project incorrectly.
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com [mailto:bounce-283982-
> > > xxxxx@lists.osr.com] On Behalf Of Amit Shahi
> > > Sent: Thursday, April 19, 2007 12:57 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > >
> > > Hi Kelvin & Don ,
> > >
> > > Thanks for your reply .
> > >
> > > I download the DDKBuild.cmd from http://www.hollistech.com/
> > > & copied it with the source code for USB sample application which I
> am
> > > trying to compile with VC 2005 .
> > >
> > > I follow the steps given in www.hollistech.com , Created a make
> Project
> > > & set the command line option.
> > >
> > > while I am trying to build solution it gives the error
> > >
> > > error PRJ0019: a tool return error code from sample(sample is my
> SLN
> > > name).
> > >
> > > I searched on google but not able to remove the probllem.
> > >
> > > Please help me to get rid of the the problem .
> > >
> > > Thanks
> > >
> > > Amit Shahi
> > >
> > >
> > > > ----- Original Message -----
> > > > From: “kelvin lim”
> > > > To: “Windows System Software Devs Interest List”
> > >
> > > > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > > > Date: Thu, 19 Apr 2007 08:28:27 +0800
> > > >
> > > >
> > > > Hi Amit,
> > > >
> > > > This works for me in VS2005.
> > > >
> > > > get the latest DDKBUILD from OSR.
> > > > copy it into the sample folder with all the source code
> > > >
> > > > create a makefile project in your IDE and point the build
> directory
> > > to that
> > > > folder where you placed ur DDKBUILD.
> > > >
> > > > build commad ddkbuild -WXP free . ( or checked )
> > > >
> > > > click ok.
> > > >
> > > > hit F7.
> > > >
> > > > done deal.
> > > >
> > > > Best wishes,
> > > > Kelvin
> > > >
> > > >
> > > > On 4/18/07, Don Burn wrote:
> > > > >
> > > > > Amit,
> > > > >
> > > > > On the question of compilation, you should only use the
> compiler
> > > from
> > > > > the DDK/WDK. If you want to use the GUI environment from VC
> get
> > > DDKBUILD
> > > > > from OSR or http://www.hollistech.com/. For more information
> on
> > > the
> > > > > build
> > > > > environment you might read
> > > > >
> http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> > > > >
> > > > > As a newbie consider taking a class on driver writing,
> Windows
> > > drivers
> > > > > have a complex rich enviroment, OSR and others offer excellent
> > > courses.
> > > > >
> > > > >
> > > > > –
> > > > > Don Burn (MVP, Windows DDK)
> > > > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > > > > Website: http://www.windrvr.com
> > > > > Blog: http://msmvps.com/blogs/WinDrvr
> > > > > Remove StopSpam to reply
> > > > >
> > > > > “Amit Shahi” wrote in message
> > > > > news:xxxxx@ntdev…
> > > > > Hi ,
> > > > >
> > > > > I am new to Device Driver .
> > > > > Please let me know where can I get the information related to
> USB
> > > device
> > > > > Driver.
> > > > >
> > > > > Please tell me can I compile/build sample source code from win
> ddk
> > > on VC++
> > > > > 2006 or VC++ 2007.
> > > > >
> > > > > Thanks
> > > > >
> > > > > Amit
> > > > >
> > > > > You can’t build a reputation on what you are going to do.
> > > > > Henry Ford
> > > > >
> > > > >
> > > > > –
> > > > >
> > > > > IndiaInfo Mail - the free e-mail service with a difference!
> > > > > www.indiainfo.com
> > > > > Check out our value-added Premium features, such as an extra
> 20MB
> > > for mail
> > > > > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > Questions? First check the Kernel Driver FAQ at
> > > > > http://www.osronline.com/article.cfm?id=256
> > > > >
> > > > > To unsubscribe, visit the List Server section of OSR Online at
> > > > > http://www.osronline.com/page.cfm?name=ListServer
> > > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > To unsubscribe, visit the List Server section of OSR Online at
> > > > http://www.osronline.com/page.cfm?name=ListServer
> > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > > –
> > >

> > > IndiaInfo Mail - the free e-mail service with a difference!
> > > www.indiainfo.com
> > > Check out our value-added Premium features, such as an extra 20MB
> for
> > > mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > To unsubscribe, visit the List Server section of OSR Online at
> > > http://www.osronline.com/page.cfm?name=ListServer
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
> >
>
>
>
> Amit Rajkumar Shahi
> email xxxxx@indiainfo.com
>
>
> You can’t build a reputation on what you are going to do.
> Henry Ford
>
>
> –
> ______________________________________________
> IndiaInfo Mail - the free e-mail service with a difference!
> www.indiainfo.com
> Check out our value-added Premium features, such as an extra 20MB for
> mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

I find it useful and convenient to define an environment variable %DDKBUILD%
to evaluate to the full path of DDKBUILD.BAT and use (variously) %DDKBUILD%
or $(DDKBUILD) (depending on the IDE) to specify the command.

Since DDKBUILD itself nominally requires environment variables to locate the
various kits, this is not a particularly onerous additional bit of setup.
Placing it in the path, of course, works too.

Good luck,
Dave Cattley
Consulting Engineer
Systems Software Development

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Amit Shahi
Sent: Monday, April 23, 2007 7:39 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB driver & Sample code comiplation on VC++

Hello ,

In my test project I select the

View->Properties Page->Configuration Properties -> NMake

Here I put the value in Build Command Line Option & ReBuildCommandLine
Option as described in the site.

After addition of my source/header file for Bulk USB & Compilation I am
getting following error

TestDriver error PRJ0019: A tool returned an error code from “Performing
Makefile project actions”

When I remove the DDKBuild exe from my project folder it is giving the same
error.So I think that this error is because my application is not finding
the DDKBuild path.

Please let me know How can I configure the project to find the DDKBuild exe
?

Thanks
Amit Shahi

----- Original Message -----
From: “Mark Roddy”
> To: “Windows System Software Devs Interest List”
> Subject: RE: [ntdev] USB driver & Sample code comiplation on VC++
> Date: Thu, 19 Apr 2007 06:17:13 -0400
>
>
> 1) Copy the contents of the output window from visual studio and post
> them here.
>
> 2) Run the ddkbuild command line you are using in your project from a
> shell in the correct directory and see what it does there. If it works
> from the command shell then you have set up your project incorrectly.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com [mailto:bounce-283982-
> > xxxxx@lists.osr.com] On Behalf Of Amit Shahi
> > Sent: Thursday, April 19, 2007 12:57 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> >
> > Hi Kelvin & Don ,
> >
> > Thanks for your reply .
> >
> > I download the DDKBuild.cmd from http://www.hollistech.com/ & copied
> > it with the source code for USB sample application which I am trying
> > to compile with VC 2005 .
> >
> > I follow the steps given in www.hollistech.com , Created a make
> > Project & set the command line option.
> >
> > while I am trying to build solution it gives the error
> >
> > error PRJ0019: a tool return error code from sample(sample is my SLN
> > name).
> >
> > I searched on google but not able to remove the probllem.
> >
> > Please help me to get rid of the the problem .
> >
> > Thanks
> >
> > Amit Shahi
> >
> >
> > > ----- Original Message -----
> > > From: “kelvin lim”
> > > To: “Windows System Software Devs Interest List”
> >
> > > Subject: Re: [ntdev] USB driver & Sample code comiplation on VC++
> > > Date: Thu, 19 Apr 2007 08:28:27 +0800
> > >
> > >
> > > Hi Amit,
> > >
> > > This works for me in VS2005.
> > >
> > > get the latest DDKBUILD from OSR.
> > > copy it into the sample folder with all the source code
> > >
> > > create a makefile project in your IDE and point the build
> > > directory
> > to that
> > > folder where you placed ur DDKBUILD.
> > >
> > > build commad ddkbuild -WXP free . ( or checked )
> > >
> > > click ok.
> > >
> > > hit F7.
> > >
> > > done deal.
> > >
> > > Best wishes,
> > > Kelvin
> > >
> > >
> > > On 4/18/07, Don Burn wrote:
> > > >
> > > > Amit,
> > > >
> > > > On the question of compilation, you should only use the
> > > > compiler
> > from
> > > > the DDK/WDK. If you want to use the GUI environment from VC get
> > DDKBUILD
> > > > from OSR or http://www.hollistech.com/. For more information on
> > the
> > > > build
> > > > environment you might read
> > > > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx.
> > > >
> > > > As a newbie consider taking a class on driver writing,
> > > > Windows
> > drivers
> > > > have a complex rich enviroment, OSR and others offer excellent
> > courses.
> > > >
> > > >
> > > > –
> > > > Don Burn (MVP, Windows DDK)
> > > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > > > Website: http://www.windrvr.com
> > > > Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply
> > > >
> > > > “Amit Shahi” wrote in message
> > > > news:xxxxx@ntdev…
> > > > Hi ,
> > > >
> > > > I am new to Device Driver .
> > > > Please let me know where can I get the information related to
> > > > USB
> > device
> > > > Driver.
> > > >
> > > > Please tell me can I compile/build sample source code from win
> > > > ddk
> > on VC++
> > > > 2006 or VC++ 2007.
> > > >
> > > > Thanks
> > > >
> > > > Amit
> > > >
> > > > You can’t build a reputation on what you are going to do.
> > > > Henry Ford
> > > >
> > > >
> > > > –
> > > >
> > > > IndiaInfo Mail - the free e-mail service with a difference!
> > > > www.indiainfo.com
> > > > Check out our value-added Premium features, such as an extra
> > > > 20MB
> > for mail
> > > > storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > To unsubscribe, visit the List Server section of OSR Online at
> > > > http://www.osronline.com/page.cfm?name=ListServer
> > > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > To unsubscribe, visit the List Server section of OSR Online at
> > > http://www.osronline.com/page.cfm?name=ListServer
> >
> > >
> >
> >
> >
> >
> >
> > –
> >

> > IndiaInfo Mail - the free e-mail service with a difference!
> > www.indiainfo.com
> > Check out our value-added Premium features, such as an extra 20MB
> > for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

>

Amit Rajkumar Shahi
email xxxxx@indiainfo.com

You can’t build a reputation on what you are going to do.
Henry Ford


______________________________________________
IndiaInfo Mail - the free e-mail service with a difference!
www.indiainfo.com Check out our value-added Premium features, such as an
extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free
mailboxes!


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer