Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Indirect function calls Message-ID: <106580028@hpcvlx.HP.COM> Date: 3 Mar 89 20:05:19 GMT References: <6970002@hpmcaa.HP.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 14 > What are the possibilities of using indirect function calls like > > x= (*foo)(14); > > in windows? Does windows itself have a mechanism that we can use > or are they totally out of the question like retaining far pointers > to memory blocks... Function pointers work. If the calling and called procedures are in the same segment, there is absolutely no problem. If they are in different segments in the same program/library, again no problem (LINK4 produces the correct code thunks, which are loaded into fixed memory). --Bill Turner