Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau From: bonneau@hyper.hyper.com (Paul Bonneau) Subject: Re: How Do I Call Function After GetProcAddress (PROBLEMS WITH Message-ID: <1991Jun11.181737.10044@hyper.hyper.com> Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,) Organization: HyperCube Inc. References: <7007@vela.acs.oakland.edu> Date: Tue, 11 Jun 1991 18:17:37 GMT In article <7007@vela.acs.oakland.edu> rdthomps@vela.acs.oakland.edu (Robert D. Thompson) writes: >In article <1991Jun10.214915.1973@hyper.hyper.com> bonneau@hyper.hyper.com (Paul Bonneau,,) writes: >>In article <6931@vela.acs.oakland.edu> >>rdthomps@vela.acs.oakland.edu (Robert D. Thompson) writes: >>> >>> I seem to be having problems calling a function after >>> GetProcAddress() >>> >>> Basically, >>> >>> lpfnFunction = GetProcAddress(...) >>> >>> Then I want to call the function. >>> >>> I remember doing something similar a while back, but I >>> can't seem to get this to work...even with >>> >>> (lpfnFunction)(); >>> >>> Any help would be appreciated. >>> >>You need to use CallWindowProc() with the lpfn as the first >>param, followed by the arg list. >> >>cheers - Paul Bonneau. > >Paul, > > Actually, the SDK sample application MULTIPAD, specifically > MPPRINT.C, contains (somewhat) what I am trying to do. [deleted] Sorry Robert, I wasn't paying close enough attention to the content of your message. I missed your earlier posting, and I didn't pay enough attention to the GetProcAddress() call to get the lpfn in your second posting. I assumed you were simply calling a WindowProc, when you really weren't. cheers - Paul Bonneau.