|
Is it a managed or unmanaged DLL?
/\ |_ E X E GG
|
|
|
|
|
gmellado wrote: i have to read some dll from a file and take all their methods and properties
You might want to look at the System.Reflection namespace. In that namespace you will find the Assembly[^] class. You will be able to load the DLL (Assembly) and then query it to GetTypes[^] (classes, structs, enums) that are in the assembly. The Type[^] class will give you ways to GetMethods[^] and GetProperties[^]
Once you have that information you can then use any of the various ways to format this information into an apporpriate XML file.
Does this help?
|
|
|
|
|
Hi...
I want to use FIFO queue concept for PC serial port communication through PC com port for data transmission or reception.
Can anybody suggest me any good document available on net for this or any suggestion how i can use it in my application...?
Thanks,
Vinay
|
|
|
|
|
There's a built-in FIFO queue structure in the form of System.Collections.Generic.Queue.
From there, you could just queue up some communication procedures, each one getting executed in order from the queue.
|
|
|
|
|
Thanks for reply...
in my application i'm doing smething like this...
string TransmitData = "My Data To be tranmitted";
// on some button click i am ptting that data in queue
Queue.Enqueue(TransmitData);
Now i want to check that if there is ay data in my queue then i have to transmit it...so how i can check that data is present in Queue or not...& if there are 3-4 requests for same data to be transmitted are present in the queue how i'll identify top most (first in data) & how my application will transmit that data...
SerialPort.Write(TransmitData);
Can u suggest me anything for this...
Regards,
Vinay
|
|
|
|
|
Queue<string> myQueue = new Queue<string>();
myQueue.Enqueue("My Data To be transmitted");
if(myQueue.Count > 0)
{
}
string firstItem = myQueue.Peek();
string firstItemNowRemoved = myQueue.Dequeue();
|
|
|
|
|
Hi,
Look at the System.Collections.Queue Class which represents a FIFO collection. Conversely, the Stack class represents a LIFO type collection.
/\ |_ E X E GG
|
|
|
|
|
I want to know what is the programming language used to build realplayer ?
|
|
|
|
|
|
At a guess - C.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
who said it was built with only one language?
No hurries, no worries.
|
|
|
|
|
Most likely Brainfuck.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
My English is bad , so I am sorry firstly.
I want to using AxAcroPDFLib.AxAcroPDF to print.
Now I can show PDF-files in Windows Form only.
Could you give me some sample code of AxAcroPDFLib.AxAcroPDF who know how to using?
Master sample is how to Print.
May as well Add-ons of others methods of AxAcroPDFLib.AxAcroPDF.
Thank you very much!
|
|
|
|
|
|
I'm using the combobox method to validate input data, but the first set of displayed data doesn't get validated because the SelectedIndexChanged won't fire. I tried moving the dataload call into Form.Load but that doesn't work either.
|
|
|
|
|
How are you creating the loading of the data? Your validations should be done before populating the data controls. What event is firing to cause the population of the data? That seems to be the last place you would validate input.
|
|
|
|
|
Hi all,
I'd like to make it possible to store and retrieve the bounds of all of the windows in my mdi window so that the program "remembers" where the user opened a certain window when the program ran last.
To do this, I created a base class which stores the bounds of each window. My problem is this: How can I hook up the right windows to this data? Since some windows are created dynamically and can be instantiated multiple time I need some kind of unique ID for each instance (the window name will not do since this is constructed dynamically). Can I use the window handle for this? Do any of you have a suggestion that might help in this?
All help is greatly appreciated, thanks in advance...
|
|
|
|
|
You can't use the window handle because this is allocated a new one each time you open a window. You could always use the Tag property to store a unique name.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
How about the name of the class deriving from <code>Form</code>. Combined with the namespace name, surely it should be unique within your application?
|
|
|
|
|
Actually it wouldn't, since multiple instances of the same class can be opened at once. Thanks for the suggestion though.
|
|
|
|
|
Hi together,
first of all I'm sorry to post this question here but I wasn't sure where else to post it.
I'm trying to write a programm in order to track people walking past a webcam. What I actually need is their position infront of the camera.
I have tried several things until now. Using different software. MAX/MSP, Java, and OpenCV/C++ which seems to be the best thing. I'm also working on EyesWeb which also uses OpenCV. I need to transfer the data I get to Flash. EyesWeb does that via OSC.
But I'm still not sure which language to use or which language will have the best performance.
Now I found some articles about tracking in C#. Does that work good?
Sorry I'm new with programming in C/C++/C# I'm used to programming in Java.
So I'm still not sure if OpenCV and C++ is the best thing.
In EyesWeb I tried to use Background Subtraction in order to get silhouettes of the people walking by. The problem is that the webcam has too much noise and the programm analyzes motion in parts where there is none.
Afterwards I wanted to use blob extraction to get the position of the people. The second problem was that sometimes a color has the same gray value as the background and then there's no differnce in that part
Then I heard about block matching which might be better, but I'm not sure. Is this the right algorithms for my project?
Does anyone have experience with this kind of tracking?
Hope you can help or have some hints
-- modified at 9:46 Monday 30th October, 2006
|
|
|
|
|
Don't know if you have seen this in CP?
Motion Detection[^]
The author has a couple of articles dealing with motion tracking etc.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
Yes thank you,
I have already seen this article and it's very interesting.
That's what got me to think about using C#.
But I'm still not sure what to use.
I heard that using C++ runs a lot faster then C#
|
|
|
|
|
|
Hello everyone,
I have a problem with my Settings
I want to save my connection string in the Settings.
I initialize a form and fill the textbox:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />
I can change the string in the gui:
<br />
settings.ConnectionString = tb_ConnectionString.Text;<br />
Now, everything is fine. For testing I changed the connection string in the gui and this changed string appears in the settings.
I changed the connection string in Visual Studio back to the correct string.
This string appears in the settings, in the Settings.Designer.cs as the default value and of cause in the App.config
Now I start the project again an while initializing:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />
setting.ConnectionString is wrong. It is the old/changed string
I removed the setting key, recompiled, added again the connection key to the settings but again the old connection string.
I searched for old string in my project but found nothing.
Restart of Visual Studio...again th old connection string.
How does VS get the old connection string and how can I avoid that?
Thanks for help.
KCT
|
|
|
|