problem loading DLL
I havent used HrLoadAllImportsForDLL ...i am trying to use it now but my code is not compiling...it is not recognizing "__HrLoadAllImportsForDll" , so its giving an error
"__HrLoadAllImportsForDll': identifier not found, even with argument-dependent lookup"
i tried using #include delayimp.h also...
also,
in an example in MSDN i saw that for loading they havent used any primitives(__HrLoadAllImportsForDll)...they have simple specified the dll to be delay-imported and specified the method name to be called in the code like any other normal method call... the code is pasted below from msdn::
============================================
#include <windows.h>
// uncomment these lines to remove .libs from command line
// #pragma comment(lib, "delayimp")
// #pragma comment(lib, "user32")
int main()
{
// user32.dll will load at this point
MessageBox(NULL, "Hello", "Hello", MB_OK);
}
Build the DEBUG version of the project. Step through the code using the debugger and you will notice that user32.dll is loaded only when you make the call to MessageBox.
=====================================
ur suggestion sounded a way out initially....but i am all the more confused...
i just want to load the library to my project...and i am unable to do that...thats my problem...