FYI: when a file contains errors, it does not compile, and the types it defines, are not available to the compiler when trying to deal with remainder of the application, so the compilation of other files may suffer from that as well. I assume you currently have multiple errors. Then first fix the errors in the lowest-level files, the ones holding minor classes needed by many but not needing much themselves, then work you way up.
Extra suggestion: if that fails, temporarily disable large chunks of code WITHIN classes (not entire classes though); you can use #if false and #endif for that purpose.
It's a class dealing with resources for multi-language-support. I don't remember if it was automatically generated with the name of "MyProgram.MyProgram", but I think that was necessary for some automated feature to find the files
- MyProgram.en-US.resx and
Can I rename the class without breaking the multi-language-support?
How do I find the class?
In the line where the error with the MyProgram appears.
Right click in the word MyProgram and use the Go to definition function of the menu.
But I don't know how that was made... when I add multi-language support the name of the resource file is not really important, but if you have hand-written the name of the resource in strings you will need to find and replace them.
use the Go to definition function.
Another choice is to rename the namespace.
I tried both ways and they both fail because the resource class is generated automatically every time I change a resource.
I can change the name of the class and the change gets undone as soon as I change a resource.
I can change the namespace and the resource class changes its name accordingly as soon as I change a resource.
It seems like I have to move all of my self-created classes out of the application's standard namespace to avoid the conflict.
Any concerns about that?
Or does anyone have another solution?
If your application is meant to handle almost any kind of file, then you have a tough job. Every file essentially is a series of bytes. Unless you scan that and then try to match it with actual pattern, I can't think of a concrete solution.
You can try opening the file with the associated program. That too will not guarantee detection since many file will open (although distorted and with weird characters) in the associated program.
I found this[^] through google. You can check if it helps.
i search a lot for program in c# that can record from web cam
can any one help!
Sorry and thanks
every time i search more harder in this web i found what i want so if any one wants to know the solution it is DirectShow.NET
for the Administrator you told me not to put the Q and A in the same Message so if you wants to remove it, it is your job.
thank you codeproject
I have a problem.
i build a service and i build install to.
i install my service and is work beautiful.
but...if he as a error he stop the service and write to my even log.
i dont want to stop my service if he as a error.what i do?how to fix that?
Services stop when an unhandled exception is thrown, so you need to make sure you handle them. You could maybe do this quite high up - do you have a loop on a thread created in OnStart()?
However, that just assumes you can just carry on if something bad happens. You really need to consider the execution path which may result from an exception being thrown. If you get a network error, you might want to try again a short while later. If you run out of memory or disc space, you probably do want the service to stop...