i am developing application which accesses all my lan machines and output their individual into the text files, but which method is good using Elog class or using wmi.or tell me is there any way to specify username and password in Elog class
Does anyone know if I can call code created in VB 6 from C# 2008?
Yes, you can.
Daniel Fowler wrote:
If so, what areas (or keywords) do I need to look up to reaserch this on?
VB6 dlls use COM. It's called COM interop.
Pretty much all you do is VS is add a reference, go to the COM tab, locate the library you want to use. VS will create an interop assembly. (You can look in this assembly to see the details of how the COM stuff is called, if you fancied doing it manually)
Use backgroundworker so your threads will be working asynchronously with the UI thread. but only one thread will be executed in async mode also otherwise your application will affect the main UI thread resulting in hung up application.
if you hope to get MMMMMyyyyy NNNNNaaaaammmmmeeeee iiiiisssss BBBBBrrrrruuuuuzzzzzeeeee
then your code isn't the right one. The Console class is somehow synchronized in an effort to
keep the output readable, so each Console.WriteLine will execute in sequence; the sequence of
the threads will however be random, but since they all emit the same text, you won't notice.
Ok, in the initialization function i'm getting data from database and then i'm setting this data to my controls, so that means I have broken the SRP, even though the purpose of my method is to fill controls with data taken from the database?
I'm doing the same thing with the method PopulateControlsFromItem - firstly i get info from the database and then i'm filling the controls from view with data. I could get rid of this method and place the code in the initialization function, but the code would look messy.
Can you please give me a suggestion of how I should refactor my presenter class?
Last Visit: 31-Dec-99 18:00 Last Update: 17-Oct-21 19:30