4 Replies - 4526 Views - Last Post: 23 July 2009 - 06:47 PM Rate Topic: -----

#1 felixli1   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-July 09

simple messageBox in vc++ express 2008

Posted 23 July 2009 - 03:17 PM

HI,
how can i write a simple messageBox in vc++ express 2008, looks there is not a function call like MessageBox() in visual c++ 6.0.

thanks in advance...

felix
Is This A Good Question/Topic? 0
  • +

Replies To: simple messageBox in vc++ express 2008

#2 deery5000   User is offline

  • D.I.C Lover

Reputation: 87
  • View blog
  • Posts: 1,097
  • Joined: 09-May 09

Re: simple messageBox in vc++ express 2008

Posted 23 July 2009 - 04:10 PM

i just create my own with a dialog then call that with DoModal();

there is i believe an afx_messageBox but i aint sure, im new to MFC.

if you have some experience please have a look at my post to see if you could help me :)

http://www.dreaminco...topic116422.htm

Thanks
Kevin
Was This Post Helpful? 0
  • +
  • -

#3 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3202
  • View blog
  • Posts: 19,233
  • Joined: 14-September 07

Re: simple messageBox in vc++ express 2008

Posted 23 July 2009 - 04:14 PM

very basic (win 32)

#include <windows.h>

int main ()
{
	MessageBox(NULL, "Hi there!", "A Box!", NULL);
	return 0;
}


Was This Post Helpful? 0
  • +
  • -

#4 felixli1   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-July 09

Re: simple messageBox in vc++ express 2008

Posted 23 July 2009 - 04:23 PM

thanks, yes, that's what I used often in MFC (vc6.0), but there is similar API in vc++ express 2008 CLR form application? thanks...

View PostKYA, on 23 Jul, 2009 - 03:14 PM, said:

very basic (win 32)

#include <windows.h>

int main ()
{
	MessageBox(NULL, "Hi there!", "A Box!", NULL);
	return 0;
}


Was This Post Helpful? 0
  • +
  • -

#5 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3202
  • View blog
  • Posts: 19,233
  • Joined: 14-September 07

Re: simple messageBox in vc++ express 2008

Posted 23 July 2009 - 06:47 PM

The version of VS is ultimately irrelevant. Are you asking how to do a C++/CLR form?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1