delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/23/11:57:54

From: "Pieter van Ginkel" <pginkel AT westbrabant DOT net>
To: <djgpp AT delorie DOT com>
Subject: DPMI ???
Date: Mon, 23 Feb 1998 17:56:16 +0100
Message-ID: <01bd407b$f4a8cc20$LocalHost@PIETER>
MIME-Version: 1.0

Dit is een meerdelig bericht in MIME-indeling.

------=_NextPart_000_0051_01BD4084.566D3420
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm deseret for using the dpmi functions in my new program, but I can't =
find
a example of how to do it. I've tried it a little myself, but then I =
tried
it, I got a SIGSEGV, so I've probably done something wrong. Could =
someone
give me a simple (or more suphisticated) program that I can use to learn =
how
to use dpmi. I was thinking of something like this:

void main( void )
{
char * dummy =3D malloc( 81 );
strcpy( dummy, "Hello world!" );
cprintf( dummy );
free( dummy );
}

But than with use of __dpmi_allocate_memory and other routines. If you =
have
something that uses this way of allocating memory, but it's not at oll =
like
this, also please send it to me.

If you'd like, please send it to pginkel AT westbrabant DOT net .

Thanks,

Pieter van Ginkel, The Netherlands.



------=_NextPart_000_0051_01BD4084.566D3420
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>I'm deseret for using the dpmi functions in my new program, but I =
can't=20
find<BR>a example of how to do it. I've tried it a little myself, but =
then I=20
tried<BR>it, I got a SIGSEGV, so I've probably done something wrong. =
Could=20
someone<BR>give me a simple (or more suphisticated) program that I can =
use to=20
learn how<BR>to use dpmi. I was thinking of something like =
this:<BR><BR>void=20
main( void )<BR>{<BR>char * dummy =3D malloc( 81 );<BR>strcpy( dummy, =
&quot;Hello=20
world!&quot; );<BR>cprintf( dummy );<BR>free( dummy );<BR>}<BR><BR>But =
than with=20
use of __dpmi_allocate_memory and other routines. If you =
have<BR>something that=20
uses this way of allocating memory, but it's not at oll like<BR>this, =
also=20
please send it to me.<BR><BR>If you'd like, please send it to <A=20
href=3D"mailto:pginkel AT westbrabant DOT net">pginkel AT westbrabant DOT net</A>=20
.<BR><BR>Thanks,<BR><BR>Pieter van Ginkel, The=20
Netherlands.<BR><BR>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0051_01BD4084.566D3420--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019