comp.lang.ada
 help / color / mirror / Atom feed
* ActivAda problems...
@ 1996-01-09  0:00 Kelly Grant
  0 siblings, 0 replies; only message in thread
From: Kelly Grant @ 1996-01-09  0:00 UTC (permalink / raw)


Greetings!

I am using ActivAda for Windows/NT. In general, I've been very happy with 
its performance, although I think the bindings could have been a bit 
thicker to provide us with a more "adalike" interface.  On my current 
project, we are writing a "window" package to insulate the developers 
from having to learn every nitty-gritty detail of windows programming.  

For example, we have provided "Start_Draw" that gets an hDC, sets the pen 
to the current line color, the brush to the current fill color, a 
suitable palette, resets the current graphics insertion point, font 
family, color, etc.., and a similar method "End_Draw" when finishing 
drawing to reset everything before releasing the DC.

Anyway, here's the problem.  I have an intermittent problem (sometimes 
happens quickly, sometimes takes a couple of minutes, sometimes never) 
when the hDC value is the same as a logical palette handle that is 
generated *after* the hDC is generated. Of course, anything farther down 
the execution that uses the hDC fails with an "Invalid Handle (6)" error.

Has anyone seen this problem ?   Also, I have another interesting problem 
with SetWindowText.  In my application, I get a Constraint Error 
generated *during* the SetWindowText call.  I can display the contents of 
all the parameters sent into the method, the window text changes, but the 
exception seems to be generated when the method attempts to place the 
return value into the BOOL value (BOOL is a DWORD, which in turn is 
simply subtype INTEGER...I don't know of a 4 byte value that is illegal 
in that place...)

I'd appreciate any help or pointers that anyone can give.  If you mail me 
directly I'll post a summary.

Thanks in advance

Kelly Grant
grantk@nosc.mil
Computer Sciences Corporation
(619)553-0850






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-01-09  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-01-09  0:00 ActivAda problems Kelly Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox