Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I worked several days on this ,but couldn't find a way solve it,the program just stoped at this function, i used getLastError()which found out that he return error is " ERROR_NO_MORE_ITEMS",which is really odd ,because i checked the value ,there are no mistakes. who give me some direction how to solve this ?really appreiciate the help.
Posted

1 solution

ERROR_NO_MORE_ITEMS = "The function found a match for the HardwareId value, but the specified driver was not a better match than the current driver and the caller did not specify the INSTALLFLAG_FORCE flag" (http://msdn.microsoft.com/en-us/library/ff553534(v=vs.85).aspx[^])

are you sure the driver you are trying to install is of greater version then the one you already have installed?

in your inf file you have something like this:

[version]
...
DriverVer   = 02/07/2000,1.0.0000.1
...



increase the version number and try again.
 
Share this answer
 
v2
Comments
markfilan 29-May-11 9:24am    
ok , really appreciate your hep.
markfilan 29-May-11 20:59pm    
I tried is not working ,i use this function under XP,which worked perfectly .even the driver have the same version number.but under WIN7 64bits,it;s not working.
markfilan 30-May-11 2:11am    
is that possible that because i use 64bits ,some kind of value was lost during compile?please help.this apllication works totally fine ,under 32bits computer.
Kurt Degiorgio 30-May-11 10:25am    
did you compile it using a 64 bit build environment for windows 7?
markfilan 31-May-11 22:08pm    
yes,and thankd for help.i solve the problem ,it was because a functione which name getlength() is defferent under 64bits computer ,when it used in my function it returns ULONGLONG type.i have to transfer it ti int .after that the function works well.beacse i use getlength function to get the length of current path. anyway ,really appreiciate for all of your help. wish have a nice day .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900