Search:

Type: Posts; User: slcjoey

Search: Search took 0.01 seconds.

  1. String parsing(parsing comments out of HTML file)

    I'm trying to write some code to parse out comments from an html file, as it is now, it parses out the first comment fine, but any subsequent comment isn't removed.. it finds the start tag odf the...
  2. Thread: printf hex

    by slcjoey
    Replies
    6
    Views
    165,940

    I think your reply is a bit confusing. int...

    I think your reply is a bit confusing.



    int a = 0x0a;
    printf("%d",a); /* outputs 10 (decimal)
    printf("0x%x",a); /* outputs 0xa */


    I think the original OP is looking how to print out the...
  3. Replies
    13
    Views
    3,578

    This code was perfectly fine up until 1999. heh....

    This code was perfectly fine up until 1999. heh.

    Of course, I guess code riddled with buffer overlows was perfectly fine until the Morris Internet Worm opened up everyones eye -- and yet still...
  4. Replies
    5
    Views
    1,168

    Seems to work here. One thing I noticed...

    Seems to work here.

    One thing I noticed quickly is that you will output the line "Your pay this week will be $x" twice if the user has worked < 40 hrs.

    You should move this:


    check =...
  5. Replies
    13
    Views
    3,578

    Considering the information I can glean from this...

    Considering the information I can glean from this post and the other thread you've started today, I'd say that you are still very much a beginner.

    I hope you don't take it as an insult, it just...
  6. Thread: Weird Error

    by slcjoey
    Replies
    3
    Views
    1,411

    Your first thoughts of what the problem may be...

    Your first thoughts of what the problem may be should not be malfunctioning hardware/problems with .NET -- it should be your code.

    Not much anyone can do without seeing the code in question.
  7. Replies
    6
    Views
    1,342

    Sounds like it's working as intended ? It...

    Sounds like it's working as intended ?

    It skipped "text2" because "text2" did not exist, there was no token.
  8. Replies
    15
    Views
    2,013

    I hate to be a nit, but.. #1: Your loop...

    I hate to be a nit, but..

    #1:

    Your loop will fill fmt[0] to fmt[9]

    You skip fmt[10] and you overflow the buffers bounds in #2 by writing to fmt[11].

    fmt[10] should be the null terminating...
  9. Replies
    15
    Views
    2,622

    It wasn't an attack on his intelligence. I'm sure...

    It wasn't an attack on his intelligence. I'm sure McDonalds has a lot of smart people working for them, what they aren't chalk full of is people with drive and motivation, people who can take the...
  10. Replies
    15
    Views
    2,622

    www.mcdonalds.com/career_opportunities.html

    www.mcdonalds.com/career_opportunities.html
  11. Replies
    9
    Views
    1,735

    Being newbie doesn't mean to have everyone else...

    Being newbie doesn't mean to have everyone else do the research and work for you.

    You'll never get anywhere if you have to have your hand held for such trivial "problems".
  12. Replies
    8
    Views
    1,240

    I hear McDonalds is hiring.

    I hear McDonalds is hiring.
  13. Thread: int to string

    by slcjoey
    Replies
    6
    Views
    1,251

    Thank goodness the art of game development never...

    Thank goodness the art of game development never requires one to convert an integer value to a string!!

    :cool:
  14. Just out of curiosity. How do you do this? I'm...

    Just out of curiosity. How do you do this?

    I'm guessing you'd use the "resume" features of the ftp protocol? so you'd just tell the server to resume at say half way into the file?
  15. Replies
    3
    Views
    1,821

    Hi, thanks for the reply. Indeed, I stumbled...

    Hi, thanks for the reply.

    Indeed, I stumbled upon this myself and have done what I needed to do.. but I must say, it's quite a hassle :o

    I've only ever had to do some small IPC stuff that was...
  16. Replies
    3
    Views
    1,821

    Anyone?

    Anyone?
  17. Replies
    3
    Views
    1,821

    Calling function from remote dll

    Hi,

    I have a program that displays a listview of items. I want to be able to grab these items from a seperate program.

    I can't just SendMessage() because it requires passing LVITEM structs.
    ...
  18. Replies
    25
    Views
    29,467

    You need to read a book....

    You need to read a book....
  19. Replies
    2
    Views
    3,038

    I'm just trying to write a generic class to...

    I'm just trying to write a generic class to parse all tags and their associated data so that in the future if I need to parse out certain data from an html page I could use this.

    Mostly, I'm...
  20. Replies
    2
    Views
    3,038

    Parsing HTML files

    Can anyone suggest a good method to parse html files?

    I started out using just a linked list with each node containing a vector of strings that contain the html tag and the data inside that tag.
    ...
  21. Thread: Grabbing HTML

    by slcjoey
    Replies
    3
    Views
    959

    You require sockets/network programming. A...

    You require sockets/network programming.

    A good tutorial exists here:
    http://www.ecst.csuchico.edu/~beej/guide/net/

    For windows specific(WINSOCK) you can read this:...
  22. Thread: Threading

    by slcjoey
    Replies
    2
    Views
    1,763

    Threading

    in the mani thread i have something like



    while(rt.Running)
    {
    switch(rt.State)
    {..}
    ..
    }
Results 1 to 22 of 23