Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 5th, 2005, 5:49 PM   #1
Prm753
Professional Programmer
 
Prm753's Avatar
 
Join Date: Oct 2005
Location: United States
Posts: 447
Rep Power: 3 Prm753 is on a distinguished road
Send a message via AIM to Prm753 Send a message via MSN to Prm753
MessageBox help needed

Hello all.

I am wanting to show a summary of the files that ViewpointKiller has deleted after the program has finished its various and sundry tasks. I was thinking of showing a MessageBox that had the summary inside of it with all of the files deleted. Problem is, I don't know how to do this, and I don't really know how to put this into search terms in Google or Msdn. I was thinking along the lines of this:
char removz1 = DeleteFile("C:\\BlahBlah.tmp");
// and then...
MessageBox(hwnd, "Deleted %s", removz1, "Summary", MB_OK); // illegal code, i know

I hope you see what I mean...

Also, is it possible to put a working url link inside a MessageBox?
Thanks in advance.
__________________
The world's first athletic computer geek!
The home of PrProgramsStudios
How not to post a question: <-- Please don't reply
Prm753 is offline   Reply With Quote
Old Dec 5th, 2005, 5:51 PM   #2
Scorpions4ever
Programmer
 
Join Date: Jun 2005
Posts: 86
Rep Power: 4 Scorpions4ever is on a distinguished road
Use sprintf() or snprintf() to build your message string.
Scorpions4ever is offline   Reply With Quote
Old Dec 5th, 2005, 6:54 PM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 998
Rep Power: 4 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Scorpions4ever
Use sprintf() or snprintf() to build your message string.
You might need to use wide-character variants, depending on your target OS. To make your code more portable between flavors of Win32, #include "tchar.h", use TCHAR instead of char, _TEXT("string") instead of "string", and use the string functions sensitive to TCHAR's type. Clickie for more info.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC