|
All you need to do, is start with the image already in the picture box, then apply your filter to that. How are you doing the brightness and contrast ? If you're using a matrix, you can combine the two matrices and do the operations together in one pass. That would also make a lot of sense, speed wise
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have just begun to program in C# and I created this program by 2 ways:
1. Used wmp.dll at C:\WINDOWS\system32 in Windows XP but my program run on Pocket PC only play audio file, not video file.
2. I tried use Microsoft.DirectX.AudioVideoPlayback but it only run in Window project, not run in Smart Device project.
Have any solution as there is a like library wmp.dll or Microsoft.DirectX.AudioVideoPlayback in Windows Mobile?
Everybody, help me?
Thanks.
|
|
|
|
|
Please send me your code on my email mishra.nishant4@gmail.com i must need to see it before commenting.
|
|
|
|
|
Why C#.net does not support multiple inheritance?why it can support by interface?why not by class?
|
|
|
|
|
Because the designers decided they'd cripple the language in the interests of making it "safer".
Implementing an interface is unrelated to inheritence.
|
|
|
|
|
C# and Java languages don't support multiple inheritance because of the diamond problem[^].
Here is the short summary:
The diamond problem is an ambiguity that arises when two classes B and C inherit from A, and class D inherits from both B and C. If a method in D calls a method defined in A (and does not override the method), and B and C have overridden that method differently, then from which class does it inherit: B, or C?
Uri
|
|
|
|
|
This is a stupid example, given by people too stupid to understand the value of multiple inheritance. It seems the C# team is in general too stupid to understand complex solutions, I asked them for default parameter values years ago, and they got very confused trying to work out how that would work, or why you'd use it.
The example is valid, but it assumes the programmer is a moron. A good language assumes it will be used well, not protects itself from being used poorly
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hear hear! I think that's what I said.
Christian Graus wrote: default parameter values
Aren't those in C# 4.0 ?
|
|
|
|
|
Yes, you did.
PIEBALDconsult wrote: Aren't those in C# 4.0 ?
Yes, it's taken them three iterations to realise the people crying for it were right. And, they explicitly told me that if they have a choice between making the language powerful, or making it easy and safe, they choose the latter.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: It seems the C# team is in general too stupid to understand complex solutions
Wow, that's quite an accusation. How many programming languages have you written, Christian?
I'd think the main issue here is not language, but the CLR. If C# supports multiple inheritance, there must be some way to express it in metadata and IL, which means the CLR must support it. I'm guessing here that that would mean only a language which is aware of multiple inheritance would be able to deal with that type. Also, the way C++ implements MI might not be compatible with the CLR requirements (reflection etc..), so there are problems even for a language that already supports MI.
In general, I'd say language changes that only affect code generation (lambdas, automatic properties) are much more simpler than those that change the type system (generics etc..).
Christian Graus wrote: I asked them for default parameter values years ago, and they got very confused trying to work out
Unlike C++ which requires recompilation whenever a module changes, .NET supports binding against different versions of a module (assembly). Which means that embedding the default values at the caller will break versioning. I don't see how that assumes the programmer is a moron.
|
|
|
|
|
That's no reason. Pointers are much more dangerous yet they're still available in C#.
Why not allow multiple inheritence in an unsafe context?
|
|
|
|
|
Chris Brumme from the CLR team explain here[^] the reason.
|
|
|
|
|
Ah, now that makes sense!
I can certainly see how technical issues can inhibit implementation; I hope they really are trying to resolve them.
P.S. And mixins sound like a good idea too.
|
|
|
|
|
how can i make the wallpaper changer made by satishvj to appear as a window rather than its appearance at the notification area
|
|
|
|
|
You may get a better response if you EMAIL him, rather than posting a message here - there is no guarentee he reads this forum regularly.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Hi guys
How do I configure a setup project in visual studio to uninstall a previous version of the product.
Thanks
|
|
|
|
|
You have to increment the version number on the installer package.
I had the same problem awhile back.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
i want to know my way in order to program
a software like circuit maker or work Bench
or any simulation software
http://www.pad2pad.com/images/use-circuit-trace-tooldemo_3.gif[^]
IN C#
which field i should study more
is it GDI?
or what ??
can i make every thing with GDI??
like drawin g aline and scaling it or rotate it ??
plz _ help
|
|
|
|
|
The GDI will be the simple bit, actually getting the simulation to work will be the difficult part!
Try creating parts that draw themselves then work on hooking them together. Good luck - that's a complex project if you are going to get it right.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I've always fancied having a go at writing a schematic/PCB layout/simulator - the compexity of it has always made me stop after a couple of days, realizing this would take me years to do properly by myself.
Maybe when I retire
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi,
electronic designers use a range of tools, from schematic capture to simulation to PCB design. Which is it you want? And each of those tools can have a variety of features. Do you want to draw all the traces yourself (schematic, and PCB)? or do you expect automatic routing? layer optimization?
Your example was on surface-mounted analog circuitry. So your simulator would be like one of the many SPICE versions? are you interested in the time domain? the frequency domain? What with digital designs?
All these programs need a user interface and some graphics, so yes GDI+ would be required. However to get a professional tool, most of the effort has to be spent in building the libraries of the components on a schematic, the model parameters for simulation, the packages library for PCB design. This is a major task, only big companies try and sometimes succeed.
I suggest 1) you narrow it down to a small subset of the field, and 2) get experience with existing tools before you decide you can and will do a better job at it.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I'm evaluating SLP Services for their license management and code protection. http://www.inishtech.com
I read in the Microsoft documentation that the code protection can have a performance hit, sometimes a big hit depending on the methods you protect.
There are a lot of limitation around the methods that can be protected and I'm wondering how many people are using this service?
The license mgmt looks promising but I was hoping to hear from someone whose used it or knows someone who has...
Cheers
|
|
|
|
|
Hi
My two cents..
I don't know much about this service but I use .Net Reactor.
I find it flexible enough and doesn't obstruct application performance, so far..
Support can be a little slow, but overall thumbs up.
Regards
Mick Curley
|
|
|
|
|
what are the datatypes use in c#?
|
|
|
|
|
Data Types in C#[^]
Next time search on google before you post here.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|