how do i call c++ dll function from another c ++ dll
-
i m creating win32 dll in vc++(mfc) application.i have to call dll function from another dll. But i dont no the way,how to calling dll function from another dll. Please help me. Thanks in advance.
-
i m creating win32 dll in vc++(mfc) application.i have to call dll function from another dll. But i dont no the way,how to calling dll function from another dll. Please help me. Thanks in advance.
You could use the .lib file and header (the easier way). Or you could use LoadLibrary()[^] and GetProcAddress()[^] There are many beginner level tutorials on DLLs at CP. Just search for those and give some of them a read.
“Follow your bliss.” – Joseph Campbell
-
i m creating win32 dll in vc++(mfc) application.i have to call dll function from another dll. But i dont no the way,how to calling dll function from another dll. Please help me. Thanks in advance.
For that purpose, you can either rely on static linking or dynamic linking. 1. Static Linking a. Add the lib corresponding to the DLL(DLL that is to be called) in Project Settings->Link->Input->Object/library modules. b. Add the Include file pf the DLL into your project dsp. c. Call the function after including the header. 2. Dynamic linking- Usually done in case, where you have Def([^]) files, which is mentioned in the above comment by rajesh.
Величие не Бога может быть недооценена.
modified on Friday, February 5, 2010 6:11 AM
-
i m creating win32 dll in vc++(mfc) application.i have to call dll function from another dll. But i dont no the way,how to calling dll function from another dll. Please help me. Thanks in advance.
-
Pay attention to Rajeshs post, LoadLibrary Getprocaddress are great functions to learn to use. You get a smaller loaded image by using dynamic linking dont forget!
Morality is indistinguishable from social proscription
Dude, you've picked on a univoter. :)
“Follow your bliss.” – Joseph Campbell