DPMI and ISO C++ ??

S

SteveC

Hi everyone

Is there any way to use DPMI in ISO C++ ? (I use Borland C++ for
example).

Here's the code for DJGPP:
my_video_ds=__dpmi_allocate_ldt_descriptors(1);

__dpmi_set_segment_base_address(my_video_ds,0xA000+__djgpp_conventional_base);
__dpmi_set_segment_limit(my_video_ds,2000000);
How would this look like in ISO C++ ?

Thanks in advance

Steve
 
M

Michael Mair

SteveC said:
Hi everyone

Is there any way to use DPMI in ISO C++ ? (I use Borland C++ for
example).

Here's the code for DJGPP:
my_video_ds=__dpmi_allocate_ldt_descriptors(1);

__dpmi_set_segment_base_address(my_video_ds,0xA000+__djgpp_conventional_base);
__dpmi_set_segment_limit(my_video_ds,2000000);
How would this look like in ISO C++ ?

Hello Steve,

this is comp.lang.c, not comp.lang.c++;
I do not know whether your request is topical there as we only
do ISO C9X.

I recommend having a look at a newsgroup's welcome message, charter
(if there is one) and FAQ before posting a request.
Having a look at the messages of the last couple of days gives you
an idea of how to post -- and maybe, your question is already
answered there.


Cheers
Michael
 
S

SteveC

Michael Mair wrote
Hello Steve,
this is comp.lang.c, not comp.lang.c++;

Ok then... sorry for 'misposting' :) I'm pretty new to Google Groups.
I recommend having a look at a newsgroup's welcome message, charter
(if there is one) and FAQ before posting a request.
Having a look at the messages of the last couple of days gives you
an idea of how to post -- and maybe, your question is already
answered there.

Yes .. sir :) will do that.

Steve
 
J

Jim

Hi everyone

Is there any way to use DPMI in ISO C++ ? (I use Borland C++ for
example).

Nope. Platform specific stuff like this will always fall outside the
langauge spec. Depending on the compiler you're using DPMI access via
a C library could be implemented in any number of different ways.
comp.lang.asm.x86 or comp.os.msdos.programmer would be able to help
you

Jim
 
R

Randy Howard

Ok then... sorry for 'misposting' :)

Thank you.
I'm pretty new to Google Groups.

This isn't google groups. Google has made a mess lately of what
this really is, Usenet, or newsgroups to many. I love their search
engine, but they are clueless about news.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,183
Messages
2,570,969
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top