Search:
Type: Posts; User: dcell59
Search:
Search took 0.05 seconds.
-
Well, now you're just getting personal. I guess I could come back and say that an interviewer with your attitude wouldn't have to worry about giving me an offer, but in reality I think we'd probably...
-
X = hex
2 = 2 digits, left pad with 0
-
Are you expecting more than "use the debugger" for the first one?
The other two questions seem kind of obscure to me. What kind of person are you looking for that knowing the answers to those...
-
Just to weigh in on the original question: The two catch blocks are kind of redundant, and in this case they aren't necessary. You can just have a try and a finally (at least that's what the docs...
-
I would like a copy. I could use it in a side project I'm working on for my rafting club.
-
TrimEnd() doesn't work the way you are thinking. You specify the characters to remove, not where to start from. If you have the string "Stuff..." and you do a TrimEnd('.') on it, you get "Stuff", but...
-
Right, you can't do it the way you wrote the code. However, if there is some special reason you need to use ints, you can multiply and divide (as long as you don't have to worry about overflow). I...
-
April 30th, 2007, 07:13 PM
Wouldn't it make more sense just to have a default Command class that saves/restores state like Memento? That way, when you want to change a Command to be a simple reversible command, all you have to...
-
April 30th, 2007, 07:03 PM
Have you ever heard the term "trojan"? How do we know your program won't start deleting files or screwing up the registry?
As for your Dispose question, you didn't derive from IDisposable.
-
April 30th, 2007, 01:13 PM
Isn't Memento a pretty heavyweight way to implement undo/redo? It's OK if you have a single small object, but if you have lots of objects that can be changed in small ways, you end up saving lots of...
-
April 30th, 2007, 12:56 PM
Maybe he just wants to save a Stack object to a file. A stack has SerializableAttribute, so if his elements are also serializable, the examples in the MSDN should apply.
-
April 27th, 2007, 12:50 PM
If all your program does is to read in a big file and look for a small set of keywords, this is probably the fastest way. There's nothing particularly special about IndexOf, so you could write your...
-
April 26th, 2007, 10:30 AM
You could also use i.ToString(). int is an object, and it has a ToString() method. In fact, it has a pretty powerful version, with formatting and everything. I've seen a lot of people here that will...
-
April 25th, 2007, 05:36 PM
-
April 25th, 2007, 05:36 PM
What I want to know is how much he's willing to pay. My rate for an unspecified project starts at $150/hour... :eek:
-
April 25th, 2007, 02:53 PM
Me, either. I did a quick sample app where I had a form and a menustrip. I set up a custom Paint event that did a e.Graphics.Clear(Color.Blue) and it drew everything fine.
Still, it's probably a...
-
April 25th, 2007, 12:22 PM
I managed a small team that implemented a graphics program with pretty much unlimited undo/redo. I didn't work on that aspect of the system, but I did understand what was going on. Basically, every...
-
April 24th, 2007, 06:56 PM
I think that the real question is what causes the program to run before the login prompt. Do you have the installer for the VB program? Or, are you able to install it and see what registry entries it...
-
April 23rd, 2007, 01:50 PM
You can certainly do that, but it's not really what you want to do. Adding the anchors (^ for beginning of string, $ for end of string) should have fixed your problem.
-
April 22nd, 2007, 09:27 PM
Interesting. It looks to me like the main problem is that there's no way for the calling code to know that mc.d["keyval"] returns an object of type holdstuff, so it can't get to it.
BTW,...
-
April 22nd, 2007, 07:58 PM
It seems OK to me (other than obvious things like missing parentheses). What exactly is the problem you are having?
-
April 22nd, 2007, 07:53 PM
Please use code tags.
I'm not sure what problem you are having. Have you run it under the debugger to make sure your routine is called when you call the Sort method? Have you looked at the...
-
April 22nd, 2007, 06:27 PM
I'm not sure what kind of help you need, but I can make some suggestions.
For extracting parts of the date/time, you can do something like:
DateTime now = DateTime.Now;
string d2year =...
-
April 20th, 2007, 07:05 PM
Here's a simple example. Let's say you have an encryption system that has a set of 10 translation tables. You use the "key" to determine the order of the translation tables. You translate the first...
-
April 20th, 2007, 06:35 PM
Oh, wait. I took another look at your code and I think I see something wrong. Each timeyou append new data to a file, you create a new CryptoStream. But, when you read the file, you use the same...
|
Click Here to Expand Forum to Full Width
|