|
Thank you so much Luc for your awesome response! I will definitely create a logging class as it sounds like the best option.
|
|
|
|
|
you're welcome.
|
|
|
|
|
hi, I am working on a cyber cafe program and using sql server express. Will I need to install sql server to the target pc's to use my program? And is there anything that I should be careful when compiling?
|
|
|
|
|
Maybe.
More detail would be helpful. Is it client/server? Only the server needs the server software.
|
|
|
|
|
the program is a client/server application and only server will be using the database locally
One more question: if I compile my program, is the database I created included in the compilation? (I use VS C# Express with Sql exspress)
|
|
|
|
|
teknolog123 wrote: is the database I created included in the compilation
The data files? No. But you could include them in the deployment/installer project.
|
|
|
|
|
|
If you run your program locally as a server, you need to install.
I think what you should be careful about is the connecting string of your database file.
|
|
|
|
|
Hello
I've just find out a strange behaviour of the ComboBox
If you set the DropDownWidth property of a combo the Width it not activated if the dropdown list is opened by typing text in the combo (SuggestAppend mode)
However if you open the list using the Combo button the given width is taken
And after the width is activated either using the button either by resizing the dropdowlist manualy the width setting remain active until the form is closed
How can I directly set the right width (is there an opening event that I can use)
Thanks for anu suggestion
|
|
|
|
|
hi men and womans
I want to send mail to yahoo
but some problem occured
as you know I used smtp class
and I wrote the server name for yahoo like that
smtp.mail.yahoo.com
but the an exception with message like that "server dose not support secure connection"
and thanks
|
|
|
|
|
Try setting EnableSsl property to false or see this[^] thread.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Hello everyone.
As far as I know Jagged array is also called "array of array" does that mean that I can use a definition like int[][][] Jagged Array = new int[3][3][]? And does it mean "array of array of array"?
I mean if I use something like that does it contain 9 arrays in it? if I'm wrong how can I define something like that?
Thanks in advance!
|
|
|
|
|
|
Almost, yes it would be "an array of (array of (array of ints))" (with parentheses for extra clearness)
However, you can only create 1 array at the time, so you can make a new int[3][][] , but then you'd have to loop over it and fill every entry with a new int[3][]
You would then have 9 places in which you could put an "array of int" (but they are all null ) so only 1 + 3 arrays in total (the outer array and the three middle arrays). (until you also create the arrays of ints)
It's not all that useful to do this though (when all sub-arrays have the same length), you might as well make a new int[9][] and index it with [3*i+j] instead of [i][j] , which takes much less code (you don't have to fill the outer array with arrays). You could extend this to three dimensions if all arrays of int will be the same length.
|
|
|
|
|
|
Hi Sokka93,
For an excellent discussion of "jagged arrays" compared to "multidimensional" arrays, see : [^]
For performance comparisons of jagged and multidimensional arrays see : [^]
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
|
HI All,
I need to write a routine that read, at same time, 3 files and raise each string on 3 separate event handler.
I think that the correct way to solve this problem is multithread. It's correct?
Can you help me with an example?
Thanks a lot.
Alex
|
|
|
|
|
Can you provide more details?
|
|
|
|
|
I need to read, at same time, 3 files that contain info to horse race. This 3 files contain the info for position istant by istant any horse (time info, x and y for draw point on virtual circuit). The start is equal for ALL, and I need to draw the position of any horse at same time ... and know how arrival first, second and three after passing the virtual "end line" ...
Alex
|
|
|
|
|
How the drawing is initiated?
For example:
I have to update my animation when one of the files is updated on the disk.
Or
I have to update my animation with specific time intervals.
|
|
|
|
|
in 2 mode:
- In real time from event receive from 3 comPort
- in post processing by read all files saved on hard disk (read time field saved internal)
Alex
|
|
|
|
|
Correct me if I am wrong, in both cases the files will contain full history of the race for given horse.
For example:
0 milliseconds 0 meters
2 milliseconds 0.3 meters
8 milliseconds 0.8 meters
12 milliseconds 1.1 meters
…
88354 milliseconds 2000 meters //Finish
|
|
|
|
|
Yes, in theory ... but I don't know what problem can generate a COM PORT EVENT ...
Alex
|
|
|
|
|
Assuming that you have three files with full history of the race for each horse from start to finish and you are requested to create animation that simulates the race while preserving proper timing of the race. That what I would do
1. Load each file into corresponding list. Each list element represents position of the horse and timing of this position. Each list is sorted by time.
2. Merge three arrays into one list. Each list element represent time and position of all three horses at this time. The list is sorted by time.
3. Develop UI control that is capable of painting one race frame based on individual element from array created on step 2. Development of such control might be challenging but in general you have to assure that method called to draw particular frame “HorseRaceArenaControl::DrawRaceFrame (horse1Position, horse2Position, horse3Position ) “ can be called from arbitrary thread. The topics that you have to explore are Control::Invoke, Control::OnPaint, “implementing own-drown control”,
4. To call DrawRaceFrame method for each element in the list created in step 2. The method has to be called with time intervals as recorded in each element. You can use .Net System.Threading.Timer class to assure proper timing.
I realize that this is not detailed instruction but rather general guidelines. Hopefully it can serve as starting point.
|
|
|
|