I have created a DLL in C++ and have successfully been able to use it in another application. What I would like to is to use a function in my application code – NOT THE DLL – and be able to use that function within the DLL.
Is this possible? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure – if you can call functions in your DLL, you can e.g. pass function pointers to it from the hosting application (or another DLL in the same process) and then call those:
That is how C-style plugin APIs like NPAPI work.