I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client?
I'm assuming that you are clubbing too many email ids separated by semicolons? I tried by increasing the no. of email ids with every trial. At some point, ShellExecute started returning a value NOT greater than 32 (it returns a value greater than 32 if it succeeds) and the return value was, upon failure, SE_ERR_ACCESSDENIED.
You might want to check the return value properly.
It is a crappy thing, but it's life -^Carlo Pallini
I think it has to do with the lenght of the commandline. What you could do is put your line in a batchfile (just generate the file from within your program) and run that one. Just delete it when ready..
Luc Pattyn [Forum Guidelines][My Articles] DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
Hello to all,
In my project I am using a USB device and collecting data from it.when I connect that device to my computer then I get "USB Serial Port" in device manager with the port number.Now by default latency timer of that perticular port is "16" and I have to make it "10" to get the data with our required speed. But this change in latency timer can be done manually.To change the latency timer I follow the below steps-
1)right click on "My Computer" icon on desktop.
2)then follow the path, "properties->Hardware->Device Manager->Ports->USB Serial Port(COM X)" where "X" stands for port number of my device
3)then doble click on that port number ("X") and follow the path,
"Port Settings->Advanced" here you can set latency timer of that perticular port under the "BM Options" heading. Here I change latency timer from "16" to "10" from the list.
This latency timer setting can be done manually but my question is that,is there any method or API or any other way in VC++ to set this latency timer programatically? Anybody knows how to do it? please help me out this is really very urgent.
The driver used is most likely provided by the vendor and the "latency timer" you are talking about is not a serial port setting. So I guess that the "latency timer" can be set by using ::DeviceIoControl(). What IOCTL to use and what values to send should be readable in the documentation provided by the vendor.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown