We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,629 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

message box in turbo c++

Can anybody here tell me please how to display a notification/message box in c++.
suppose i'm making a program for factorial of a no. and i want to display the result in a message box with msg..." Factorial of No. is <fact>".

help me please!!!

4
Contributors
3
Replies
5 Hours
Discussion Span
1 Year Ago
Last Updated
5
Views
adityawkhare
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

C++ doesn't do graphical elements. You'll need to use a GUI library of some sort, though upgrading to a compiler that wasn't designed for MS-DOS would greatly facilitate your search for a working library..

deceptikon
Challenge Accepted
Administrator
3,499 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58

I would suggest the Qt GUI tools, if you're working on Eclipse, with the Qt eclipse integration plugin.
Here, this might help you: Lecture 7: QT.

Lucaci Andrew
Practically a Master Poster
690 posts since Jan 2012
Reputation Points: 108
Solved Threads: 97
Skill Endorsements: 13

@adityawkhare: You can't generate a message box like you might see on other MS-Windows programs because Turbo C can't access any of the win32 api functions -- its too old of a compiler. Nor can you use any modern GUI library like QT Gui tools previously mentioned.

About the best you can do with your compiler is to just call printf() to display the message. You might also write your own function that would erase a rectangle on the screen, put a box around it, then print the message inside that rectangle.

Ancient Dragon
Achieved Level 70
Team Colleague
32,269 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0590 seconds using 2.65MB