Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: Jan Dolinay [x]
Re: Speed tests by Jan Dolinay
Forum Message 14 May 2013  
Thanks for the link. It's really interesting. The results for digitalWrite seems to match. :) 224 writes per millisecond gives 4.5 microseconds per digitalWrite. With direct port read, the bitRead is
Article 10 May 2013   license: CPOL
This article explains why the Arduino digital I/O functions are slow and compares them with faster implementation used in Wiring framework.
Re: Windows 7 by Jan Dolinay
Forum Message 21 Aug 2012  
I just tested it on Windows 7 (home premium 64 bit) and it works. I imported the project to Visual C# 2010 Express first, so this could be one reason - maybe it does not work if built with older ver
Forum Message 17 Nov 2009  
Thanks for sharing your fix! I will probably soon need it in my program.
Forum Message 15 Apr 2009  
Thanks. Sorry I don't write any line numbers ;) - there would be lot of them and this is not a modification you can do without understanding the code at least quite a bit. If you look into the Driv
Forum Message 15 Apr 2009  
Please see the message below from 12 Feb 2008 "How Do I Modify the Code to work in a Service".
Forum Message 9 Jan 2009  
Hello, If after you insert the card you can see the disks in Windows Explorer, then DriveDetector should detect them. It's possible that the disks are not considered "removable" by Windows and Driv
Re: Licence Conditions by Jan Dolinay
Forum Message 9 Jan 2009  
Yes, it's The Code Project Open License (CPOL).
Forum Message 20 Dec 2008  
Hi GM, Thanks. Sorry, but I don't know much USB devices; haven't even heard about Unmounted volumes before. All I can recommend is to look at MSDN into the documentation for WM_DEVICECHANGE:
Re: Great article by Jan Dolinay
Forum Message 29 Sep 2008  
Hi and Thanks! I don't know if there is any unique ID of flash drive, but don't think so. Even if there would be, it would probably be possible to change it, same as you can change it for hard dri
Re: Code license? by Jan Dolinay
Forum Message 20 Aug 2008  
Yes, feel free to use it in any project in any way.
Forum Message 4 Jun 2008  
I am glad that the code is useful. Now I see what you mean, there really is the "Eject" command. As for helping I thought I already did by writing that the previous post. ;) The "Eject" or "Uninsta
Forum Message 3 Jun 2008  
Hi, If the same drive is detected when using the system tray icon but not using the my computer way, the only reason I can think of is that Windows do not send the notification message. Or it sends
Forum Message 29 May 2008  
The code does not detect devices which are not volumes (which do not show up in Windows Explorer as a drive). Please see the earlier post "How to detect USB device removal?" for solution.
Re: Thanks by Jan Dolinay
Forum Message 16 Apr 2008  
I am glad it's useful for you. Good luck at ImagineCup!
Forum Message 15 Apr 2008  
Sorry, what I wrote above is all I know about this. :) Perhaps someone who already solved this will post his result...
Forum Message 31 Mar 2008  
Sorry, I didn't try the code and thought about the DriveType as a flag. You're right. It's either Removable or CDRom.
Forum Message 30 Mar 2008  
It should be possible to filter out CD and DVD's using DriveInfo. For example, in the DeviceArrived event handler you could use code like this: private void OnDriveArrived(object sender, DriveDetec
Forum Message 13 Feb 2008  
The easiest way would probably be to use the "native" NET framework way of detecting device changes - please see the post here from March 31 2007. It uses WqlEventQuery. I didn't try it myself but it
Forum Message 25 Jan 2008  
Hi, Sure I will be interested in the version with support for multiple devices. You are right about the mDeviceNotifyHandle and other variables being overwritten. There needs to be array instead of
Forum Message 23 Jan 2008  
Hi Yosi, Thanks. I think this problem may occur by combination of 2 factors: 1) DriveDetector is able to monitor only one device. If you register multiple devices (as you write: "calling Regist
Forum Message 14 Jan 2008  
I seems unlikely to me that some antivirus program would or could prevent windows from sending the message. Please note that the sample program only works with mass storage USB devices - those which a
Forum Message 14 Jan 2008  
Please look at the older post "USb device does not detect" below, this may be the same problem.
Article 8 Nov 2007   license: CPOL
An article on detecting insertion and removal of removable drives in C#
Forum Message 8 Nov 2007  
DriveDetector only detects disks (volumes). If you look into the code in DriveDetector.cs, into the WndProc, you will see the following: ... case DBT_DEVICEARRIVAL: d
Re: Source out of date by Jan Dolinay
Forum Message 8 Nov 2007  
Thanks! The source download is really out of date! I don't know how it happened that I posted the old version...I emailed Codeproject the new one so it should appear here soon. Thanks for letting me k
Re: Can u help me, by Jan Dolinay
Forum Message 23 Oct 2007  
Look at this article here on codeproject: "Eject USB disks using C#" By Simon Mourier. http://www.codeproject.com/useritems/usbeject.asp This should be what you need. Jan
Re: files by Jan Dolinay
Forum Message 15 Oct 2007  
Hi, Thanks. My writing for pda's ended up at Pocket PC2002 so I don't know if there are any changes for the PPC 2003 and newer but I believe writing to a file on PDA is the same as for PC, for exam
Forum Message 24 Sep 2007  
Hello, Thanks for the tip. I now don't remember if I tried this and for some reason could not make it work or I just didn't think about it. Certainly it would be much better than opening some file
Re: A suggestion by Jan Dolinay
Forum Message 13 Sep 2007  
Thank you for the addition. I agree it is not necessary to know about interrupts to program in C#. It would be good to provide all the background information but then the article would be too long...
Forum Message 13 Sep 2007  
Thanks for this idea, I just never thought about it. It would make sense to use invisible form. If I ever make myself to update the code I will try this.
Re: Hello.. by Jan Dolinay
Forum Message 26 Jul 2007  
DriveDetector does not support this but you can simply enumerate all drives and decide if there is usb drive. I use this in my program: DriveInfo[] allDrives = DriveInfo.GetDrives();
Re: WPF? by Jan Dolinay
Forum Message 15 Jul 2007  
I don't know anything about WPF so I can only guess here. But looking at the class hierarchy I see Window is inherited from System.Windows.Controls.ContentControl which is inherited from System.Windo
Forum Message 27 May 2007  
Hi, Thanks. I'm glad it's useful. Your program looks great!
Re: Can you help me? by Jan Dolinay
Forum Message 11 Apr 2007  
Sorry, but I don't know much more about the Windows for mobile phones than that it exists. Try this link: http://www.micros
Re: Can you help me? by Jan Dolinay
Forum Message 29 Mar 2007  
This will not be easy I guess. :) I don't think there is any standard interface for communicating with mobile phones - except if the phone runs some version of Windows Mobile (CE) operating system - i
Forum Message 29 Mar 2007  
Hi, The problem is that Windows send the WM_DEVICECHANGE message (which DriveDetector uses) only to applications with top-level window. I think one way would be to create a hidden window (form)
Re: Please help me! by Jan Dolinay
Forum Message 26 Mar 2007  
Hello, As for cd/dvd it should work too. On my computer it works, so I think you are right it's because the Autorun is turned off on your PC. Try setting breakpoint in the DriveDetector.cs in Wnd
Forum Message 26 Mar 2007  
I suppose such change should also generate the WM_DEVICECHANGE message. Try to look into DriveDetector.cs into WndProc(ref Message m) method. My implemetation signals the arrival only if the device
Forum Message 20 Mar 2007  
Thanks Uriel! Look at this article: "Eject USB disks using C#" By Simon Mourier. http://www.codeproject.com/useritems/usbeject.asp This should do what you need. Regards, Jan
Re: Drive letter by Jan Dolinay
Forum Message 20 Feb 2006  
I think i might have found solution but haven't tried if it works yet. Look at "Fundelete" from www.sysinternals.com. It's free and comes with source code. Look at UndeleteGetFileName function in IRP.
Drive letter by Jan Dolinay
Forum Message 9 Nov 2005  
Hi, Thanks for the great article. Is it possible to obtain the path of the executed file including the drive letter or device name? If i have 2 partitions with the same directory structure, the f
Article 31 May 2004   license: CPOL
An article on a simple password manager for the PDA.

Page 1 of 1


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid