Sodabread 88 Posting Whiz in Training

I'm trying to load dbghelp.dll in order to add stack walking to my error logger, but I'm getting null returned on LoadLibrary. I've opened up dbghelp in Dependency Walker, and it's giving me an error that it can't find ieshims.dll, but it's located where it should be in the IE folder. I'm using VS2008 Express.

Error logger init function (obviously not done):

void CErrorLog::Initialize()
{
	HINSTANCE hDLL;
	LPFNDLLFUNC1 dllFuncPtr;
	DWORD param1;
	unsigned int param2, retVal;
	
	hDLL = LoadLibrary((LPCWSTR)"dbghelp.dll");

	if(!hDLL)
	{
		HRESULT hr = HRESULT_FROM_WIN32(GetLastError());
		FreeLibrary(hDLL);
	}

	outFile.open("log.txt");
}

Any ideas as to what I can do to get this fixed? Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.