🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
2 messages
2 total messages Started by Ajay Gupta Tue, 18 Sep 1990 09:43
Window Creation and rc (resource compiler)
#1514
Author: Ajay Gupta
Date: Tue, 18 Sep 1990 09:43
15 lines
1165 bytes
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
Re: Window Creation and rc (resource compiler)
#1518
Author: Bob Niedergerke
Date: Wed, 19 Sep 1990 15:02
14 lines
1158 bytes
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads