[comp.os.os2.programmer] Window Creation and rc

ag@otter.hpl.hp.com (Ajay Gupta ) (09/18/90)

Hello Netters,
			I am having difficulty in using resources in a Large memeory 
model program using various data segments (around 15 data segments are 
being used in all) . The RC succeeds in compiling and linking the 
resource executable into the object file. But when I try to use 
the Resource_id by supplying it along in the 'WinCreateStdWindow' call,
which is supposed to load the application menu from the Resources
specified , the call itself fails. Just for information sake, the 
same program works when i am using  it in a large memory model program with 
single data segment.  Has anybody faced a similiar problem or is there 
a different version of RC for multiple data segments. Any clue to the
problem will be highly appreciated.

Thanks in advance,
ANUPAM SAHAI

bobn@mcs213h.cs.umr.edu (Bob Niedergerke) (09/19/90)

In article <43330001@otter.hpl.hp.com> ag@otter.hpl.hp.com (Ajay Gupta ) writes:
>I am having difficulty in using resources in a Large memeory model program...
>ANUPAM SAHAI

I ran into similar problems when switching memory models from small to large.
On further scrutiny, however, I found that any problems I had with trap 00D
on a Win... call always boiled down to pointer crashes.  Such things as
sprintf()ing or strcpy()ing to a char * instead of a char array, that somehow
got by under the small model.  So, the best advice I can give you is to check
ALL of your pointers.  I realize with most PM programs this is formidable, but
it's the best I can do.

Bob Niedergerke
(University of Missouri--Rolla)