Search:

Type: Posts; User: Mr.Macdonald; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    661

    Re: Pygtk Trouble

    I got that fixed. I needed to call main and then have an event handler draw the objects.

    Is there a way to force something to draw? I am trying to draw a circle, sleep and then draw another...
  2. Replies
    2
    Views
    661

    Pygtk Trouble

    This code

    #!/usr/bin/python2.7

    import pygtk...
  3. Replies
    1
    Views
    1,101

    Omnikey Smart Card Reader

    I am trying to install the Omnikey Smart Card Reader. I have all the drivers installed, and now I am trying to write a program to read the information off the card.

    OMNIKEY 5325 FW5.10
    DOCS
    ...
  4. Replies
    5
    Views
    1,118

    Re: Generate Audio in C

    I found this WFS

    When I try to write to dsp, it prints
    open of /dev/dsp failed: Device or resource busy

    Apparently this is only for the deprecated OSS. Is there an ALSA equivalent?
  5. Replies
    5
    Views
    1,118

    Generate Audio in C

    I want to write a raw bit stream and output it to the audio device.

    So I want to run my program and have it generate audio which is streamed to my speakers. Not my PC beeper speaker (controlled by...
  6. Replies
    43
    Views
    3,085

    Re: char* issue in C

    Pastebin stuff is still there
  7. Replies
    43
    Views
    3,085

    Re: char* issue in C

    I had no clue that I actually did that! Wow

    As for the realloc, I have done that before and had no issue with the string termination ('\0'). I tested it with different allocation length (ie len,...
  8. Replies
    43
    Views
    3,085

    Re: char* issue in C

    Removing "ret = realloc(ret, len*sizeof(char))" from _add fixed the SEGFAULT

    with either split() func

    I could of sworn I tested for that

    Anyone care to explain whats wrong with this, I did...
  9. Replies
    43
    Views
    3,085

    Re: char* issue in C

    There is definitely an issue with split().


    struct margs split(char* expr) {
    printf("%s\n", expr);
    }

    struct margs osplit(char* expr) {
    struct margs args;
    char *cpy, *tmp;
  10. Replies
    43
    Views
    3,085

    Re: char* issue in C

    Not that all that other stuff isn't interesting, but can we get back on topic.



    I didn't copy this into the code

    char* _div(int argc, char** argv) {
    int i, len=0, rlen = 4*argc, slen;
    ...
  11. Replies
    43
    Views
    3,085

    Re: char* issue in C

    parc.h
    parc.c
    test.pc
  12. Replies
    43
    Views
    3,085

    Re: char* issue in C

    Something weird is going on. I ran my code in valgrind, and it worked perfectly. None of the above issues existed at all.
  13. Replies
    43
    Views
    3,085

    Re: char* issue in C

    I understand the whole memory issue. It is not a const string. It is read from file and modified several times. The issue occurs at a distinct point during one of those times.

    The point that it...
  14. Replies
    43
    Views
    3,085

    char* issue in C

    I honestly have no clue what or why it is happening, but this is what I see.

    If I print a char* before calling a certain function, it prints fine. If I then also print the same char*, but inside...
  15. Replies
    4
    Views
    3,849

    [SOLVED] Re: Java Identifier Expected

    Wow, that simple
    Thanks
  16. Replies
    4
    Views
    3,849

    [SOLVED] Java Identifier Expected

    First off, yes this is homework. But don't freak out, because I just want a compiler error fixed. I have been programming for 4 years, I avoided Java for the last 3 of those to find that college uses...
  17. Replies
    4
    Views
    340

    C Macro Inserting

    I want a macro

    #define mac(x)

    to do this

    mac(add)

    --Yields-->
  18. Replies
    6
    Views
    711

    Re: GCC Optimization Destroys Function

    Thank you,

    But why don't I?
    this isn't the final code, just testing bits and pieces so the final gets put together without confusing errors

    EDIT:
    Does this only apply if I want to print...
  19. Replies
    6
    Views
    711

    Re: GCC Optimization Destroys Function

    How do I fix it?
  20. Replies
    6
    Views
    711

    GCC Optimization Destroys Function

    First off, this is a theory! I can't prove it. only observe it.

    I have this function

    void react(struct input_event* ev) {
    if (ev->code == KEY_Q)
    *end=0;

    #define IFEV(k) if (ev->code...
  21. Thread: GCC Error

    by Mr.Macdonald
    Replies
    4
    Views
    319

    Re: GCC Error

    The code doesn't have to do anything to get that error.

    No references! At least we got pointers
  22. Thread: GCC Error

    by Mr.Macdonald
    Replies
    4
    Views
    319

    GCC Error

    Why do I get the below error?

    Code
  23. Replies
    1
    Views
    262

    Penguin Mail

    My dad has a penguin mail account, it acts like a proxy/router for email. An Email goes to xxxx@penguinmail.com and is routed to specified accounts elsewhere.

    I want one, but can't find how to get...
  24. Replies
    8
    Views
    781

    Re: Explain this physics

    Thank you, I get it. That first video helps a lot
  25. Replies
    8
    Views
    781

    Re: Explain this physics

    how can a wire (the effective function of the rail gun) carry a current that generates a magnetic field which produces a force on the very thing that is producing it?

    Sorry for the long sentence,...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4