Hi friends,
Can anyone tell me how can we get message boxes (e.g, with buttons OK, Cancel) in C ?
Please guide.
Thanks,
Neelu
neeludhiman
0
Newbie Poster
Recommended Answers
Jump to PostTry this sample code
#include<windows.h> int main() { MessageBox(0,"Hello","Welcome Message",1); return 0; }
Change the last parameter to see various options.
Jump to PostThis code will work fine with Windows. But I am working in Linux. In Linux, can you please tell me if there is an option to get this dialog box without GTK ?
You should mention such requirements with original question.
I have no idea of linux. Maybe someone …
All 8 Replies
SpS
34
Posting Pro
neeludhiman
0
Newbie Poster
SpS
34
Posting Pro
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
sudo
0
Newbie Poster
주마나자르
commented:
Thank you guys!
+0
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Foul Ole ron
0
Newbie Poster
rishabh413
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.