HDTenEightyP/NetNews huggingface dataset:
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: TSR's in Turbo Pascal 6.0
Keywords: TSR Turbo Pascal 6.0
Organization: University of Vaasa, Finland
Date: Mon, 7 Sep 1992 08:16:43 GMT

In article <SDunn.1@Hack.Levels.UniSA.Edu.Au> SDunn@Hack.Levels.UniSA.Edu.Au (Steve Dunn) writes:
>How do you get a TSR to work successfully in turbo pascal 6.0 ???

Not an easy quotesion to answer briefly.  Have you take a look at
the references in the Frequently Asked Questions
 112730 Jun 13 12:23 garbo.uwasa.fi:/pc/ts/tsfaq29.zip

"If you do not know how to go about getting this material, users are
welcome to email me for the prerecorded garbo.uwasa.fi instructions
(long, circa 29Kb).  North American users are referred to the garbo
mirror on wuarchive.wustl.edu.  Australian users are referred to the
archie.au mirror.  The mirrors may lag occasionally, or might not
have all the files.  If you do not receive my reply within five
days, please ask your own site's system manager to construct a
returnable mail path for you". 

..................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: RS232 ports and Modems
Date: 13 Sep 92 22:57:33 GMT
Organization: Ericsson Network Systems, Inc.

In article <BuJ69H.9on@mentor.cc.purdue.edu> kilgore@sage.cc.purdue.edu (Michael Kilgore) writes:
>From: kilgore@sage.cc.purdue.edu (Michael Kilgore)
>Subject: RS232 ports and Modems
>Date: 13 Sep 92 19:03:17 GMT

>Being that this maybe a FAQ, but since I haven't seen a FAQ for this newsgroup,
>I am going to ask anyways.  I have written some functions that write, 
>initialize, and get the status of RS232 ports or a modem using registers and 
>calling the bios interrupt $14.  My problem is: I can't figure out how to read
>from the port.  I tried using the same method as I did with the other functions,
>Is there someway I can read from these ports or am I out of luck?  Also, is
>there an easier way to read and write to these ports?

>Any help would be appreciated.

>PS:  BTW, I am using Microsoft's QuickPascal which I think is supposed to be
>compatible with Turbo Pascal.


TP accesses ports as an array port[<port number>].  You can do the following
things:

  port[comm1] := $3e;
  testval := port[comm1];
  write(port[comm1]);  { silly thing to do, but... }

I don't know if this works in QuickPascal or not.
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - Douglas Adams
  - Patrick Taylor                                       (Arthur Dent)
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
From: jnicholson@bowker.com (Jim Nicholson)
Newsgroups: comp.lang.pascal
Subject: Re: xxx.ndx reading
Date: Thu, 03 Sep 92 16:17:03 EDT
Organization: Bowker Electronic Publishing, New Providence NJ

andrew.makiejewski@canrem.com (andrew makiejewski) writes:

>
> Well trying to further my education and get into other TP programming areas
> for myself I decided I would like to try and write my own QWK packet mail
> utilities. Sure there are all sorts out there, but I want to make my own
> and learn in the process.

Good idea.  If you get stuck, I can post source to a TP program that reads
.QWK packets.

>
> Well I started with trying to read in the index files for a conference
> and used the program examples that are all around for converting the
> microsoft basic format to Turbo Pascal Real format. Well I am not sure
> if it is working correctly, but the values I get are in an increasing
> order.

Here's a fragment from that program.  I've not tested this yet . . .

function MStoIEEE (MS : MSSingle) : real;

{ Converts a 4 byte Microsoft format single precision real variable as    }
{ used in earlier versions of QuickBASIC and GW-BASIC to IEEE 6 byte real }

var
    r      : real;
    ieee   : array[0..5] of byte absolute r;

begin
    FillChar(r,sizeof(r),0);
    ieee[0] := MS[3];
    ieee[3] := MS[0];
    ieee[4] := MS[1];
    ieee[5] := MS[2];
    MStoIEEE  := r;
