dll calling functions from my sdk
Posted on 2004-09-11
main app = main application
plugin = dll that main app calls (this is built using the main app sdk)
myDll = my dll that my plugin calls
I am writing a plugin which is a dll. This is called to from a main app.
To build my plugin I must use the sdk that the developers for the main app have given me.
Now, My plugin has its own dlls that it links to (myDll), and It works perfect....as long as I don't use any of the functions from the sdk in myDll's functions.
My main question would be. "How can I use functions from the sdk in myDll".
When building myDll I am including all of the headers etc. All of the defines and typedefs work. I can even use the functions in a define (as long as I never call my define);
I have been researching for a while and it seems like I should be able to use a .def file. Well that didn't work. But I don't know if I am linking it wrong or if it just isn't working. (never done this before).
Please help if it is possible...thanks
Oh...here is my error I get when I place an sdk function in any of myDll's functions.
================== I get this error ==================
Creating library Release/Dll_01.lib and object Release/Dll_01.exp
Dll_01.obj : error LNK2001: unresolved external symbol _fxMessageSend
D:\AppWSDK\plugins\MyDlls\Dll_01.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.