|
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
|
|
|
|
|
i need to list all the methods inside a class.
is it possible?
plz help
|
|
|
|
|
nidheeshkayal,
this can be done using reflections...
You can use the GetMethod() function and specify in it if u need to get all the private methods or public methods
Thanks and Regards
Madhu
-- modified at 4:42 Thursday 2nd March, 2006
|
|
|
|
|
here my input is class name not dll.
and plz tel me how can i do it with reflection
nidheesh
|
|
|
|
|
|
Hello nidheeshkayal,
Have you use Object Browser. It is open when double click on any "namespace" in References.
Regards,
Divyang Mithaiwala.
|
|
|
|
|
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
|
|
|
|
|
Use typeof(yourclass).GetMethods(). That's all. ( checkout Type.GetMethods() in MSDN Library )
|
|
|
|
|
Hi people...
I am planing to develop small msn chat so can someone suggest me any idea...
Regards
|
|
|
|
|
|
Thanks 4 ur reply...
Maybe before i wasn't clear on my question, but what i want is how sign in messenger and all my contact list should display in one listbox, aslo possiblity to send and receive messages with any online user.
Regards
|
|
|
|
|
Hello,
I'm developing a application with .NET for the exe file et C++ 7.0 for a DLL.
I have a multi threading application. It works on my dev computers (PIII or P4). But I start the application in an other computer (P4-HT), the application is launched but it "blocks" during initialisation. I think 2 threads run in the same time on 2 CPU cores.
How to resolve this problem ? Can I force my application to run on only one core ?
thanks
Freg
|
|
|
|
|
Hello Freg,
Have you seen this.
Regards,
Divyang Mithaiwala.
|
|
|
|
|
Thank you,
I'll see this.
Freg
|
|
|
|
|
I think your application didn't have proper sync. on the thread. The problem may not be hitted in single CPU machine. It seemed to be a deadlock on the threads.
|
|
|
|