Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[memory model] PSTR vs. LPSTR in large model

0 views
Skip to first unread message

Daniel Chung

unread,
Aug 10, 1993, 8:21:52 PM8/10/93
to

I recently converted a medium-memory-model program to large
model. Some functions take PSTR paramaters. They now do not work.
I looked at WINDOWS.H, PSTR is type-defined to be char NEAR *,
and NEAR is pound(octothorpe?)-defined to be _near.

Why? The books ("Programmers Reference, vol. 1"), says that PSTR
matches the memory model.

I changed those function definitions to take LPSTR and they work.

Replys (in Esperanto or English)?

Daniel Chung (Mr.)

0 new messages