Is this native code or managed code?
If it is managed code then you can invoke the MessageBox class as shown in the following post here:
For native code you can use the WINAPI call to MesssageBoxA
special-names.
call-convention 74 is winapi.
data division.
working-storage section.
01 retCode pic x(4) value zeroes.
01 lpText pic x(30) value z"Message Box Text".
01 lpCaption pic x(255) value z"This is caption".
01 uType pic x(4) comp-5 value 0.
procedure division.
 
    call WINAPI "MessageBoxA"   
       using by value 0 size 4
             by reference lpText
                         lpCaption
             by value uType
       returning retCode
    end-call.
Thank you Chris. Native code I assume? (VS 2015 latest VC on Win 10 generating .IDY for debug and .EXE for production) - i guess that's native? I don't use .net or not knowingly.
(I'm not getting reply notifications for some reason hence just found your answer - apols.)
Regards,
Linden
I am using VC 2.2 update 2 native code on Redhat and when I try your reference here I get an error 173 -- Called program file not found in drive/directory: MessageBoxA
Any suggestions?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.