|
|
Actually i want drag the name of a person from one data grid to another data grid. How is it possible ?
|
|
|
|
|
Hi, I am planing to do a voice chat software with VoIP. Can you guide me to do that?
|
|
|
|
|
Too vague!
Do you plan to create the VoIP system yourself, or get a third party VoIP and you just control the third party component from your software?
What aspects are you stuck on? What exactly do you need help with?
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Yes I am planning to create VoIP system myself. Can you help me to start with ?
|
|
|
|
|
Have you designed anything yet? I would guess the critical element is the protocol. Do you have any idea on the communication protocol? Are you using an existing protocol? Are you going to create your own protocol? Do you know anything about audio compression? Do you know anything about interacting with audio hardware?
There are lots more questions that you need to know the answer to to get started with any reasonable expectation for success. If you don't know the answers then you need to find them out. However, the small range of questions I've posed above are high level and way beyond the help you could reasonably expect from a reply in a forum post. My suggestion is that you need to do some research into the topic and then, if you are stuck on the implementation, come back and ask for help in specific areas.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Assumably you are planning to utilize a current VoIP protocol SIP might be a good place to start. There are vendors providing .Net framework API's for the SIP protocol such as www.independentsoft.com. www.voip-info.org is another good source of information.
|
|
|
|
|
hi
my problem is
there is one list box in my program and a dialog.
when i am selecting one class name from the dialog
then all methods inside the class should display in to the
list box.
how can i do this without reflection
nidh
|
|
|
|
|
|
nidheeshkayal wrote: how can i do this without reflection
Why do you want to do it without reflection? (I can't think of any solution that doesn't use reflection - So I would help otherwise)
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
can u write some code
chakkara
|
|
|
|
|
chakkara2003 wrote: can u write some code
Of course I can.
An example of pulling out a list of methods from a specific type:
using System.Reflection;
System.Type myType = typeof(MyClass);
MethodInfo[] theMethods = myType.GetMethods();
foreach(MethodInfo method in theMethods)
{
Console.WriteLine("{0}", method.Name);
}
Links to MSDN:
* System.Type class[^]
* Type.GetMethods()[^]
* System.Reflection.MethodInfo class[^]
Does this help?
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
sir,
here am attaching a piece of code, and it shows an error, plz correct it
private void Browse_Click(object sender, EventArgs e)
{
openFileDialog1.FileName = "";
openFileDialog1.CheckFileExists = true;
openFileDialog1.CheckPathExists = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
LoadMethods(openFileDialog1.FileName);
}
}
public void LoadMethods(string Path)
{
int len = Path.Split('\\').Length;
string Name = Path.Split('\\')[len - 1].ToString();
string ClsName = Name.Split('.')[0].ToString();
//here ClsName is the class name, i need to get objects under that class
// System.Type myType = typeof(MyClass);
System.Type myType = typeof(ClsName);
MethodInfo[] theMethods = myType.GetMethods();
foreach (MethodInfo method in theMethods)
{ //Console.WriteLine("{0}", method.Name);
LstMethods.Items.Add(method.Name);
}
}
chakkara
|
|
|
|
|
When you browse, I assume you are browsing for a .NET assembly (dll or exe). In which case your variable ClsName is in fact the assembly name, not the name of one particular class (BTW, Look at System.IO.Path for extracting just the file name, it saves alot of boilerplate code)
In this case, what you need to use is Assembly.LoadFrom[^] to load the .dll/.exe as an object of type Assembly[^].
From there you can use Assembly.GetType[^] to get an instance of a particular type, then the code to itterate the methods is exactly as Colin suggested.
Here, I rewrote your LoadMethods method to demonstrate. You will need to add using System.Reflection if its not in your code already
private void LoadMethods (string fileName)
{
Assembly asm = Assembly.LoadFrom(fileName);
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach(Type t in asm.GetTypes())
{
sb.AppendFormat("Type:{0} Methods:",t.Name);
foreach(MethodInfo mi in t.GetMethods())
{
sb.AppendFormat("{0} ",mi.Name);
}
sb.Append("\r\n");
}
MessageBox.Show(sb.ToString());
} -- modified at 8:05 Thursday 2nd March, 2006
|
|
|
|
|
here we get the class class name and objects from the assembly. my new requirement is
i need to get the methods directly from class
that is -- i have class named Form1, by using a dialog contols i can get the class.
assign that dialog.Filename in to a string
now i got the class name- from this class i need to fetch objects
once again thanx for u r help
nidheesh
|
|
|
|
|
Your post is not particularly clear, but check out Type.GetType[^], which allows you to retrieve a Type instance from a string representaion.
|
|
|
|
|
Hai,
This is Venkat.I am a PG student in Mechanical engineering.I am doing my project on Automatic transmission of an automobile by using an Electronic controller.
The controller have to select the particular gear according to the requirement,thats what does automatic transmission here mean.
The controller selects the gear to be engaged depending upon the input variables ( of working condition of the vehicle ) like accelerator position,engine load etc.
So the fuzzy controller takes all the input variables, processes them and then gives an output for the corresponding gear to be engaged.This is the logic how the controller works.
I am not very good in Programming.So,would somebody pls help me in getting the code for this application,may be in C or C++,preferably in C.
Hope u would help me in making my task simpler,
Waiting for ur reply,
venkat
|
|
|
|
|
Hi Venkat,
Venkatmavuru wrote: I am not very good in Programming.So,would somebody pls help me in getting the code for this application,may be in C or C++,preferably in C.
First this is a C# board. In this board all topics should relate to C#.
Venkatmavuru wrote: The controller selects the gear to be engaged depending upon the input variables ( of working condition of the vehicle ) like accelerator position,engine load etc.
You have requirements and corresponding to the input values the gear will be choosen? Didn't sound like fuzzy logic. It seems to have fix states, a matrix with requirements. What is the fuzzy logic part? You should tell us a little bit more about it. Fuzzy Logic is non-deterministic.
Venkatmavuru wrote: I am not very good in Programming.So,would somebody pls help me in getting the code for this application
Hey you should try, because you have to learn it, when you need it for your studies. So we can help you if you got stucked but I think no one here has the time to programm the work for somebody else he don't know. If you have a question you can pose it and someone here will help you.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Ingo,
I would like to ask a question of you, please. You state the following:
ihoecken wrote: Fuzzy Logic is non-deterministic.
Now, perhaps I don't understand what you have attempted to say with that statement; however, as I understand non-determinism[^] and fuzzy logic (based on fuzzy set theory by Zadeh), fuzzy logic is not non-deterministic.
I am a mathematician who has spent some time with these concepts. Could you please explain to me your point?
Sincerely,
Curtis.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Curtis S. wrote: Now, perhaps I don't understand what you have attempted to say with that statement; however, as I understand non-determinism[^] and fuzzy logic (based on fuzzy set theory by Zadeh), fuzzy logic is not non-deterministic.
I am a mathematician who has spent some time with these concepts. Could you please explain to me your point?
May be I'm wrong, but all Fuzzy-Logic algorithms I know are randomized. Take a look at measurement of polygons. A "coin" is dropped to an rectangular area. If it falls on the polygon it's counted. Afterwards you can calculate the size dividing the counted coints by all coins thrown. Knowing the size of the rectangular, you can calculate the size of the polygon. This is a very simple fuzzy logic algorithm, but all others I know (for picture stabilization for cameras) are working in the same way. There is always a probabilistic algorithm in the background and so it's non-deterministic.
The definition of fuzzy logic has nothing to do with probabilistic working (it's about multistate bits), I know, but I don't know algorithms which uses multistate bits without probabilistics.
But may be you can be explain, why it your algorithm is fuzzy logic. Talking about this part would definitiv help me.
Greeting,
Ingo
------------------------------
PROST Roleplaying Game
|
|
|
|
|
ihoecken wrote: May be I'm wrong, but all Fuzzy-Logic algorithms I know are randomized.
No, this is incorrect. The "fuzzy" in fuzzy logic refers to graded truth values, not randomness or chance. This is an important point.
ihoecken wrote: Take a look at measurement of polygons. A "coin" is dropped to an rectangular area. If it falls on the polygon it's counted. Afterwards you can calculate the size dividing the counted coints by all coins thrown. Knowing the size of the rectangular, you can calculate the size of the polygon. This is a very simple fuzzy logic algorithm ...
No, this is called a "Monte Carlo" algorithm, and is not fuzzy at all.
ihoecken wrote: This is a very simple fuzzy logic algorithm, but all others I know (for picture stabilization for cameras) are working in the same way. There is always a probabilistic algorithm in the background and so it's non-deterministic.
The definition of fuzzy logic has nothing to do with probabilistic working (it's about multistate bits), I know, but I don't know algorithms which uses multistate bits without probabilistics.
Although systems which employ fuzzy logic might employ randomness somewhere, the "fuzziness" of fuzzy logic is not probabilistic. I refer interested parties to:
Usenet Fuzzy Logic and Fuzzy Expert Systems FAQ
The Fuzzy Systems Handbook by Earl Cox (ISBN-13: 978-0121942700)
Fuzzy Sets and Fuzzy Logic by George J. Klir and Bo Yuan (ISBN-13: 978-0131011717)
|
|
|
|
|
I wrote a Java-based fuzzy controller that you can find at FuzzyGKS[^]. It should be relatively simple to translate it to C as the only class from the Java libraries that I use is ArrayList, I think.
If that doesn't work, you may want to look around AI Depot[^] for some tips.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi all,
I would like to know of how to get the value member of every item in the listbox.
It is clear that i can get the valumember of the selected item using the selectedvalue property. But my requirement is that i need to check the values of all the items immaterial of if it is selected or not.
How can this be achieved? please help me out with this.
Thanks in advance
Regards,
Madhusri
Thanks and Regards
MadhuSri
|
|
|
|
|
Try this one:
for (int index = 0; index < listBox.Items.Count; index++)
{
PropertyInfo info = listBox.Items[index].GetType().GetProperty(listBox.ValueMember);
object valuemember = info.GetValue(listBox.Items[index], null);
}
www.troschuetz.de
|
|
|
|
|
Stefan Troschütz wrote: for (int index = 0; index < listBox.Items.Count; index++) { PropertyInfo info = listBox.Items[index].GetType().GetProperty(listBox.ValueMember); object valuemember = info.GetValue(listBox.Items[index], null);}
Stefan,
thanks for the sample code.
it helped me to get the valuemamber.
Thanks and Regards
Madhu
|
|
|
|