Outputting ULARGE_INTEGERs, how? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Outputting ULARGE_INTEGERs, how?

I'm writing this little Explorer style app, and I'd like to put free drive space to my status bar. Only problem is that I don't know how to put the free space stored in ULARGE_INTEGER with some text to one string so I could print it to window. Can anyone help me?
[italic][blue]
wAre
Beginner Programmmer
[/blue][/italic]

Comments

  • SephirothSephiroth Fayetteville, NC, USAPosts: 1,035Member
    : I'm writing this little Explorer style app, and I'd like to put free drive space to my status bar. Only problem is that I don't know how to put the free space stored in ULARGE_INTEGER with some text to one string so I could print it to window. Can anyone help me?
    : [italic][blue]
    : wAre
    : Beginner Programmmer
    : [/blue][/italic]
    :
    :
    Let me guess, new-age Visual programmer? It's a simple task to do this.
    [code]
    char StatusBuffer[256];

    memset(StatusBuffer, '', sizeof(StatusBuffer));
    sprintf(StatusBuffer, "Free Space: %i", ULARGE_INT_VARIABLE);
    [/code]
    Now you have a formatted buffer ready to be used in a status-bar.

    -[italic][b][red]S[/red][purple]e[/purple][blue]p[/blue][green]h[/green][red]i[/red][purple]r[/purple][blue]o[/blue][green]t[/green][red]h[/red][/b][/italic]

Sign In or Register to comment.