Delete that CShellbase line and replace it with: Code: CShell = (DWORD)GetModuleHandleA("CShell.dll");