end;  { MStoIEEE }


jnicholson@bowker.com
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Turbo Pascal 7.0
Organization: Queen's University
Date: Tue, 15 Sep 1992 14:58:20 GMT

In article <1992Sep15.135020.27847@exu.ericsson.se> exuhag@exu.ericsson.se (James Hague) writes:
>
>If Borland takes their Pascal compilers the same route as their
>C compilers, then I expect TP 7.0 to be a monster.  I would love
>to see Borland clean-up the product, polishing and simplifying
>instead of blindly adding features, but I have a feeling this
>won't happen.

What sort of cleanup do you have in mind?  If as someone suggested the new 
one isn't being released until January, it might be worth sending your 
comments to Borland now.  I doubt if they could add newly suggested features 
in 4 months, but they could probably clean up old ones.


Duncan Murdoch
dmurdoch@mast.queensu.ca
Newsgroups: comp.lang.pascal
From: ldstern@rodan.acs.syr.edu (Larry Stern)
Subject: Wanted: TPW 1.5
Originator: ldstern@rodan.acs.syr.edu
Organization: Syracuse University, Syracuse, NY
Date: Sun, 13 Sep 92 10:28:53 EDT

I had no replies on Misc.Forsale.Computers so I thought I'd try here.
Does anyone have the latest TPW (1.5?) for sale or trade?  Preferably
shrink-wrapped and/or un-registered.

					Thanks,  L. Stern
From: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam)
Newsgroups: comp.lang.pascal
Subject: TSR's in Turbo Pascal 6.0
Date: Fri, 11 Sep 92 07:02:04  -2
Organization: FidoNet node 5:7101/42.2 - Lakeside BBS, Roodepoort

 > How do you get a TSR to work successfully in turbo
 > pascal 6.0 ???

 > What effect does Keep(0) with any othe number apart
 > from 0 have ???

The parameter passed to Keep() is the "errorlevel" that the program terminates with, which you can detect in batch files or from a calling program - not that calling a TSR from a program is a good idea if you ask me!

Cheers
The Poltergeist

