Type: Posts; User: TheGreatCthulhu
Search took 0.08 seconds.
January 5th, 2014, 12:16 AM
Oh, I was switching among several tabs, didn't see you've answered already - and you gave it quite a bit more thought than I did.
Right - I forgot that the user input will still update the...
January 4th, 2014, 08:40 PM
Superbonzo, awesome post/topic! :D
A few points:
They are transition probabilities, but the "conditional" part is most likely not true - the process where one state collapses into some other...
January 4th, 2014, 07:13 PM
It seems that the NumericUpDownAcceleration objects within the collection returned by the Accelerations property do not change the number of ValueChanged events per second, but rather determine by...
January 4th, 2014, 06:41 PM
Yeah, me to, and in general it's a good thing to do because it helps the client developer debug his own code, rather than hide the error that might come back with a revenge. But, there are specific...
January 4th, 2014, 05:57 PM
Yes, but note that if you are range-checking client input, then you have to decide what to do if the input is invalid (throw exception, use default value, ignore, etc.) - so if you look at it from...
January 4th, 2014, 05:52 PM
You are, of course, correct, but I think the OP is not really looking for an existing solution/framework, and rather wants to learn and understand the inner workings of such architectures.
January 4th, 2014, 03:20 PM
But note that, depending on how you construct your code, even using enums can give you the same error. Enums can be type-casted from integers, and so can end up having values you didn't specify in...
January 4th, 2014, 02:57 PM
If BusyIndicator is an instance variable or a property, then it's because those two methods, GetDriveAndFile() and CRCChecker(), are static.
If you can change the code of those methods, then either...
October 16th, 2013, 06:20 AM
Well, we normally can't tell if you have mistakes without knowing what the system is supposed to do and how it's supposed to function in more detail - because there's no one specific design that is...
October 14th, 2013, 07:20 PM
I think you could use the same approach video games use - they basically let the message loop run as fast as possible, getting (and making) status updates on each iteration. So your program is just...
October 14th, 2013, 04:47 PM
BTW, to make a copy of a list, you must do it explicitly (or in general, for other data structures, use a method that does it, if one is provided - but make sure to read the docs to know how deep the...
October 14th, 2013, 04:45 PM
To understand interfaces you first need to have at least some idea of the concept of type abstraction (generalisation), type derivation and specialization, and inheritance in object-oriented...
October 14th, 2013, 04:30 PM
Arrays are reference types (like classes); this essentially means that largeFile is, conceptually, a pointer to the actual array (whatever the actual implementation is "under the hood"), except that...
September 15th, 2013, 09:46 AM
No, when you declare a struct, the same rules apply as when you declare a class - but they behave differently in a very specific way.
To actually create your struct in memory, you have to create one...
July 29th, 2013, 04:53 AM
Well, OK, I too feel that calling Dispose() inside a using block is redundant, but as far as calling Close() is concerned, although it is technically redundant as well, I disagree that it causes...
July 26th, 2013, 11:11 PM
Keep it as simple as possible. There's no need to overthink it or invent some crazy optimization strategies at this point - if you can make the code more readable, more intuitive, and more bug free...
July 26th, 2013, 10:47 PM
Yes, since SqlDataReader is a class (and not a struct), it is, in essence, returned by reference.
In C#, classes are also known as reference types, because they are essentially managed pointers...
July 24th, 2013, 01:06 PM
Tested the code - it runs, and produces the output I expected, but I can't be sure if that is what you wanted.
It occurred to me that it is possible that the "conditions" require some sort of...
July 24th, 2013, 12:58 PM
I think a good general guideline is: use it if it helps avoid needless repetition.
var aDictionary = new Dictionary<string, List<DataItems>>();
July 24th, 2013, 12:39 PM
Ok, I went through your code and I think I see what you are trying to do, but you are making it more complicated than it needs to be, I think.
In essence, you have a 2D array of inputs which...
July 22nd, 2013, 06:33 AM
If I understood you well, although subgroup IDs (keys) are not unique for elements, they are unique per subgroup, and you need to be able to dynamically change the number of elements for each...
Oh, man, this is gonna be a long post...
About structs vs classes:
Well, let me first make sure you understand what they are before I explain the difference.
Both are used to define new types....
Oh, BTW, I recommend compiling the games yourself, but If you wanna try and run the exe-s that are in the rar archive, go for the ones in the Release folder (those in the Debug folder are probably...
I see that you've been trying to get things working, judging by that code in the PM you sent me. I may have time to check it out in more detail later, and provide some comments. Meanwhile, I've...
Didn't see that last post. OK, the environment can be static, but still, in order to move your "Mario" around, you'll need to use that loop. I'll make a sample VS2010 project to show you the...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.