- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry about the typos, it has a been a long week of concrete and C++
Regards
JMN
Regards
JMN

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page