Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!rice!uupsi!sunic!fuug!tuura!risto From: risto@tuura.UUCP (Risto Lankinen) Newsgroups: comp.windows.ms.programmer Subject: Re: Pointer to Functions in Windows 3.0 Keywords: Pointer, Function, Far Pointer, Inter-segment function calls Message-ID: <893@tuura.UUCP> Date: 27 Dec 90 07:52:59 GMT References: <1990Dec18.162922.16442@maytag.waterloo.edu> Organization: Nokia Data Systems Oy Lines: 22 mvishnu@csg.waterloo.edu (Meenan Vishnu) writes: >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 ); Hi! I'd declare the function EXPORTed in the program's linker definition file, and subsequently use the MakeProcInstance()'d address as the value of the pointer variable. Terveisin: Risto Lankinen -- Risto Lankinen / product specialist *************************************** Nokia Data Systems, Technology Dept * 2 2 * THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME! Now working on 2 +1 * replies: risto@yj.data.nokia.fi ***************************************