Search:

Type: Posts; User: Axpen

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    Well what i'm wanting to do is make an error...

    Well what i'm wanting to do is make an error object that will have a table of errors that are accessed depending on the code returned by the current function, but it cant know what the current...
  2. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    That works if I know the function im currently...

    That works if I know the function im currently in, however that's the problem. I need a way of referencing the current function im in, without knowing its name IE main or foo. I will then dynamically...
  3. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    Well the macro thing I just found out about,...

    Well the macro thing I just found out about, however I need to know how to get the address of the current function, if its using inline ASM I could just rewrite it for other OSs native inline syntax,...
  4. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    Oh and that __func__ thing doesnt work under...

    Oh and that __func__ thing doesnt work under Turbo C or GCC, what header is it in?

    Edit(+):
    Is there any way to get a pointer to the current function, even using the stack or such?
  5. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    Actually that may help tremendously. Sorry...

    Actually that may help tremendously.

    Sorry for not being clearer, im making an error object and it is utilizing a Singly Linked List with the error messages in a struct with the first member...
  6. Thread: Calling Function

    by Axpen
    Replies
    9
    Views
    1,701

    Calling Function

    I have been having some problems with an object im trying to make. I need one of the the methods to be able to figure out what function called it so it can associate it with the apropriate function...
  7. Replies
    5
    Views
    1,261

    Yeah I know about already made ones, my question...

    Yeah I know about already made ones, my question is how to include text or binary in your executable and still have it run, ie I know you cant just add it to then end and expect it to still run.

    ...
  8. Replies
    15
    Views
    35,662

    Perfect, that works PERFECT, thanks alot, I just...

    Perfect, that works PERFECT, thanks alot, I just have to study how you did it now so I can sleep again :P, thanks alot,
    Alex
  9. Replies
    5
    Views
    1,261

    Including Text In Your Executable

    Ok i've officially searched the boards and now know theres nothing relevant to this on cprogramming.com, and im not sure enough how to word what it is im looking for to get relevant results from...
  10. Replies
    15
    Views
    35,662

    Well I actually did get that program of yours...

    Well I actually did get that program of yours perspective, I guess im just wanting something I cant have, the bresenham line thing does work well enough, its just I was SO curious how to make a line...
  11. Replies
    15
    Views
    35,662

    Well the link seems to be down, but I found a...

    Well the link seems to be down, but I found a site that helped me awhile back Direct X Math Line , but it now seems to get all messed up with its y coordinate in my program, it stays at zero cause...
  12. Replies
    15
    Views
    35,662

    I get the whole resolution thing, so that's why I...

    I get the whole resolution thing, so that's why I examined it at a 8:1 ratio using MS Paints magnifing lens thing. The stair step thing is nessacery I know, but its just that MS's method is so much...
  13. Replies
    15
    Views
    35,662

    While still not exactly as elegant as M$ Paint's...

    While still not exactly as elegant as M$ Paint's line drawing algo, I guess i'll just have to live with bresenhams line drawing algorithm.

    Thanks for all your time,
    Alex
  14. Replies
    15
    Views
    35,662

    Tried that but it just doesn't produce the right...

    Tried that but it just doesn't produce the right pixels, it makes:


    XX****
    ***X**
    ****X*
    *****X
    *****X
  15. Replies
    15
    Views
    35,662

    Line Drawing Algorithm

    Ok i've searched the forums and found little algorithms that support my cause or work in the expected way. My problem is that I want a line drawing algorithm that is as versital as possible, however,...
  16. Replies
    4
    Views
    2,526

    Oh ok I get it now since localtime returns a...

    Oh ok I get it now since localtime returns a pointer I need a pointer to the pointer, ok, thanks alot you guys I truley appriciate it! ^_^
  17. Replies
    4
    Views
    2,526

    So you mean it's not at all possible to assign a...

    So you mean it's not at all possible to assign a function's argumental pointer a pointer value and have it retain it out of the scope of that function? I get why saying "mainPointer =...
  18. Replies
    4
    Views
    2,526

    struct pointer problem (out of scope?)

    Why doesn't this work



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    void setTime(time_t *curTime,struct tm *retDate);
  19. Replies
    0
    Views
    2,367

    DOS Environment Variables

    Ok my question is how to get environment variables you change or add to exist outside the scope or life of your .exe program. I can do fine by using the **env argument in int main(int argc, char*...
  20. Replies
    9
    Views
    1,648

    Thanks alot for that information Salem, I didn't...

    Thanks alot for that information Salem, I didn't realize that temp files were used, shoot I could create a program that operates from temp files myself, how crappy!

    Well thanks for the replies...
  21. Replies
    9
    Views
    1,648

    Thank RobR for the reference. I know that the...

    Thank RobR for the reference.

    I know that the command interpreter is not REALLY DOS since all it does is act as a shell and especially since 2000 and XP are from the NT kernel which doesn't rely...
  22. Replies
    9
    Views
    1,648

    DOS Reference Material

    Yo Yo, what's up yah?

    I have a question, is there anywhere you can get good C related DOS references, all stupid MSDN has is WIN32 API.

    I can deal with x86 Assembly so if that's the only good...
  23. Yes, that's precisely what I needed, sucks to be...

    Yes, that's precisely what I needed, sucks to be me, I should've remembered about the mod operator, however I rarely used it before, thanks, that answers my question, see before I was trying code...
  24. Hold up, hold up, sorry, I should have made...

    Hold up, hold up, sorry, I should have made myself clearer, I understand that i've been overlooking the % operator, however I want the results in an int or float, not a char, I was just using that as...
  25. Digit selector... (Mathmatically complex, for some)

    Ok my question is, how on earth do you select an individual digit from a float and most importantly an int?

    Like for VERY obvious reasons this won't work:


    int i;
    i=32;

    printf("Your number...
Results 1 to 25 of 42
Page 1 of 2 1 2