Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DeviceIOControl

Status
Not open for further replies.

elgohary

Programmer
Feb 16, 2005
8
0
0
US
I am using BCB6. I need to use the WIN32 API function DeviceIOControl() in order to communicate with a USB driver. I have included windows.h, winioctl.h, winbase.h(where it is declared), and dbt.h.

Here is my problem: When I build my project it get the following error.
[C++ Error] MyForm.cpp(48): E2268 Call to undefined function 'DeviceIOControl'

Any comments are much appreciated. Thank you.
 
Look at thread101-1051366.

James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
I don't think the problems are related. If my problem were to be with the dll then I would get a linker error. I get a compiler error. I think that it is having a problem finding the declaration, which is in winbase.h. Thanks for you comment.
 
Sometimes I want to kick myself in the pants...

The function name is DeviceIoControl(...), not DeviceIOControl(...). Thanks for your comment 2ffat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top