Search:

Type: Posts; User: ShortCoder

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    771

    Obviously we would have to see both your IString...

    Obviously we would have to see both your IString class and both programs your friend used in order to get anywhere on this.--at least the important pieces of code from each.

    I'm thinking it's...
  2. Replies
    6
    Views
    3,245

    Sorry...you'll probably want LPDEVMODE...

    Sorry...you'll probably want



    LPDEVMODE lpDevMode;
    lpDevMode = (LPDEVMODE) LocalAlloc(LPTR, sizeof(DEVMODE));
    ZeroMemory(lpDevMode, sizeof(DEVMODE));
    lpDevMode->dmSize = sizeof(DEVMODE);...
  3. Replies
    9
    Views
    2,504

    You can pass a function name acting as a pointer...

    You can pass a function name acting as a pointer to that function.

    For example:

    Suppose you have two functions--printme and feedme.



    int feedme(void (*function)(char*)){
    ...
  4. Thread: size_t

    by ShortCoder
    Replies
    20
    Views
    2,927

    It is there because (I assume) it is different...

    It is there because (I assume) it is different sizes on different platforms but if you're just using size_t rather than int or long or short or whatever then it won't really matter how it was chosen...
  5. Replies
    6
    Views
    3,245

    Have you tried LPDEVMODE lpDevMode;...

    Have you tried




    LPDEVMODE lpDevMode;
    ZeroMemory(lpDevMode, sizeof(DEVMODE));
    lpDevMode->dmSize = sizeof(DEVMODE);
    ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN);
  6. Replies
    7
    Views
    1,412

    Yes. First you LoadLibrary as you have there...

    Yes. First you LoadLibrary as you have there then GetProcAddress on each function exported from the dll you wish to use.

    You've got it:)
  7. Replies
    7
    Views
    13,148

    ^^--Thank you:)

    ^^--Thank you:)
  8. Replies
    7
    Views
    13,148

    Okay, I've gotten some success with the...

    Okay, I've gotten some success with the following.
    crtmaintest.c


    #include <windows.h>
    int mainCRTStartup(int argc, char* argv[]){
    MessageBox(NULL,"Hello","hello",MB_OK);
    return 0;
    }
  9. Replies
    5
    Views
    2,023

    For stuff like this, you are MUCH more likely to...

    For stuff like this, you are MUCH more likely to find something useable as a library if you are under Linux. You can always try searching http://www.freshmeat.net and see what results you get. I...
  10. Replies
    7
    Views
    1,716

    I'm not going to do your work for you, but you...

    I'm not going to do your work for you, but you can start by finding patterns in the text, finding things which seem like they could be for-looped to regenerate the output file, finding redundancies,...
  11. Replies
    5
    Views
    9,466

    Well, what I meant was it uses ebp for pointing...

    Well, what I meant was it uses ebp for pointing at the parameters passed to the function but also the return address is going to be on the stack somewhere. If you don't save the stack, when you...
  12. Replies
    3
    Views
    983

    If you are programming under Linux, this...

    If you are programming under Linux, this http://freshmeat.net/projects/parapin/ is EXACTLY what you want;)
  13. Replies
    6
    Views
    1,157

    I would say to learn Graphics programming How...

    I would say to learn

    Graphics programming
    How to make your own decent music
    Sound/Music programming
    Graphics design
    DirectX
    OpenGL
    Collision-detection algorithms
    anything and everything you...
  14. Replies
    3
    Views
    983

    Okay, find out the address of the parallel port...

    Okay, find out the address of the parallel port (no need for port scanning here--I'm thinking you didn't really mean "port scanning" as that either means scanning through all hardware ports or else...
  15. Thread: linked list

    by ShortCoder
    Replies
    4
    Views
    1,111

    Code looks good to me. Anyhow, a delete...

    Code looks good to me.

    Anyhow, a delete function would be something like you point the previous entry's forward pointer to go to the entry after the current one, special-casing for the first...
  16. Replies
    7
    Views
    13,148

    I am using MSYS and MingW on Windows to compile...

    I am using MSYS and MingW on Windows to compile Windows applications using gcc;). Reason?--because I want to be able to actually sell programs I make (legally) and because I cannot afford the high...
  17. Replies
    4
    Views
    903

    If you want to see real code, there is no better...

    If you want to see real code, there is no better way than to download any open-source software's source code, and read that;)

    Code in books will be just that--more or less for learning purposes of...
  18. Replies
    7
    Views
    13,148

    Thanks man!:D now I've got some another...

    Thanks man!:D

    now I've got some another problem (the linker giving errors of undefined _mainCRTStartup) and I've tried both -D_mainCRTStartup=WinMain and -DmainCRTStartup=WinMain to no avail
  19. Replies
    5
    Views
    9,466

    Ah,...inline assembly:D Well, this is tricky...

    Ah,...inline assembly:D

    Well, this is tricky because every compiler seems to do it a little differently.

    As suggested, here is how you would do it in TurboC++



    int main(int argc, char*...
  20. Replies
    7
    Views
    13,148

    How do you exclude libc using gcc?

    Hello. I searched the FAQ and the forums for "libc" and did not come across anything relevant.

    Perhaps someone knows of a flag to pass to gcc so that libc is not included with your code?

    I am...
Results 1 to 20 of 23