Click here to Skip to main content
14,837,233 members

Comments by markfilan (Top 66 by date)

markfilan 14-Sep-11 3:32am View
   
and i tried the way which embed the manifest file in the exe file ,but It's not working at all. and it seemed that the manifest is the only way to fix the problem.
markfilan 14-Sep-11 3:30am View
   
for VS2010, it's much more easy to build program of x64,but now i want the 32bits program running under the x64bits and not trigger the program compatibility assistant.
markfilan 15-Jul-11 1:53am View
   
i used the way you told me, it's strange the error message it gave back is the operation complete successful.but the return value of cr is not CR_SUCCESS.
markfilan 10-Jul-11 20:39pm View
   
no body knows how to solve this?
markfilan 8-Jul-11 5:25am View
   
my driver is designed like this :when it startto installl. the device must be pluged first ,is that the problem ?BTW, I did not use updatedriverforplugandplaydevices()function.is that right? i used the installedselecteddriver() fuction.i tried on other computer ,it have the same problem.so it's my code.i will ad somepart of the code later .thanks for helping ~
markfilan 5-Jul-11 20:39pm View
   
Thanks , i know that terminateprogress() is not a choice ,but i can not think a better way to do it ,or i should use exitprogress()which is much safe.
markfilan 5-Jul-11 20:39pm View
   
you mean, terminateeprocess() is not a good choice?or i should use exitprocess() which is much safe.the executable file I'm shutdown is a background program, there is no winodw for the program.all i can think of is terminateprocess()
markfilan 5-Jul-11 20:38pm View
   
Deleted
Thanks , i know that terminateprogress() is not a choice ,but i can not think a better way to do it ,or i should use exitprogress()which is safer.
markfilan 5-Jul-11 20:35pm View
   
Deleted
you mean, terminateeprocess() is not a good choice?or i should use exitprocess() which is much more safer.the executable file I'm shutdown is a background program, there is no winodw for the program.all i can think of is terminateprocess()
markfilan 4-Jul-11 23:17pm View
   
I solve the problem ,thanks for ur help~
markfilan 4-Jul-11 21:53pm View
   
i just found out that,after i terminate the install.exe program which is in use.the install process have to copy a new install.exe int to windows directory asn this copy went wrong .it failed to copy the install.exe to the directory i wanted it to be.
markfilan 29-Jun-11 3:22am View
   
thank you very much ~
markfilan 29-Jun-11 3:21am View
   
thanks i solved the problem.
markfilan 28-Jun-11 2:56am View
   
Deleted
I USED the code in my program ,but it's strange that when i compile the code ,there is always the problem which is error C2664: “strcmpi”: 不能将参数 1 从“WCHAR [260]”转换为“const char *”i don't now where is the problem .BTW i use VS2010,do you know why ?thanks for help.
markfilan 7-Jun-11 5:35am View
   
I solved the problem,it turned out that the inf file had slightly defferences between 64bits computer and 32bits computer.thanks for help.
markfilan 7-Jun-11 5:35am View
   
I solved the problem,it turned out that the inf file had slightly defferences between 64bits computer and 32bits computer.thanks for help.
markfilan 6-Jun-11 22:55pm View
   
I used Maessagebox() for installation debugging .and the proccess is ok .so i think the installation should be fine .and tah instalation only did 2thing .
1.copied the inf and sys files to the respective directory .
2.use the updatedriverforplugandplaydevice() to intall the driver even the OS already have one in the system.
I belive the installation is fine,but now the OS did not use the driver i intsalled instead the OS install the HID driver for the device .i don't konw why ,and everytime i tried to install the driver i wrote for the device ,the OS give me the message that"Windows has determined the driver softwarefor your devbice is up to date."i didn't know where is the problem.
markfilan 6-Jun-11 20:43pm View
   
the driver is working on 32bits computer.i will check the articles you give me ,thanks very much!
markfilan 3-Jun-11 1:53am View
   
yes ,i have .
markfilan 2-Jun-11 3:57am View
   
it‘S complicated。。。。。。I Don't know how to describe it.........
markfilan 2-Jun-11 3:48am View
   
........
markfilan 31-May-11 22:09pm View
   
wish you have a nice day ~
markfilan 31-May-11 22:08pm View
   
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 .
markfilan 30-May-11 2:11am View
   
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.
markfilan 29-May-11 20:59pm View
   
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 29-May-11 9:24am View
   
ok , really appreciate your hep.
markfilan 26-May-11 22:42pm View
   
thanks I used the way you told me ,and found out that the error actually is:ERROR_NO_MORE_ITEMS.i will check where is the problem.really very appreciate your time and help.
markfilan 25-May-11 20:43pm View
   
yes ,it's strange,i tried this installation on xp,which worked perfectly.is that because my driver did't have the signature which 64bits OS required for caused this problem.?
markfilan 25-May-11 4:46am View
   
I looked the description of the function again,I know why,thanks for help. the function return true ,only when the driver you r installing is newer than the one in the OS.but what i wanted to install is the same ,i think that is why i constantly got false .is that right?
markfilan 25-May-11 4:46am View
   
I looked the description of the function again,I know why,thanks for help. the function return true ,only when the driver you r installing is newer than the one in the OS.but what i wanted to install is the same ,i think that is why i constantly got false .is that right?
markfilan 25-May-11 3:02am View
   
yes ,i called getlasterror .the function return :no more availabke value...........so whatg could be the problem?help.........please .
markfilan 24-May-11 21:11pm View
   
