|
|
The first thing you listed is the Model.
The second thing you listed is the PnpDeviceID.
They're both retrieved from the same management class. You may have more than one drive with the same Model designation, but I think the PnpDeviceID might be unique between drives of the same model.
So, now that you know this, tell us what you're trying to do.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I have one drive.
The Model is WDC "WD2500JS-22NCB1"
The unique ID is "WD-WCANKF003333"
I found in some message board tell me that "4&32BEFC79&0&0.0.0" is unique ID.
"4&32BEFC79&0&0.0.0" may be hex of a string.
I try to convert "4&32BEFC79&0&0.0.0" to "WD-WCANKF003333"
Sorry for bad English.
|
|
|
|
|
Hi Guys. Do any of you know if it is possible to pull an image into an app and read data of it? I have aproximately 280 000 .TIF files. I want to or would like to know if I can read data from the image. The image is a scanned image of a word document. I need to be able to read/search the image for certain words and do something with it.
Does anybody know if this is possible at all?
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
That's called OCR, you need to buy a library for that.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Thanks Christian. Woud it let me read data of an already scanned image? I thought it only possible to read the characters while it is scanned.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Well, it depends on the Reader. What kinda data does your image contain?
|
|
|
|
|
OCR is an operation that works on a bitmap by examining it for shapes it thinks are text. It can only work post scan, even if some OCR that runs with a scanner appears to work as it scans.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
You might try using the Office 2007 imaging services, although I have no clue on how the APIs work or where you can get docs.
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chineese Proverb]
Jonathan C Dickinson (C# Software Engineer)
|
|
|
|
|
Hi, all!
Is it possible to integrate my help into msdn????
If yes than how can I do this?
|
|
|
|
|
You mean create a help file similar to MSDN ones?
|
|
|
|
|
I need to create help for my Add-In and than inegrate it into MSDN.
If files must be similar to MSDN once than they will be... as yet I don't know and will be glad any help
|
|
|
|
|
|
It said that "VS 2003 must be installed to run this installation package"
|
|
|
|
|
You can use Sandcastle to generate a MSDN like help files from XML documentation files and documented assemblies.
But then il dont really know how to integrate that to Visual Studio.
here are links for sandcastle :
http://www.codeplex.com/Sandcastle
http://www.codeplex.com/SHFB (sandclastle GUI)
Zied
|
|
|
|
|
Hi,
for some reason I need to display a Class inherited from a Form in a TabControl.
Using the code allows me to add the Form page to the tabcontrol ~:
TabPage tabpage = new TabPage(page.name);
page.TopLevel = false;
page.FormBorderStyle = FormBorderStyle.None;
page.Dock = DockStyle.Fill;
tabcontrol1.tabpage.Controls.Add(page);
page.Show();
this works all fine and I can see the form as a tabpage in the tabcontrol.
But:
It is essential that the ParentForm (hosting the Tabcontrol) is editable through keyboard only.
So I am hitting the Tab-Key and want to browse through the parentsform controls.
As soon as I "enter" the SubForms controls I won't be able to leave the Form using the
tabkey. I cycles just through the controls of the tabpage.
When I use the mouse I can focus other controls.
But as soon as I come back to the embedded form I cannot leave again using the tabkey.
Is there a workaround to this, embedding the Form in a tabcontrol so that it behaves
like a normal tabpage would, allowing me to leave the page with the help
of the keyboard.
Any help is appreciated.
Thank you
|
|
|
|
|
Only thing I can think of is to have a keydown event for the tabcontrol. Then check if the focussed page is concerned one and the key pressed is "tab". Supress the key press and set focus to which ever control you want.
|
|
|
|
|
Thanks for your answer,
catching the Tab event is probably the only way to do it.
But this caused me a lot of other problems in finding the
next control outside of the tab. I finally I decided to change
the code of the embedded parents form and add make it a
simple Tabpage, more or less.
1.5 days of work, but a lot less trouble
than adding forms to tabcontrols.
|
|
|
|
|
Well finding the next control is not that tough. You get the current tabindex and set focus on the control having tabindex one more than current one.
|
|
|
|
|
Using VS2005...
I've got an app that's uses up a HttpListener object. When a request is detected, a file is streamed to the requesting application. When the streaming starts, a tmp file is being created (not by my code), in the Windows\Temp folder. Is it possible to prevent this tmp file from being created?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: When the streaming starts, a tmp file is being created
On which end - client or server?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The (desktop) app is streaming the file to itself (actuallyn to a SWF resource in the app) via an HttpListener, so it's all on the client side. I personally think it's an automatic Windows thing that happens whenever a file is sent via HTTP.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: so it's all on the client side.
I meant the client or server side of the HTTP connection...
doesn't matter if it's in the same app or not. The listener
end being the server and the requesting end being the client.
Is it a cache file? Is it a copy of the file being sent?
Does using the cache control headers have any effect?
WebHeaderCollection ^headers = request->Headers;
headers->Set(HttpRequestHeader::CacheControl, "no-cache, no-store, no-transform");
headers->Set(HttpRequestHeader::Pragma, "no-cache");
...send request...
WebHeaderCollection ^headers = response->Headers;
headers->Set(HttpResponseHeader::CacheControl, "private, no-cache, no-store, no-transform");
headers->Set(HttpResponseHeader::Pragma, "no-cache");
...send response...
You're using HttpListener on the server end....what are you using
on the client end?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi,everyone~
I have searched the answer from internet for long time but can't find similar situation.
I want to call a system tray process from my winform and double click it.
Now I have got the system tray tool bar handle and every tool bar button handle.
Then when I try using "IntPtr rr = SendMessage(_ToolbarWindowHandle, WM_LBUTTONDBLCLK, new IntPtr(tbButton.idCommand), new IntPtr(0))" to send db-click message to one of the tbbutton, it always point to the first button event. I think the reason of the problem should be the lastest parameter(lparam), but I don't know how to set the param.
Or any way else to solve it?
Hope anwser, thanks.
|
|
|
|
|