Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Outputting ULARGE_INTEGERs, how? Posted by Sephiroth on 14 Nov 2003 at 5:41 PM
: 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?
:
: wAre
: Beginner Programmmer
:

:
:
Let me guess, new-age Visual programmer? It's a simple task to do this.
char StatusBuffer[256];

memset(StatusBuffer, '\0', sizeof(StatusBuffer));
sprintf(StatusBuffer, "Free Space: %i\0", ULARGE_INT_VARIABLE);

Now you have a formatted buffer ready to be used in a status-bar.

-Sephiroth

Thread Tree
wAre Outputting ULARGE_INTEGERs, how? on 13 Nov 2003 at 9:51 AM
Sephiroth Re: Outputting ULARGE_INTEGERs, how? on 14 Nov 2003 at 5:41 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.