Mail Archives: djgpp/1998/02/23/12:18:05
From: | "Pieter van Ginkel" <pginkel AT westbrabant DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | DPMI ???
|
Date: | 23 Feb 1998 16:51:50 GMT
|
Organization: | EuroNet Internet
|
Lines: | 25
|
Message-ID: | <6cs9f6$2vo@news.euro.net>
|
NNTP-Posting-Host: | breda28.pstn01.concepts.nl
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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 = 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.
- Raw text -