is that [Manufacturer] on 32bits computer is different from 64bits,i will check.but ow i found out that it's becaus the step whic i copy driver to system directory id denied .when i copy driver to system diractory i got the "access denied "error .is that win7 64bits have some restrictions on the access of system directory.
markfilan 24-May-11 21:03pm View
   
i flash back and found out that when the code try to copy driver to to system directory,it got the "access denied"error.
markfilan 24-May-11 4:57am View
   
i may not say that very clear ,the drier installation is 32bits,but now i tried to make it can work on 64bits computer ,so i recompile the installation .but if faild. i don't know where is th problem. i read the code ,the installtion did such thing:
1, copy the inf to the system directory.
2. copy the driver to the repective direcory.
3 use the inf install the driver.
i don;'t know where i missed...........
markfilan 24-May-11 2:15am View
   
and the value is:
m_hwid = _T("USB\\Vid_1267&Pid_6523");
markfilan 24-May-11 2:15am View
   
Deleted
and the value isLm_hwid =_T("USB\\Vid_1267&Pid_6523");
markfilan 24-May-11 2:11am View
   
yes,it is CString type .and m_infname is the full path of the file name.
markfilan 24-May-11 2:06am View
   
DDK environment worked, thanks very much
markfilan 23-May-11 23:53pm View
   
the erroe code i got is the operation complete successfully........so where is the problem .because i used getlasterror in the if{}function .so it;s obvious that the function didn't do what i wanted to .
markfilan 23-May-11 23:50pm View
   
it's strange tha error i got is :the operation completed successfully..........so this fuction worked well.so where is the problem ?please help.
markfilan 23-May-11 20:48pm View
   
But I already compiled the project on the 64bitd computer and the driver,so the installer should can be used on 64bits computer .
markfilan 22-May-11 3:11am View
   
thanks.
markfilan 20-May-11 1:44am View
   
i used DDK build and successed ,i know where i was wrong. i included wrong files. thanks
markfilan 19-May-11 23:47pm View
   
environment variable? i did't get it.........where i have to check ?please tell me more ,thank you .
markfilan 19-May-11 23:46pm View
   
so, the driver path in WIN7 system is the same like XP?
markfilan 18-May-11 2:00am View
   
I read that ,but i didi't find anything that is useful.is there anything i missed?
markfilan 18-May-11 1:45am View
   
yeah.and now i use VS2008 to compile the driver , i got the error is :no target architecture. do u know how to solve this one?
markfilan 18-May-11 1:41am View
   
yeah.
markfilan 18-May-11 1:40am View
   
i looked resource file ,and i added the usbd.lib.so ,it'not this problem.
markfilan 17-May-11 21:53pm View
   
i didn;t use VS ,I used DDK command line buid the driver.anyway thanks for help.
markfilan 17-May-11 21:52pm View
   
you mean use VS to build is better ?
markfilan 12-May-11 21:28pm View
   
I googled some answers about how to set in studio ,but it's not working ,i checked for a lot of times ,that "no target architecture"error was always appeared.frustrating......
markfilan 12-May-11 20:52pm View
   
you mean i'd better us DDK build environment?
markfilan 6-May-11 4:02am View
   
the driver interact with hid driver which microsoft supplied ,so i think it should be easy。thanks again。
markfilan 6-May-11 3:00am View
   
thanks a lot.
markfilan 6-May-11 1:48am View
   
thanks for help........
markfilan 6-May-11 0:50am View
   
if i have the source code of 32bits driver,what I have 2 do ,to make it to be a 64bits driver?recompile?or re write a different driver ,since the architectures are different。
markfilan 20-Mar-11 20:49pm View
   
so, the first parameter I should use the name of the device?
markfilan 17-Mar-11 4:46am View
   
it's a HID device ,which have no need t install driver ,windows platform already have the usbhid.sys driver .I already enumerated the device ,i can write to the device ,but i can not get the data it send for the program .
markfilan 16-Mar-11 20:45pm View
   
it can't read by winodws explorer or manullly copy a file .what i provided above is all i no about the device .
markfilan 15-Mar-11 21:30pm View
   
I GOOGLED this function,but i did not understand it well,I can use this function to open the USB device without enumeration?
markfilan 14-Mar-11 21:03pm View
   
i will try ,thanks .but do u know why createfile can not complete successfully?
markfilan 14-Mar-11 21:02pm View
   
i thought is that pssible beacause the USB is described as a keyboard that made me can not read data from it .
markfilan 14-Mar-11 21:01pm View
   
i can write data to the usb device.here are the code where call ReadUSB:
m_USB.ReadUSB(RecieveDataBuffer);
DWORD dwError = GetLastError();
CString str;
str.Format(_T("Error Code :[%d]"), dwError);
AfxMessageBox(str);
m_Gridctrl.SetItemText(row,4,RecieveDataBuffer);
markfilan 14-Mar-11 2:51am View
   
and the below is the descriptor of the device:
Device Descriptor:
bcdUSB: 0x0110
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x040B (Weltrend Semiconductor)
idProduct: 0x6515
bcdDevice: 0x0102
iManufacturer: 0x01
iProduct: 0x02
iSerialNumber: 0x00
bNumConfigurations: 0x01

ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Low
Device Address: 0x01
Open Pipes: 2

Endpoint Descriptor:
bEndpointAddress: 0x81
Transfer Type: Interrupt
wMaxPacketSize: 0x0008 (8)
bInterval: 0x0A

Endpoint Descriptor:
bEndpointAddress: 0x02
Transfer Type: Interrupt
wMaxPacketSize: 0x0008 (8)
bInterval: 0x0A
markfilan 14-Mar-11 2:49am View
   
sorry, it's a little mess, but do u know how to solve this ?thanks!