Search:

Type: Posts; User: genter

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,903

    I'm generating assembly that calls it. Look at...

    I'm generating assembly that calls it. Look at some C++ code in a disassembler.
  2. Replies
    12
    Views
    2,903

    For those interested, heres quite an ugly hack...

    For those interested, heres quite an ugly hack that does what I need:



    inline void *get_address (int num, ...) {
    va_list args;

    va_start (args, num);
    return va_arg (args, void*);
    }
  3. Replies
    12
    Views
    2,903

    I'm basically generating assembly at runtime,...

    I'm basically generating assembly at runtime, that is then immediately ran. At the lowest level, a c++ function has one additional arguement, a pointer to this instance of the object. The pointer...
  4. Replies
    12
    Views
    2,903

    I'm obviously not too familiar with c++, I'm...

    I'm obviously not too familiar with c++, I'm really coming from a C/assembly background, and use gcc.

    I'm dealing with a class thats as simple as the one above, and doesn't really deal with...
  5. Replies
    12
    Views
    2,903

    No that doesn't work, but I am on amd64. A...

    No that doesn't work, but I am on amd64. A pointer is still the same size as unsigned long, however, on both architectures, I'm pretty sure.
  6. Replies
    12
    Views
    2,903

    Thats what I was afraid of. And I was using...

    Thats what I was afraid of. And I was using printf because I know C very well, and I wrote this quickly, and printf was just easier. Anyway I thought of a hack that will work, I think.
  7. Replies
    12
    Views
    2,903

    Casting a pointer to a function to (void*)

    I have a pointer to a function in a class, and am trying to cast it to (void*) to pass it to a function.



    #include <stdio.h>

    class blah {
    public:
    int store;
    int something...
Results 1 to 7 of 7