Integrate dll with vc++ application
-
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon thanx FutureSE
You can: 1) Load programmatically the DLL using LoadLibrary(). In this case you have to load the functions entry points the dll exports via GetProcAddr() 2) Usually DLLs come with a LIB file. Include the LIB file into your project. The functions exported by the DLL are now available. 3)Use the delay loading feature with the /delayload:dllname linker switch
-
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon thanx FutureSE
Use CoCreateInstance() You should know how to invoke a COM and work with COM objects.This applies when you have the class id of the interface. else You can also use LoadLibrary() alongwith GetProcAddress() to invoke the functions Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 6:18 Tuesday 13th June, 2006
-
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon thanx FutureSE
FutureSE wrote:
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon
Try GetModuleHandle which returns the handle of your DLL through which you can get the addresses of the method using GetProcAddress.. The GetProcAddress Fails when the method is Mangled (in case of C++ Dll). Knock out 't' from can't, You can if you think you can :cool:
-
FutureSE wrote:
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon
Try GetModuleHandle which returns the handle of your DLL through which you can get the addresses of the method using GetProcAddress.. The GetProcAddress Fails when the method is Mangled (in case of C++ Dll). Knock out 't' from can't, You can if you think you can :cool:
-
how to call or integrate DLL within vc++ application. I have developed one vc++ application now i want to integrate one tool into this application which ll cal this DLL. reply soon thanx FutureSE
-
Good luck. :) Knock out 't' from can't, You can if you think you can :cool: