PRB: Value of hPrevInstance Incorrect

ID Number: Q76940

3.00

WINDOWS

Summary:

SYMPTOMS

The value of hPrevInstance is not equal to NULL, even though there

are no other instances of the program running.

CAUSE

The run-time library used by the linker does not match the memory

model specified in the C compiler.

RESOLUTION

Change the run-time library used by the linker to reflect the

appropriate memory model used in the C compiler.

More Information:

The following table associates the C memory model with the run-time

library names:

Memory Model Compiler Switch Run-Time Library

------------ --------------- ----------------

Small -AS SLIBCEW.LIB

Medium -AM MLIBCEW.LIB

Large -AL LLIBCEW.LIB

Compact -AC CLIBCEW.LIB