--  
INTERNET: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org
via:  THE CATALYST BBS in Port Elizabeth, South Africa.
       (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
From: S105728@umrvma.umr.edu ( Steve Poulsen)
Newsgroups: comp.lang.pascal
Subject: TSR's in Turbo Pascal
Date: 14 Sep 92 14:54:41 GMT

For a brief demonstration, see TSRHELP.ZIP at garbo.uwasa.fi in the
turbopas subdirectory.

========================================      ,--,
  Steven P. Poulsen <S105728@UMRVMA>       ,'  '--,
  Student of Electrical Engineering        ---, ,'
  University of Missouri - Rolla            ,','
=======================================    , '
From: shen@nil.IRO.UMontreal.CA (Yu Shen)
Newsgroups: comp.lang.pascal
Subject: Track double clicks in HandleEvent, etc.
Date: 9 Sep 92 18:12:00 GMT
Organization: Universite de Montreal -- Laboratoire Incognito

Hi, folks,
Would you kindly give me a pointer of how to track mouse double clicks
in HandleEvent procedure. For example, I would like have something
like the following:

procedure TMyView.HandleEvent(var Event: TEvent); 
begin
  TView.HandleEvent(Event);
  case Event.What of
  evMouse:
   if Event.Double then SelectIt; {it is never reached!}
  evMouseDown:
   FocusIt;
  evMouseAuto:
   DragView(Event, dmDragMove, TheLimits, AMinSize, AMaxSize); 
	{I want to drag the view, when the mouse button is pressed,
and moved. I am not sure if it's correct?}
  else
   Exit;
  end;
end;

When debugging, I found that Event.Double is always FALSE, thus the
appropriate action is never reached. Why?

And I don't quite understand the meaning of evMouseAuto. According to
TP Vision guide: periodic event while mouse button held down. But in
debugging, I noticed that after mouse button is released, there are
still endless evMouseAuto events.
Anyway, I'd like to know how implement dragging a view by helding
mouse button.

Thank you in advance,
--
Yu Shen
Dept. d'Informatique et Recherche Operationnelle
University de Montreal, C.P. 6128 Succ. A.
Montreal, Que. Canada, H3C 3J7

(514) 342-7089 (H) shen@IRO.UMontreal.Ca
From: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam)
Newsgroups: comp.lang.pascal
Subject: BGI Env variable
Date: Wed, 09 Sep 92 07:57:02 GMT
Organization: FidoNet node 5:7101/42.2 - Lakeside BBS, Roodepoort

 > Maybe if a few people who write software,  will start
 > using a "BGI"
 > env. variable to find the path, then it will catch on.
 >  Great Idea and
 > I will start putting that into my programs.  If enough
 > people do it, then
 > others will see it done and do the same.  Then it
 > could become a standard,
 > but it might take a while.

OK then I will start doing the same in my own applications as well.

BTW is the idea that all the BGI drivers should be in the directory, or would it be better to link the common drivers into the EXE (EGAVGA, HERC etc) and have an option for the user to specify an external driver which would then be located in the directory specified by the BGI enviroment variable?

Cheers
The Poltergeist

--  
INTERNET: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org
via:  THE CATALYST BBS in Port Elizabeth, South Africa.
       (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
From: exk6968@hertz.njit.edu (Kristiansen Eivind)
Newsgroups: comp.lang.pascal
Subject: TP6.0 and Windows and Subviews
Date: 7 Sep 92 17:25:56 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.
Originator: exk6968@hertz.njit.edu

I am trying to make a window in TPVision with a lot of subviews that are
able to be selectable, and respond to mouse clicks and return keypress.
When the user presses return or clicks with the mouse, the subview
should be able to know that they are called and respond. (I don't have
any problems with the responding part). Also it would have been nice if
I could move the cursor in all directions on the screen to all the
subviews  I tried doing this using buttons, but I found it difficult to
be able to have multiple text lines on the button and I was not able to
move the right button all the time without tabbing throught many of the
other buttons.
 
Here is an attempt of a drawing.
 
  +-------------------------------------------------------------+
  |                                                             |
  |   +------+ +------+                            +------+     |
  |   |      | |      |  ..........................|      |     |
  |   |      | |      |       ^                    |      |     |
  |   +------+ +------+       |                    +------+     |
  |       .                <--*-->                              |
  |       .                  \|/                                |
  |   +------+                                     +------+     |
  |   |      | ....................................|      |     |
  |   |      |                                     |      |     |
  |   +------+                                     +------+     |
  +-------------------------------------------------------------+
 
I dont need the frame of a window, but I don't know of any better way
to show that the subview is selectable, or at least show that one
subview is selected.
 
Maybe someone has a good idea?
From: answer@orion.oac.uci.edu (Reference)
Subject: Re: Turbo Pascal 7.0
Newsgroups: comp.lang.pascal
Organization: University of California, Irvine
Date: 14 Sep 92 23:46:31 GMT

Regarding TP 7.0, I looked it up in a magazine database, and came across
the little blurb below.

Tony

Anthony Toyofuku
Main Library
University of California,
Irvine

Moser, Karen D.
     Borland gives sneak preview of Pascal duo. (Borland International Inc.
   previews Pascal with Objects development software, Turbo Pascal 7.0)
     PC Week v9, n34 (August 24, 1992):4.

Abstract:
Borland International Inc previewed two upcoming Pascal language products at
the 1992 Windows & OS/2 Conference in Boston. The company is preparing Turbo
Pascal 7.0, an upgrade to its flagship Pascal development environment, and
Borland Pascal with Objects, an object-oriented development system featuring
a library of objects for developing in both DOS and Windows environments.
Borland Pascal with Objects will reportedly begin beta testing in Sep 1992,
with Turbo Pascal 7.0 following shortly thereafter. The object program will
let programmers build applications by culling objects from a library and
writing code to link them together. It will be sold with a built-in 16-bit
DOS extender that complies with Microsoft's DOS Protected Mode Interface.
Borland Pascal for Objects will reportedly be priced at $495. Turbo Pascal
7.0 for DOS will feature a similar DOS extender and will let developers
create applications that run in protected mode.
From: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam)
Newsgroups: comp.lang.pascal
Subject: Video mode patch for TP6
Date: Fri, 11 Sep 92 14:46:01  -2
Organization: FidoNet node 5:7101/42.2 - Lakeside BBS, Roodepoort

Hi everyone.

Does anyone know about a patch that will enable me to let TP6 run in other video text modes on my Trident 8900c 1M than the two normally available?

I don't know much about the internals of TurboVision so I don't know if this would at all be possible.  Yeah, I know it turned out Borland didn't REALLY use TV for the IDE, but I'm sure the same basic routines were used?

Cheers
The Poltergeist

--  
INTERNET: Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org
via:  THE CATALYST BBS in Port Elizabeth, South Africa.
       (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: >640k data space for turbo pascal?
Date: 9 Sep 92 16:06:30 GMT
Organization: Ericsson Network Systems, Inc.

In article <1992Aug28.124923.8378@syma.sussex.ac.uk> jamesg@syma.sussex.ac.uk (James S Goodlet) writes:
>I'm posting this for a friend who doesn't have a newsfeed.  Please reply by
>email to him as "jonm@integ.uucp".  Thanks.

Mail bounced - pleae forward...

>James
>--
>Can someone please tell me the easiest/most cost effective way of
>modifying a turbo pascal program so that it can use more than 640K for
>its code+data? I know that I will have to use an extender of some sort,
>or windows - does anyone have good suggestions? 


>Will Turbo Pascal for
>Windows solve this problem? 

Yes.

>Do I need the windows development kit if I
>use Turbo Pascal for Windows?

No.
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - D Adams
  - Patrick Taylor
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    alternately, exuptr@ZGNews.Lonestar.Org
From: excoffie@sc2a.unige.ch
Newsgroups: comp.lang.pascal
Subject: File type of *.EXE produced by TPW
Date: 13 Sep 92 16:54:13 GMT
Organization: University of Geneva, Switzerland


I have a question concerning the types of executable files produced by TPW.

I use TPw 1.5 to develop applications in biology under Windows 3.1.
Al the executable file I produce are labelled as : Windows Real Mode
by a file viewer from Norton desktop for Windows 2.0, whereas
executable files of conventional applications are labelled as : Windows
only.

Do I do something wrong with my compiler directives or is inherent to 
TPW ?

Any ideas about that would be greatly appreciated

Thanks

-----
 Laurent Excoffier  /  Genetics and Biometry Lab.   /  Dept. of Anthropology
 U. of Geneva   /   12, rue G. Revilliod   /   1227 Carouge  /   Switzerland
 Voice +41-22 343 6930 / Fax +41-22 300 0351 / Email: excoffie@sc2a.unige.ch
From: exuhag@exu.ericsson.se (James Hague)
Newsgroups: comp.lang.pascal
Subject: Re: Turbo Pascal 7.0
Date: 15 Sep 92 13:50:20 GMT
Reply-To: exuhag@exu.ericsson.se
Organization: Ericsson Network Systems, Richardson, TX

Timo Salmi writes:
>
>It will be interesting to see whether TP 5.5 / 6.0 / 7.0 will
>parallel the MsDos 3.3 / 4.0 / 5.0 phenomenon.  (From a useful
>alternative to a cumbersome and bloated upgrade back to a much more
>sensible alternative). 

If Borland takes their Pascal compilers the same route as their
C compilers, then I expect TP 7.0 to be a monster.  I would love
to see Borland clean-up the product, polishing and simplifying
instead of blindly adding features, but I have a feeling this
won't happen.

--
James Hague   
exuhag@exu.ericsson.se
From: death@acca.nmsu.edu (Jeff Garzik)
Newsgroups: comp.lang.pascal
Subject: Re: File type of *.EXE produced by TPW
Date: 14 Sep 92 21:02:29 GMT
Organization: New Mexico State University
X-Newsreader: Tin 1.1 PL5

excoffie@sc2a.unige.ch wrote:
: I use TPw 1.5 to develop applications in biology under Windows 3.1.
: Al the executable file I produce are labelled as : Windows Real Mode
: by a file viewer from Norton desktop for Windows 2.0, whereas
: executable files of conventional applications are labelled as : Windows
: only.

Another RTFM question.  TPW has a compiler directive/option you can set
called "Windows Stack Frame" ($W) which, when enabled, generates special
prolog and epilog code to allow TPW-generated Win programs to run in
Windows Real Mode as well as Protected Mode.  Disable this option your
programs will be "protected mode only".

--
"Only sheep need a leader." - Nomeansno

death@acca.nmsu.edu
Newsgroups: comp.lang.pascal
From: v923106@vms.ucc.okstate.edu
Subject: Pascal FTP sites?
Organization: Oklahoma State University Computer Center
Date: Fri, 11 Sep 1992 19:04:00 GMT

Can anybody tell me if there are any FTP sites that have a large pascal
section? if so, please let me know.
 
Newsgroups: comp.lang.pascal
From: billb@crpmks.uucp (Bill Bochnik (Info Systems))
Subject: Re: mouse unit
Reply-To: billb@crpmks.UUCP (Bill Bochnik (Info Systems))
Organization: Ciba-Geigy Corporation
Date: Fri, 11 Sep 1992 13:11:25 GMT

Is there any TP 6.0 specific calls in this that will prevent it from being 
used under 5.0/5.5 ?  Thanks.



-- 
Bill Bochnik			| It's hard to be a James Bond in an Abbott
Systems Analyst 		|	and Costello world.
Ciba-Geigy Corporation		| Signed and sealed, they deliver oblivion.
philabs!crpmks!billb		| It's worse than that, he's dead Jim.
Newsgroups: comp.lang.pascal
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: Capturing DOS prompt...
Organization: University of Vaasa, Finland
Date: Sun, 13 Sep 1992 07:13:23 GMT

In article <1992Sep12.070015.13141@uxa.ecn.bgu.edu> mudrc@uxa.ecn.bgu.edu (Daniel R. Crowson) writes:
>  I'm still having problems about how to capture the prompt within a
>  program and then 'outputting' it.  I have a shell program, but I want
>  it to use the normal dos prompt ($p$g).  I know you can get the prompt
>  by getenv('prompt'), but is there a way to output it?

Let's try another tack.  What is your underlying task at hand?  Do
you want to capture the original problem or is it that you wish to
be able to manipulate the prompt when you shell out of your program? 
If it is the latter, then it is far from as simple as reading the
environment variable.  One needs to access the PSP and manipulate
that, which is quite a complicated task. 

There is one alternative which I have not tested for the latter for
this particular purpose, so it might not work although I cannot see
outright why it wouldn't.  I have a SETENVSH routine in my
distrubuted TP units collection (/pc/ts/tspa*.zip) for setting an
environment variable for the duration of a shelling.  (It accesses
the PSP). 

But note that this was guesswork, partly based on what I guess you
might basically be needing this for.

..................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
Newsgroups: comp.lang.pascal
From: SDunn@Hack.Levels.UniSA.Edu.Au (Steve Dunn)
Subject: TSR's in Turbo Pascal 6.0
Organization: Students with intelligence !
Keywords: TSR Turbo Pascal 6.0
Date: Mon, 7 Sep 1992 02:45:30 GMT
X-Posted-From: cc08-cc113.levels.unisa.edu.au
X-Posted-Through: sol.ctr.columbia.edu

How do you get a TSR to work successfully in turbo pascal 6.0 ???

What effect does Keep(0) with any othe number apart from 0 have ???
From: 9125113g@lux.latrobe.edu.au (Mitch Davis)
Newsgroups: comp.lang.pascal
Subject: Re: BGI Env variable
Date: 12 Sep 92 07:06:21 GMT
Organization: La Trobe University

In article <1992Sep11.125327.20440@kth.se> kjell@weber.e.kth.se (Kjell Rilbe) writes:
>In article <2148.2AAF90B7@catpe.alt.za> Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam) writes:
>>.....
>
>Wouldn't it be best to fo it this way: Let the program check for the 
>environment variable BGI, and if it exists, use the BGI it sepcifies,
>otherwise use the built-in autodetect to find which one of the standard
>(and linked-in) BGI:s to use.

In fact, (since a LOT of programs just pass an empty string to the BGI
Init thingy), the '' can be replaced with GetEnv('BGI'), and you get the
best of both worlds - downward compatibility and support for the BGI
variable.

I also think (Duncan!) BGIDRV and BGIFNT are suitable names for the
other options.

Mitch.
From: Gordon.Farquharson@p12.f120.n7102.z5.fidonet.org (Gordon Farquharson)
Newsgroups: comp.lang.pascal
Subject: can't get EXEC to work
Date: Sun, 06 Sep 92 12:24:00 GMT
Organization: FidoNet node 5:7102/120.12 - Interlink BBS, CT


On 05 Sep 92, Joel Daniel Just muttered to All:

 JDJ> I am having trouble getting the EXEC command to work in Turbo Pascal v5.0
 JDJ> on the PC.  Here is an example program:

 JDJ> PROGRAM TEST;
 JDJ> USES DOS;
 JDJ> BEGIN
 JDJ>    EXEC('dir','');
 JDJ>    WRITELN('DONE')
 JDJ> END.

For DOS commands to be run with the EXEC command you need to use this structure... EXEC('\command.com','/c dir'); ie you have to run command.com with the paramter '/c' and 'dir' for this to work.

If on the other habd you wish to run a program the format is as follows... EXEC('program.exe','any paramters your want');

I hope this helps.

Cheers,
       Gordon

--  
INTERNET: Gordon.Farquharson@p12.f120.n7102.z5.fidonet.org
via:  THE CATALYST BBS in Port Elizabeth, South Africa.
       (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
Newsgroups: comp.lang.pascal
From: donaldc@ug.cs.dal.ca (Donald Chisholm)
Subject: TechJock5.5
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Mon, 14 Sep 1992 02:13:41 GMT

	I'm hoping someone can lead me to the shareware package called 
TechJock.  I've been able to find the source to version 5, but not 5.5.
Anyone out there that can help?  Is there a C/C++ version?

Don

p.s. Please respond to donaldc@ug.cs.dal.ca
From: mark-r@spec0.ee.man.ac.uk (Mark Robinson (JO PhD))
Newsgroups: comp.lang.pascal
Subject: 256 colours in TPW 3.0?
Date: 4 Sep 92 09:04:13 GMT
Organization: Dept Electrical and Electronic Eng, Manchester University, UK


Hi.

First, let me apologise if this is a FAQ or naive question, I'm
new to both TPW and this group.

I've started using TP for WIndows 3.0 with Windows 3.1 set to
800x600 by 256 (I have a Trident SGVA card). My problem is I
can't use any more than the 20 reserved system colours when
displaying bitmaps, presumably because GetDeviceCaps returns 20
for the number of colours supported by the device. I seem to
be able to add colours to the palette and realize it, but when I
BitBlt my 256 colour bitmap to the screen, all the colours are
mapped to their nearest system colour.

Is this a compatability problem with Windows 3.1 or am I doing
something silly? Does anybody have a fragment of code which displays
256 colour device independent bitmaps?

Cheers
Mark
mark-r@spec0.ee.man.ac.uk
Newsgroups: comp.lang.pascal