- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I was wandering if there is a simple way to show text pop up
like a MessageBox.Show command as a function of click button on a form.
if (callbacktype == dlg_clicked) then
! ? command
endif
Regards,
Oren
I was wandering if there is a simple way to show text pop up
like a MessageBox.Show command as a function of click button on a form.
if (callbacktype == dlg_clicked) then
! ? command
endif
Regards,
Oren
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calling the Win32 API routine MessageBox is pretty simple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you show me an example of an hello world popup (messagebox)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
program helloworld use ifwin implicit none integer(SINT) :: ret ret = MessageBox ( & GetForegroundWindow(), & ! Handle to window "Hello, world!"C, & ! Text (don't forget C-string) "Example of using MessageBox"C, & ! Caption for title bar MB_ICONINFORMATION + MB_OK) ! Type flags end program helloworld
Message Edited by Steve_Lionel on 05-15-2006 04:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks it works well for my old f90 program, if I run as a console application
Is therea reason why I get this error below for the same code in run it as a winapp.
Is there a better way to produce the same results with an internal instruction
Oren
WinApp4 error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to build a program as a "Windows Application", it needs to be structured as one. You can't take a simple console application and just rebuild it as a Windows application. Please read the section in the Building Applications manual on the different project types.
I don't understand your second question.
I don't understand your second question.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page