Article View: comp.os.ms-windows.programmer.misc
Article #2898Re: How to call function from 'DLL calling application' inside DLL
From: JpJ
Date: Wed, 21 Jun 2000 00:00
Date: Wed, 21 Jun 2000 00:00
31 lines
2054 bytes
2054 bytes
Soory, you probably can't. First off, why create a "custom" DLL? Just include that DLL code in your main programs source, because there's not much use in having a DLL that is only good for one program. But if you plan to use the DLL elsewhere, you will have to include your main program's source in the DLL (or at least the part needed by the DLL.) The jist of it is that your not going to be able, as far as I know, to call your main program's member functions unless they are defined in the DLL itself. JpJ <>< Miladin Sajic <sajicm@eunet.yu> wrote in message news:3906CD50.501C34D9@eunet.yu... > Hi, > > I have got an C++ application and a DLL. I use DLL function from my > application without any problems but I want to call some calling > application's functions from DLL. How to solve that ? > > Actually, needed functions are member functions from an object. I made > new DLL function and I put pointer on my object as argument of new > function. But I don't know how to made DLL to understand my pointer. I > included app. header but I can't compile dll because called functions > isn't implemented in dll. Obviously, I must import that functions or > class from application. How to do that ? > > Miladin. > > >
Technical Details
Message-ID:
<7cf45.10889$UT.631886@nntp1.onemain.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3906CD50.501C34D9@eunet.yu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103bde,1c746b8a3e0e7577 X-Google-Attributes: gid103bde,public X-Google-Thread: 105df1,1c746b8a3e0e7577 X-Google-Attributes: gid105df1,public From: "JpJ" <Joshua@ccbikeshop.com> Subject: Re: How to call function from 'DLL calling application' inside DLL Date: 2000/06/21 Message-ID: <7cf45.10889$UT.631886@nntp1.onemain.com> X-Deja-AN: 637471283 References: <3906CD50.501C34D9@eunet.yu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: abuse@onemain.com X-Trace: nntp1.onemain.com 961642371 206.53.100.31 (Wed, 21 Jun 2000 22:52:51 EDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 21 Jun 2000 22:52:51 EDT Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.winapi