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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.