Search:

Type: Posts; User: inu11byte

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    715

    Damn, I can't believe I didn't realize that!...

    Damn, I can't believe I didn't realize that! Rookie mistake. Hahaha. So there's no way to circumvent this?
  2. Replies
    6
    Views
    715

    Why does sizeof only return 4???

    Well... I've just started programming in C again. I've been away from this beautiful language for far too long! Anyway, thought I'd brush up on a few very basic concepts, but it seems I've made a...
  3. Well... you're right, I shouldn't cast it like...

    Well... you're right, I shouldn't cast it like that. I'll change the while to:

    while((subs = fgetc(fp)) != ' ' && subs != '\n' && !feof(fp))

    Any ideas on why I'm get unexpected results? Or more...
  4. #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <tchar.h>


    void retrieveSubdomains(void);


    int main(int argc, char *argv[])
  5. Problem retrieving information from a file line by line.

    Well, I'm trying to scan though a file 'subdomains.txt' and print out what's on each line seperately. E.g.
    file contains:


    this
    file
    means
    nothing_to_you

    I want each line to be printed...
  6. Replies
    2
    Views
    2,771

    Reading input from a file. Program crashes

    Okay, so I'll start off by telling you what I am trying to do.
    I have a text file that has words on each line. E.g.


    this
    is
    a
    test
    forMyProgram
  7. Replies
    4
    Views
    895

    You can find a good video programming series on...

    You can find a good video programming series on C, by Mark Virtue. If one was to search on tpb 'VTC c programming' and get the series done by Mark Virtue, the would be pleasantly surprised. There's...
  8. Replies
    12
    Views
    961

    Thank you, Salem. Can anybody answer my...

    Thank you, Salem. Can anybody answer my questions? Why could I pass an the argument 'argv[0]' into my original program? And why is the point of making a function a pointer?
  9. Replies
    12
    Views
    961

    Sorry, I don't get what you mean. I wanted my...

    Sorry, I don't get what you mean. I wanted my path 'C:\users\*****\Desktop\myfile.exe' to just be 'myfile.exe'.

    Ah, just re-read your post. I was meaning argv[0], not argv[]. Sorry about the...
  10. Replies
    12
    Views
    961

    Never-mind, all is working well. Thank you very...

    Never-mind, all is working well. Thank you very much! Could you tell me why my code wasn't working? Just out of curiosity. Also, why is the function base_name a pointer? Just curious.
  11. Replies
    12
    Views
    961

    Ah, forgot that the backslash was an escape...

    Ah, forgot that the backslash was an escape character... Momentary lapse of knowledge... Hahaha. You're code looks good, but base_name() wont take argv[] as a parameter. :/
  12. Replies
    12
    Views
    961

    No, the above code doesn't work as I would like...

    No, the above code doesn't work as I would like it to, but this code works:


    #include <stdio.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    _explode();
    system("pause");...
  13. Replies
    12
    Views
    961

    Thanks for the quick reply, but it points to the...

    Thanks for the quick reply, but it points to the result of strtok(). I haven't programmed in C for quite a long time, so I have picked up some bad habits. I think there's something wrong with how I'm...
  14. Replies
    12
    Views
    961

    Why wont this work?

    #include <stdio.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    _explode(argv[0]);
    system("pause"); //Yes... I know this is bad.
    return 0;
    }
  15. Replies
    7
    Views
    1,360

    Okay, I'm sorry, I shouldn't have replied like...

    Okay, I'm sorry, I shouldn't have replied like that. :/ I understand you were just trying to help. Anyway, if I was shifting that variable to another area of memory, would that area of memory have to...
  16. Replies
    7
    Views
    1,360

    Are you ........ing kidding me? Where did you...

    Are you ........ing kidding me? Where did you learn ASM?
  17. Replies
    7
    Views
    1,360

    asm asciz question

    Bellow is the example that I am going to use.


    The bellow code should compile on GNU assembler. Syntax is AT&T incase any numbies are curious.

    .data


    HelloWorldString:
    .asciz "Hello"
  18. Can you use inline assembly? Or a simple...

    Can you use inline assembly? Or a simple messagebox. :cool:
  19. Replies
    5
    Views
    820

    Just a few things to note: What is the 'i'...

    Just a few things to note:
    What is the 'i' variable being used for?
    Void main is bad. Read more about why, here:void main(void) - the Wrong Thing
  20. Thank you, I can't believe I was so stupid to...

    Thank you, I can't believe I was so stupid to miss that. Yeah, how I set out the header file isn't how it's 'supposed to be', but I did it for simplicity. I was going to move all unneeded code back...
  21. Why might I be getting these errors? (WinSock2)

    I'm getting the following errors:





    Files:


    bot.h
  22. Replies
    2
    Views
    2,047

    Portable executable in C

    I've been reading up on portable executables(Portable Executable - Wikipedia, the free encyclopedia), as they quite interest me. I would hate to have to compile my programs to work on different...
  23. Replies
    5
    Views
    1,331

    Why are you put and ampersand in front of your...

    Why are you put and ampersand in front of your variable in the printf statement? Remove that, and your problems will be resolved.
  24. Replies
    13
    Views
    1,485

    My bad, I didn't proof read my post before...

    My bad, I didn't proof read my post before posting it. I was meaning 'So, as long as I don't check processor specific options, my code should run on all Windows machines? Sorry for the seemingly...
  25. Replies
    13
    Views
    1,485

    Thank you very much, this was a prefect reply....

    Thank you very much, this was a prefect reply. So, as long as I check processor specific options, my code should run on all Windows machines? If I make a simple hello world program, it will run...
Results 1 to 25 of 70
Page 1 of 3 1 2 3