comp.lang.ada
 help / color / mirror / Atom feed
* Help: Binary operator "="
@ 1997-05-20  0:00 Adrian B.Y. Hoe
  1997-05-21  0:00 ` Jeff Carter
  1997-05-21  0:00 ` Robert Dewar
  0 siblings, 2 replies; 6+ messages in thread
From: Adrian B.Y. Hoe @ 1997-05-20  0:00 UTC (permalink / raw)



I have errors compiling the following code using ObjectAda 7.0.232

   function InitInstance(Hinstance : Windef.HINSTANCE;
                         ...) return Win32.BOOL is

      HWND   : Windef.HWND;
      wu_Ps  : aliased Winuser.PAINTSTRUCT;

   begin

      --  Create a main window for this application instance.
      HWND := WinUser.CreateWindow (LpClassName  => SZAPPNAME,  -- Line 452
                                    LpWindowName => SZTITLE,
                                    DwStyle      =>
                                       WinUser.WS_OVERLAPPEDWINDOW or
                                       WinUser.WS_CLIPCHILDREN,
                                    X           => WinUser.CW_USEDEFAULT,
                                    Y           => WinUser.CW_USEDEFAULT,
                                    NWidth      => WinUser.CW_USEDEFAULT,
                                    NHeight     => WinUser.CW_USEDEFAULT,
                                    HWndParent  => null,
                                    HMenu       => null,
                                    HInstance   => HInstance,
                                    LpParam     => null);

      if HWND = Windef.HWND'(null) then   -- Line 467
         return Win32.FALSE;
      end if;

      ...

   end InitInstance;



The compiler says: Line 467: Binary operator "=" not directly visible, use
 clause
might be needed.

Line 452: Parameter mismatch.


Could someone enlighten me?

Thank you in advance.
--

B.Y.


lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
 Adrian, B.Y. Hoe                     byHoe@quantum.pc.my           \/
 Business Development, VP                                         \/  \/
                                                                \/  \/  \/
                                      Phone : +60 3 495 4048      \/  \/
 Lexical Integration (M) Sdn Bhd      Fax   : +60 3 495 4037        \/
 13-B Jalan Pandan Indah 4/2, Pandan Indah, 55100 Kuala Lumpur-Malaysia
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
                                          member of Team-Ada in Malaysia




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-06-10  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-20  0:00 Help: Binary operator "=" Adrian B.Y. Hoe
1997-05-21  0:00 ` Jeff Carter
1997-05-21  0:00 ` Robert Dewar
     [not found]   ` <33932325.6E38@lmtas.lmco.com>
1997-06-07  0:00     ` Robert Dewar
1997-06-08  0:00       ` Ken Garlington
1997-06-10  0:00         ` Robert Dewar

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