Article View: comp.windows.ms.programmer
Article #911Pointer to Functions in Windows 3.0
From: Meenan Vishnu
Date: Tue, 18 Dec 1990 16:29
Date: Tue, 18 Dec 1990 16:29
19 lines
1253 bytes
1253 bytes
I have difficulty in using pointers to functions in Windows 3.0. The pointer points to some invalid location after a while, even though its value has not changed. I tried making the code segments FIXED and declaring all pointers to functions as FAR pointers: RET_VAL_TYPE (FAR *FUNC_POINTER) ( PARM_1_TYPE, PARM_2_TYPE ); but I still keep getting "IRRECOVERABLE APPLICATION ERROR". When I used the CVW and steped through each line, I find that the location pointed by the pointer did not have any program code. Has any netter faced this or similar problem and found any way of successfully using a pointers to funtions. If so please send me an e-mail note: (mvishnu@csg.uwaterloo.ca) Thank You, Vishnu
Technical Details
Message-ID:
<1990Dec18.162922.16442@maytag.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!julius.cs.uiuc.edu!news.cs.indiana.edu!maytag!csg.waterloo.edu!mvishnuShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!julius.cs.uiuc.edu!news.cs.indiana.edu!maytag!csg.waterloo.edu!mvishnu From: mvishnu@csg.waterloo.edu (Meenan Vishnu) Newsgroups: comp.windows.ms.programmer Subject: Pointer to Functions in Windows 3.0 Keywords: Pointer, Function, Far Pointer, Inter-segment function calls Message-ID: <1990Dec18.162922.16442@maytag.waterloo.edu> Date: 18 Dec 90 16:29:22 GMT Sender: daemon@maytag.waterloo.edu (Admin) Organization: University of Waterloo Lines: 19