Tutorial :not able to include dbt.h win32 programming


I have written a win32 program for detecting USB port device insert and removal. For this i have used dbt.h header file provided by system. But still my program fails to link to that and hence my program dont compile. I have Windows DDK installed on my system and i can find 4 diffrent dbt.h header files.

which one is correct one to connect and how to connect to it.

thanks in advance Vinayaka Karjigi


You need to include the header file but you also need to link the dll that contains the actual code.


How are you including this in your project? It is possible that you haven't got a search path set for the directory that the file resides in.

As there are multiple versions. I would copy the one that I want into the project directory and include using the quote format for local files rather than the chevrons for system files.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »