Author Topic: Difference between WIN7 and XT  (Read 878 times)

J.Beck

  • Newbie
  • *
  • Posts: 11
    • View Profile
Difference between WIN7 and XT
« on: October 26, 2011, 12:21:24 pm »
Hello,

I developped an application which uses WINUSB to communicate with USB devices. On the WIN7 machine all is working perfect.
On the XP machine (i tested two different machines under XP), i get an error in the routine TnrWinUsbApi.Open.
The createFile in TnrWinUsbApi.Open fails with an error 123 (ERROR_INVALID_NAME: The filename, directory name, or volume label syntax is incorrect), but the parameter nameSymbolic seems to be ok. The driver installation runs without any issues.

I have no idea, what could be wrong.

Thanks for your help.

Best regards
Joachim

J.Beck

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Difference between WIN7 and XT
« Reply #1 on: October 28, 2011, 07:41:44 am »
Hello,

the problem is solved: I used the TnrUsbDevice.NameSymbolic to open the TnrWinsUsbApi manually. Under WIN7 this works, but under XT this gives an error. I checked the internal code of the components and found that the head of the NameSymbolic has to be changed from /??/ to //./ before it can be used has parameter of TnrWinUsbApi.Open.
After that the error under XT is gone.

Best regards
Joachim

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Difference between WIN7 and XT
« Reply #2 on: October 28, 2011, 01:30:02 pm »
Hello

Thank you for your information.
We will check this situation.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.