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

Search:

Type: Posts; User: AshBrennan

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Replies
    1
    Views
    712

    Threadpool & Generic Lists

    Hey all

    Well I've got the basis of using single threads to process a piece of logic within my code, however I'm not certain about the threadpool. Below is a pseudo style example of what I'd like...
  2. Replies
    2
    Views
    2,711

    Using Threadpool

    Hey all

    Well I've started threading for the first time, and it has been pretty easy so far, however I've moved on to the threadpool and I'd really like some advice.

    Basically I want to use...
  3. Replies
    3
    Views
    739

    Improve my Regex Function

    Hey all

    Well I've written the following piece of code, essentially it finds a URI within a big string of tags and such, and next the domain name e.g. codeguru is grabbed, although both dots are...
  4. Replies
    1
    Views
    699

    Managing Threaded Delegates

    Hey all

    Well I manage to get this working, although I think my solution is mostly likely not the best, and there is probably a better way to do this. Basically I was trying to pass paramaters...
  5. Replies
    10
    Views
    1,071

    Re: How easy is it ?

    This easy |---------------|

    In all serious, it will vary on if the person has had previous experience with programming, from a language and syntax perspective, I'd say moderately easy, however I...
  6. Replies
    1
    Views
    1,052

    Delegates & Events

    Hey all.

    I'm really trying to get my head around delegate events, essentially I want to do some processing in a class, and I want a form control to subscribe to my delegate event to display the...
  7. Replies
    1
    Views
    741

    Running an App on Computer Startup

    Hey all

    Basically I've almost finished writing a trivial backup application, and I'm planning to add it to windows boot list via the registry, startup folder etc. However I have no idea how I'm...
  8. Replies
    5
    Views
    1,256

    Re: String Manipulation Help

    Yeah definitely, and the time won't make much difference, I just wasn't sure how big on an impact it would have :).
  9. Replies
    5
    Views
    1,256

    Re: String Manipulation Help

    That's awesome, but I'm going to be doing this many many times over, wouldn't creating a new instance of the class over and over be bad performance wise?
  10. Replies
    5
    Views
    1,256

    [RESOLVED] String Manipulation Help

    Hey everyone

    Basically I'm going to be looping through several thousand URI's (URL's), and I only need to extract the domain name for example:

    http://www.website.com/category/somepage.html...
  11. Replies
    8
    Views
    2,208

    Re: Load text from webpage

    Well you you use the WebClient.DownloadString method to download all the source code, then simply display the content in a web browser control within your project.

    If you just want to extract the...
  12. [RESOLVED] Getting Object Sender Text Property value

    Okay basically I want to find out which control has called a method, so I use



    private void Test(object sender)
    {
    string s = sender.ToString();

    ...
  13. Replies
    8
    Views
    2,075

    Re: html parsing

    const string htmlTag = @"<div>(.*?)</div>";


    Make sure to include a reference to System.Text.RegularExpressions
  14. Re: Class Communication & Storing Data

    Thanks for the explanation & example Salbrismind. I've just spend about 15 minutes re-reading and reading up more on static decelerations and I understand what you're saying, cheers.
  15. [RESOLVED] Class Communication & Storing Data

    Hey all

    So another question I'd appreciate some info on. Basically lets say I have several class within my project, however one of my class needs to interact with another class via acessing a...
  16. Replies
    7
    Views
    4,220

    Re: Storing Many Data Types Generic List

    Yeah my bad, when first trying this I used a breakpoint and saw 3 records in domainList, I didn't notice there all the same records.
  17. Replies
    7
    Views
    4,220

    Re: Storing Many Data Types Generic List

    Hey thanks for the replies, okay here's kinda what I want to do, note this is a very simple example



    public partial class Form1 : Form
    {
    MyDomain Domain = new MyDomain();

    ...
  18. Re: [RESOLVED] Catch Multiple Exceptions In One Statement

    Erm, oops :blush:
  19. Replies
    7
    Views
    4,220

    Storing Many Data Types Generic List

    Hey

    Sorry to ask such as newbie question, however despite my best efforts, I haven't been able to find examples on this. I use generic lists of <T> quite a lot, as I love the numerous benefits...
  20. Re: [RESOLVED] Catch Multiple Exceptions In One Statement

    Yeah Arjay that's exactly what I tried first time, I've even create a new project and yet HttpUtility isn't recognised, weird.
  21. Replies
    2
    Views
    1,760

    Re: C# Screen Scrape/Object Control

    Well you'll be wanting to use the WebClient class, although if I'm correct it's really just a wrapper for common objects for the http classes. Anyway look into using the NetworkCredential class which...
  22. Re: [RESOLVED] Catch Multiple Exceptions In One Statement

    Thanks for the tip, however I can't find any reference to the Server class, I've tried:

    HttpContext.Current.Server.UrlEncode
    System.Web.Server.UrlEncode

    It seems it's only for ASP.NET and not...
  23. Re: Catch Multiple Exceptions In One Statement

    Thanks Arjay, that's the advice I was looking for.
  24. [RESOLVED] Catch Multiple Exceptions In One Statement

    Hey all

    Okay basically I have the following code




    WebClient getPages = new WebClient();

    try
  25. Replies
    7
    Views
    1,229

    Re: String Manipulation Help

    Woot that regex example it really what I needed, I'd already tried a few expression, due to using them for various other things, but I couldn't get this one correct, thanks!
Results 1 to 25 of 43
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured