From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,667e6ada091402c1,start X-Google-Attributes: gid103376,public From: Kelly Grant Subject: ActivAda problems... Date: 1996/01/09 Message-ID: <1996Jan9.024125.2581@nosc.mil>#1/1 X-Deja-AN: 134548790 sender: news@nosc.mil content-type: text/plain; charset=us-ascii organization: Computer Sciences Corporation mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 1.1 (Windows; U; 16bit) Date: 1996-01-09T00:00:00+00:00 List-Id: 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