CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dcell59

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    26
    Views
    10,530

    Re: C# Interview Questions

    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...
  2. Replies
    6
    Views
    1,528

    Re: Missing "0"s when converting hex to byte

    X = hex
    2 = 2 digits, left pad with 0
  3. Replies
    26
    Views
    10,530

    Re: C# Interview Questions

    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...
  4. Replies
    4
    Views
    1,022

    Re: Handling Errors

    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...
  5. Re: Anyone Interested in Sourcecode of a DockingPanel Manager ?

    I would like a copy. I could use it in a side project I'm working on for my rafting club.
  6. Replies
    10
    Views
    1,643

    Re: Truncating double values

    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...
  7. Replies
    2
    Views
    2,517

    Re: Decimal to UInt32

    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...
  8. Replies
    7
    Views
    3,445

    Re: Design Pattern - Momento

    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...
  9. Replies
    180
    Views
    21,937

    Re: Learning C sharp

    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.
  10. Replies
    7
    Views
    3,445

    Re: Design Pattern - Momento

    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...
  11. Replies
    6
    Views
    1,218

    Re: save Stack to Disk File

    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.
  12. Replies
    3
    Views
    886

    Re: Progress bar with string.IndexOf() ?

    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...
  13. Replies
    5
    Views
    820

    Re: casting question

    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...
  14. Thread: Undo and Redo

    by dcell59
    Replies
    12
    Views
    2,345

    Re: Undo and Redo

    Nice!
  15. Replies
    23
    Views
    3,320

    Re: Please Help in C# Project

    What I want to know is how much he's willing to pay. My rate for an unspecified project starts at $150/hour... :eek:
  16. Replies
    3
    Views
    998

    Re: Drawing in a Panel?? HELP

    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...
  17. Thread: Undo and Redo

    by dcell59
    Replies
    12
    Views
    2,345

    Re: Undo and Redo

    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...
  18. Re: Getting a programs ui to run at the login prompt

    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...
  19. Replies
    9
    Views
    1,572

    Re: Regular expression

    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.
  20. Re: refferencing objects within a dictionary (v1.1)

    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,...
  21. Re: refferencing objects within a dictionary (v1.1)

    It seems OK to me (other than obvious things like missing parentheses). What exactly is the problem you are having?
  22. Replies
    2
    Views
    1,912

    Re: Quicksort of multi column array

    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...
  23. Replies
    17
    Views
    4,026

    Re: To Generate a Random number

    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 =...
  24. Re: Unable to append encrypted serialized queue's to same file.

    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...
  25. Re: Unable to append encrypted serialized queue's to same file.

    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...
Results 1 to 25 of 489
Page 1 of 20 1 2 3 4





Click Here to Expand Forum to Full Width

Featured