Does your win9x installation have msvcr71.dll installed? Your hook dll statically links to that, which is not really a good idea. I'd suggest to use pure win32 APIs instead of using that library (if possible).
Are you sure that the hook dll complains about madCHook.dll and not about that msvcr71.dll? Can you make a screenshot of the error box in win9x?
Thanks a lot for your help. I used your example which was installed with Madhook SDK. I just modified the code to work according to our rquirement. I think it is also in MSVC 7. Can you please send me an example which does not use the msvc7 library.
My original HookProcessCreation example does not use the msvc7 library!
Remove these two:
#include <stdio.h>
#include <stdlib.h>
Then replace what MSVC complains about with pure win32 APIs. Use CreateFile instead of fopen etc. Afterwards your dll should not link to the mscc7 library, anymore.