|
Yes, of course there is. The police use this system, and have done for quite a while.
You may have guessed there is no CarRegistration.Read method just yet in the framework, so for now you'll be wanting to look up image processing, character recognition and half a dozen other things that im sure you'll need but i'll leave as an exercise for you to work out.
|
|
|
|
|
yes,agreed. i will look up the infomation of the few points you mention and try to work soemthing out.Thanks.If i encounter any problems, i will post again.
|
|
|
|
|
I refer you to the answer I gave here[^]."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
i have recently edited the software. useing a camera take a photo of the side view of the car and background, use the background to subtract the car in the background using AForge method getting the car image, the car will be measured in pixels. i will repeat this step for lorry and motorcycle. than use switch case method to determine which vehicle has entered the gantry.
any ways to improve it?
thanks.
|
|
|
|
|
what is the control code that press start menu. i wanna do it by using voice. by the way i can store the voice. and it is in now text form. when i will say start, it will press the start button... please help me...
|
|
|
|
|
|
i need only for start button.... it was shift and tab...
|
|
|
|
|
Hi,
I need to ask once you have created an List how do you compare each of the values within the List against another number?modified on Wednesday, March 10, 2010 12:03 AM
|
|
|
|
|
By looping through the List comparing each of the values to the number..?
|
|
|
|
|
The MSDN documentation contains all the information, in particular it describes List<T>.Find() and List<T>.Contains
|
|
|
|
|
Thanks Luc I will check it out. Appreciate the help
|
|
|
|
|
Hi,
I've had to go back to the drawing board and I need some help. Below is the code I am using to read a text file which contains around 20 numbers.
The readText Print works as expected showing all of the numbers within the text file.
I need to Print the nearest number (within the text file) that is above another which is a double and I'm not quite sure how?
{
readText = File.ReadAllText("C:\\PIn.txt");
string [] split = readText.Split(new Char [] {' '});
Print(readText);
}
|
|
|
|
|
Am I missing something?
1) Find target number in array
2) Get next element in array I know the language. I've read a book. - _Madmatt
|
|
|
|
|
there are three steps:
- you come up with a good algorithm
- you come up with reasonable code, implementing said algorithm
- and if you then have a specific problem and a specific question, you post algorithm, code, and problem description on CP, and someone helps you out.
|
|
|
|
|
You already have the answer to this question here[^]. I tried your code and it gives the correct result; what has changed since yesterday? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I have been looking for days as to how to get a Mac Address of a remote PC with C# without Admin Privileges. I use it for validation. The exe can only be run from one PC. First time the app is run, the MAC Address of the Computer where the app is running is recorded. Every time someone logs, the MAC Address of the Computer where the app is running from is checked. If the app is on a remote PC, the user needs Admin privileges to get the MAC Address.
1. WMI needs admin access.
2. nbtstat -a ipAddress
//When you try to run the nbtstat command with a command-line switch such as nbtstat -a remotename in Microsoft Windows XP or in Microsoft Windows Server 2003, the command does not run. Additionally, you receive the following error message:
//Failed to access NetBT Driver - NetBT may not be loaded.
//CAUSE: This issue occurs because users without administrator rights, including power user...This issue occurs because users without administrator rights, including power users, do not have sufficient permissions to run nbtstat when the user includes a command-line switch.
3. SendARP (iphlpapi.dll)
if (SendARP(RemoteIPAddress, 0, macByteArray, ref macAddrLen) != 0)
returns macByteArray==null
4.GetIpNetTable (iphlpapi.dll) returns null
Any other ideas?
|
|
|
|
|
Windows copies the physical MAC address from its hardware register to some software variable, which you can observe in many ways and modify in some ways (I don't recall all the details); the modified value remains in effect until the network gets disabled/re-enabled or disconnected/reconnected (not sure which). So you can not really trust it, unless you do a disable/re-enable (or...) from within your code, which is slow and probably hard to do.
|
|
|
|
|
I have a .NET 1.1 (for compatibility reasons) application that runs as a windows service. I have successfully ran it, except the only problem is im not able to invoke methods in the user32 dll i need to call. I have ran the exact same code as a normal process, and this doesn't seem to be happening. Ive also isolated and ran portions of the code just to tell if the invocations were even successful, and they weren't, so i know it's not a problem with my applications code. As far as i can guess running as a service changes some sort of permissions or something that doesn't allow me to invoke these methods. Anyway im not an expert on the windows os, so before i make myself sound even dumber im gonna shut up. One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
-Robert Firth
|
|
|
|
|
Hi,
jacobjordan wrote: user32 dll
jacobjordan wrote: doesn't allow me to invoke these methods
which functions exactly? anything related to user interaction? (a service has no desktop, no user, by default)
|
|
|
|
|
Add some exception handling to your code around the PInvoke calls and write to the error log in the catch blocks and you will be able to tell exactly what the problem is.
If it's a permission issue then you may need to specify a user to run the service as by setting the System.ServiceProcess.ServiceAccount[^]Dave
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
The methods im invoking are GetAsyncKeyState, GetWindowText, and GetForegroundWindow, all of which return values. No exceptions are being thrown when i invoke, only when i run my app as a service they return a value of 0 (since all return either ints, shorts, or intptrs). Obviously the methods aren't being called for some reason. One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
-Robert Firth
|
|
|
|
|
jacobjordan wrote: GetWindowText, and GetForegroundWindow
those are GUI functions, your service by default has no user and no desktop, hence no GUI.
You must tell it somehow to allow user interaction and specify the account type. I don't know the details.
|
|
|
|
|
As Luc said, these are GUI functions. As the service isn't using the logged in user(s) desktop(s) these functions will not suceed or will fail gracefuly.
Why does this need to be a service? An app minimized to the tray would be able to do the job perfectly.Dave
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
I need to have it running no matter who is logged on, or if nobody is logged on. I know there are probably other ways of doing that, but creating a service was the first thing that came to mind. I would love it if you could suggest and easier way. One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
-Robert Firth
|
|
|
|