|
Thanks for the snippets DaveyM69 - I've ended up with something similar. For now, to compare I'm using GetIndex(), but my converted code is constantly growing. Didn't know that CS is so much more complicated...
Thanks again...
|
|
|
|
|
I don't believe C# is much more complicated with this; I think the real difference is that you'd typically let the overloaded operators be member functions in C++ and C# wants them to be static functions. So if you rewrite your C++ code to the static overloading, then you're already having the same code in C# and C++.
|
|
|
|
|
Is that possible to open two mdi parent form in one(same) mdi container???? And if yes then how????
Please Give me the answer.......
|
|
|
|
|
keyur_raval wrote: Is that possible to open two mdi parent form in one(same) mdi container
Not at the same time. You can change what the MDI Parent is, but you can't have two of them together.
|
|
|
|
|
1.How to record the video from a System.Windows.Forms.Panel?
1.How to record the video from a System.Windows.Forms.Panel By Use Handle?
|
|
|
|
|
Your reposted question is no better phrased than the question you posted 34 minutes ago.
You should read this[^]
|
|
|
|
|
Please Write a better answer
|
|
|
|
|
makhondi wrote: Please Write a better answer
As a general rule, the quality of the answer you get is directly proportional to the quality of the question asked. Take your question for example. It's vague, broad in scope, not even a question, demonstrates lack of any research, does not demonstrate any effort on your part and does not make any sense to begin with. As a result you are going to get vague, broad answers that are probably not going to be of much help.
Bottom line: you want better answers then ask better questions.
|
|
|
|
|
I'm confused about your question. You normally wouldn't use a panel to display video information, so how are you actually displaying the video there?
|
|
|
|
|
...and if you've already got the video displaying in your app, why would you need to record it again?? Or is this live video from a camera or other source, such as YouTube??
|
|
|
|
|
I have a project where I need to be able to make film (.avi) of panel.
For example:
SaveAvi(panel1);
|
|
|
|
|
well, we're not exactely mind-readers here, and you give us sfa on what you've tried, and what your issues really are ..
so I suggest you start here (see link), and when you have a specific issue, post back a decent question with/about a code issue
A Simple C# Wrapper for the AviFile Library[^]
'g'
|
|
|
|
|
Okay, so you have a basic requirement. You now need to flesh this out some more. Once you have done that, you should be able to start coding your application.
|
|
|
|
|
btw 'Help !' really ? .. no please ?? manners, manners, manners - old proverb 'its easier to catch flies with honey than vinegar'
'g'
|
|
|
|
|
Garth J Lancaster wrote: 'its easier to catch flies with honey than vinegar'
Who yer goin' an' callin' flies?
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Hello, I'm doing a project to send information from multiple serial ports over TCPIP network.
The approach I am using is as follows:
Use BackgroundWorker for each serial port that is used to capture the information received.
I use a common method to treat the information received and stored in a queue using locks.
Queue _cola = new Queue();
private void bw_DoWork(object sender, DoWorkEventArgs e)
{
BackgroundWorker bw = sender as BackgroundWorker;
string port = (string)e.Argument;
SerialPort sprt = new SerialPort(port);
sprt.BaudRate = 4800;
sprt.Parity = Parity.None;
sprt.StopBits = StopBits.One;
sprt.DataBits = 8;
sprt.Handshake = Handshake.None;
try
{
sprt.Open();
}
catch (Exception)
{
MessageBox.Show("Check port");
return;
}
while (!bw.CancellationPending)
{
string indata = sprt.ReadLine();
lock (_cola)
{
_cola.Enqueue(indata);
}
BeginInvoke((Action)(() = UpdateGraph(port)));
}
sprt.Close();
}
private void UpdateGraph(string port)
{
lock (_cola)
{
string text = Leer();
rtbOutput.AppendText(text );
rtbOutput.ScrollToCaret();
}
}
I found that if I open several ports and FIFO is slower getting data extracting data, the program is "locked." So far all I do is get the information even RichTextBox, but the purpose is to send this data via socket to another computer.
I understand that I should make a thread to avoid these locks but how should do so within the BackgroundWorker?
modified 13-Mar-13 5:44am.
|
|
|
|
|
Sir i just wanted to know the code for K-means Clustering on text documents !!
As the code is available in C#!
but I am not able to get it!
and I am new to this site!
So can anybody help me please!
Thanks a lot!
|
|
|
|
|
sunny funny wrote: I am new to this site!
And what does that have to do with being able to Google[^]?
|
|
|
|
|
Using .Net Framework 4.0 VS2010
I am trying to setup a parent task with child task (task1) to run x number (100) of task then run a separate task (task2) 1 time then continue running task1, etc. continuous loop until total task (1000) are complete. Can I do this using the ContinueWith statement, can someone please give me an example or point me to one that shows how to do this.
Any help will be greatly appreciated,
Michael
|
|
|
|
|
I would have a read of this MSDN Task Parallelism (Task Parallel Library)[^]
It gives many example of the different ways to execute a Task
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hello Guy , I want ask a question . you make a program for Retreiving a list of network computer names using C# but I wonder do retreving a list computer with wireless connection . How do I make it ?
|
|
|
|
|
|
this issue relevant by the local network so wired connection.I want this connection is wireless .
|
|
|
|
|
There is no difference in Retreiving a list of network computers, doesn't matter if the connection is wired or not.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
AFAIK, you can't tell is a connection is wired or wireless without asking your specific router.
It presents an IP presence to the world - it does not distinguish between the connection methods.
So there are two ways to do it:
1) Tie your code to your specific router and find a way to ask that. This will be dependant on the specific make and model of router you are talking to.
2) Slightly less specific would be to set your router to use two different address ranges for wired and wireless devices - again this will probably depend on your router, but it may be possible if you use a different DCHP controller.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|