🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HELP with GlobalDosAlloc

#2110
From: Jimmy Wright
Date: Mon, 15 Apr 1991 19:22
12 lines
915 bytes

	I have used GlobalDosAlloc successfully to communicate between
	a DLL and a DOS TSR.  I don't make the GlobalHandle() call though.
	I just copy stuff in/out of the buffer using the Selector from
	the DLL and use the Segment from the DOS Tsr.  I don't know if
	the code you posted is exactly the same as your program but you
	really should be checking the return codes.  If GlobalHandle() fails
	with a NULL pointer then this would explain the behaviour you have
	seen.

	JJ
Technical Details
Message-ID: <36330005@hpcndpc.CND.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpcndpc!jjw
References: <26158@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpcndpc!jjw
From: jjw@hpcndpc.CND.HP.COM (Jimmy Wright)
Newsgroups: comp.windows.ms.programmer
Subject: Re: HELP with GlobalDosAlloc
Message-ID: <36330005@hpcndpc.CND.HP.COM>
Date: 15 Apr 91 19:22:20 GMT
References: <26158@hydra.gatech.EDU>
Organization: HP Colorado Networks Division
Lines: 12