|
|
 |
Author |
Message |
DaleShamp

|
Posted: Thu Jan 15 05:05:45 CST 2004 |
Top |
MFC >> DLL (Resource)
My app fails to load my dll (LoadLibrary() fails) on Win98. Here is what
I've found on MSDN:
Windows Me/98/95: If you are using LoadLibrary to load a module
that contains a resource whose numeric identifier is greater than
0x7FFF, LoadLibrary fails. If you are attempting to load a 16-bit DLL
directly from 32-bit code, LoadLibrary fails. If you are attempting to
load a DLL whose subsystem version is greater than 4.0, LoadLibrary
fails. If your DllMain function tries to call the Unicode version of a
function, LoadLibrary fails.
What is this:
If you are attempting to load a DLL whose subsystem version is greater than
4.0
Can anyone help me?
Thank you.
Visual Studio67
|
|
|
|
 |
dumboo

|
Posted: Thu Jan 15 05:05:45 CST 2004 |
Top |
MFC >> DLL (Resource)
hi there
>-----Original Message-----
>
> My app fails to load my dll (LoadLibrary() fails) on
Win98. Here is what
>I've found on MSDN:
>
[...]
looks like your development environment other than Windows 9x
have u tried
#ifdef WINVER
#undef WINVER
#endif
#define WINVER 0x0400
this should solve ur problem
|
|
|
|
 |
Jan

|
Posted: Thu Jan 15 05:49:34 CST 2004 |
Top |
MFC >> DLL (Resource)
Well, my problem is something like that. I have to use WinCrypt.h unit.
But, that unit requires #define _WIN32_WINNT 0x0400 to be included. What I
should do? I've wrote this:
#define _WIN32_WINNT 0x0400
#include "WinCrypt.h"
And as you can see it doesn't work for Win98.
|
|
|
|
 |
Jan

|
Posted: Thu Jan 15 12:46:07 CST 2004 |
Top |
MFC >> DLL (Resource)
GetLastError() returns this error:
1157L (ERROR_DLL_NOT_FOUND)
I'm attaching photo of Depency Walker. If you know for some dll that
doesn't exists on Win98, please tell me. Please, not that Xerces*.dll,
Xalan*.dll and XSec*.dll are my dlls. Skip them.
Thank you.
|
|
|
|
 |
Johan

|
Posted: Fri Jan 16 01:23:52 CST 2004 |
Top |
MFC >> DLL (Resource)
Jan,
If you go to www.microsoft.com and enter the following search string:
"directory contents of the Windows 98 CD-ROM "
the section Support & Troubleshooting will give you 14 links with the
contents of the Win98 CD:s. Brrr... You might also want to search for
individual top-level DLL:s from the listing, to get a picture of what DLL:s
are updated by, for example, IE support packs (and thus might include new
DLL:s). This is indeed hard and frustrating work :-(
Johan Rosengren
Abstrakt Mekanik AB
>
> GetLastError() returns this error:
>
> 1157L (ERROR_DLL_NOT_FOUND)
>
> I'm attaching photo of Depency Walker. If you know for some dll that
> doesn't exists on Win98, please tell me. Please, not that Xerces*.dll,
> Xalan*.dll and XSec*.dll are my dlls. Skip them.
>
> Thank you.
>
>
|
|
|
|
 |
|
|