Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

WINDDK

JohnNichols
Valued Contributor III
619 Views
Dear Steve:

So to continue on from the saga of the SETUPAPI calls.

In the beginnning:

USB drivers appear to be mainly written using DDKBuild, which uses an older VC compiler 15.00000.3097.207 or thereabouts. A driver is built with the MS build program, which is bizarre to say to the least to follow.

I followed it enough so that I could get all of the routines into a static library, excpet for main and the calling routine, I called start. I thought I could then call start from my programs.

I can get the program to compile to work with the USB board using the lib as long as I compile in the BUILD environment. Not a happy situation.

If I take the library and create a VS 2010 project in C++ or Fortran I get the same error that it can not find the SETUPAPI routines we could not find earlier. I copy the exact C++ code from the build source into MS studio and take the lib along, but to no avail.

I have tried working backwards to slowly add stuff from the BUILD version of the program to a VS Studio version, but the changes from VC 15 to now is "unbelievably complex."

I have now learnt more C++ than I care to know. I know Bjorne, but he did not do the world a favour with C++.

Any ideas on how to get the SETUPAPI.LIB to worl with Fortran, or the DLL?

Thanks++

JMN

0 Kudos
1 Reply
IDZ_A_Intel
Employee
619 Views
Sorry about the typos, it has a been a long week of concrete and C++

Regards

JMN
0 Kudos
Reply