🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2316

Re: Passing data to a DLL; strange problem!

#2316
From: Kent Forschmiedt
Date: Thu, 25 Apr 1991 18:14
22 lines
1144 bytes
In article <1991Apr22.173022.8930@javelin.sim.es.com> lwallace@javelin.sim.es.com (Raptor) writes:

>I have discovered, through CodeView, that the address of ParentHandle
>in the DLL is in a different segment from that shown in DS and SS
>(which are equal):

ALARM BELL!!  DS is not equal to SS in a DLL!

>
>(for example)
>&ParentHandle = 0c15:2794
>DS = 0bea
>SS = 0bea
>
>Both modules are compiled (and linked) with the small model.

Read chapter 20 of the SDK "Guide to Programming" 3 or 4 times...
DLL source files must be compiled with -Aw to tell the compiler
that DS != SS.

-- 
Kent Forschmiedt ... kentfo@polari ... uw-beaver!sumax!polari!kentfo
Technical Details
Message-ID: <3857@polari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!spool.mu.edu!uunet!ogicse!milton!sumax!polari!kentfo
References: <1991Apr22.173022.8930@javelin.sim.es.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!spool.mu.edu!uunet!ogicse!milton!sumax!polari!kentfo
From: kentfo@polari.UUCP (Kent Forschmiedt)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Passing data to a DLL; strange problem!
Message-ID: <3857@polari.UUCP>
Date: 25 Apr 91 18:14:42 GMT
References: <1991Apr22.173022.8930@javelin.sim.es.com>
Organization: Seattle Online Public Unix (206) 328-4944
Lines: 22