S
Satyaprakash A
Guest
Hi,
I am getting assertion failed error like as shown below:
Program E:\EMR\Setup\Debug\ResourceReader.dll
File: e:\code\EMR\common\source\reswrap.cxx
Expression: theHandle
Below is the code snippet where i am getting the error:
reswrap.cxx
Resource::Resource (LPCTSTR aFilename)
{
init();
assert(aFilename);
theHandle = ::LoadLibrary(aFilename);
theResLoadedInClassFlag = theHandle ? true : false;
assert(theHandle);
}
In the above code at the below line, theHandle (HMODULE theHandle is returning 0x00000000 <NULL>
theHandle = ::LoadLibrary(aFilename);
aFilename value is L".\\en_res.dll"
When calling LoadLibrary to load the filename, HMODULE handle returning NULL and assert is throwing an exception
Please help me to find the root cause of the issue, Is the issue is because "thHandle" returns NULL?
If that is the case, I am passing L".\\en_res.dll" as the aFilename value and passing to LoadLibrary function. Is the way i am passing is wrong?
Continue reading...
I am getting assertion failed error like as shown below:
Program E:\EMR\Setup\Debug\ResourceReader.dll
File: e:\code\EMR\common\source\reswrap.cxx
Expression: theHandle
Below is the code snippet where i am getting the error:
reswrap.cxx
Resource::Resource (LPCTSTR aFilename)
{
init();
assert(aFilename);
theHandle = ::LoadLibrary(aFilename);
theResLoadedInClassFlag = theHandle ? true : false;
assert(theHandle);
}
In the above code at the below line, theHandle (HMODULE theHandle is returning 0x00000000 <NULL>
theHandle = ::LoadLibrary(aFilename);
aFilename value is L".\\en_res.dll"
When calling LoadLibrary to load the filename, HMODULE handle returning NULL and assert is throwing an exception
Please help me to find the root cause of the issue, Is the issue is because "thHandle" returns NULL?
If that is the case, I am passing L".\\en_res.dll" as the aFilename value and passing to LoadLibrary function. Is the way i am passing is wrong?
Continue reading...