Can cobol be framed-up legally?...
From: Kellie Fitton (KELLIEFITTON_at_YAHOO.COM)
Date: 02/09/05
- Next message: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Previous message: James J. Gavan: "Re: Cobol problem (INPUT File Format)"
- Next in thread: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Reply: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Reply: James J. Gavan: "Re: Can cobol be framed-up legally?..."
- Reply: patrick.magee_at_microfocus.com: "Re: Can cobol be framed-up legally?..."
- Reply: Richard: "Re: Can cobol be framed-up legally?..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Feb 2005 13:04:20 -0800
Hello Everyone,
when creating a graphical window program -- my window procedure
receives windows's messages such as the following: WM-CREAT,
WM-PAINT, WM-ERASEBKGND, WM-CONTEXTMENU, WM-COMMAND and
WM-DESTROY. So, if I want to handle the message my self, I need
to call an entry-point function and pass parameters such as
lnk-hWnd, lnk-hDC and lnk-hPs which are numeric values. However,
I don't have a Frame-Of-Reference conditions that helps me
determines how to pass these parameters to the entry function.
should I pass these parameters as 'by value' or 'by reference'?
I am using Net Express 3.1 with windows 2000 professional.
your kind help is appreciated. Kellie.
*>--- case in point cobol code -----
linkage section.
01 lnk-hWnd hWnd.
01 lnk-hDC hDC.
01 lnk-hPs hDC.
01 lnk-hDCbitmap HANDLE.
procedure division.
0001-main.
...............
entry "MyWndProc" WinAPI using
by value lnk-hwnd
by value lnk-iMessage
by value lnk-wParam
by value lnk-lParam.
move 0 to ls-mResult.
evaluate lnk-iMessage
when WM-PAINT
call winapi "PaintMyWindow" using
by reference lnk-hwnd
by reference lnk-hDCbitmap
by value lnk-hps
returning return-code
end-call
...............
entry "PaintMyWindow" winapi using
by reference lnk-hwnd
by reference lnk-ppaint
by value lnk-hps.
...............
exit program returning 0.
end program window.
- Next message: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Previous message: James J. Gavan: "Re: Cobol problem (INPUT File Format)"
- Next in thread: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Reply: Michael Mattias: "Re: Can cobol be framed-up legally?..."
- Reply: James J. Gavan: "Re: Can cobol be framed-up legally?..."
- Reply: patrick.magee_at_microfocus.com: "Re: Can cobol be framed-up legally?..."
- Reply: Richard: "Re: Can cobol be framed-up legally?..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|