From: charliel@ansel.intersource.com (Charlie Lenahan)
Subject: Windows Programming With ActiveAda for Win32s
Date: 21 Mar 1995 13:32:48 -0500
Date: 1995-03-21T13:32:48-05:00 [thread overview]
Message-ID: <3kn64g$209@ansel.intersource.com> (raw)
We are trying to Use ActiveAda for Windows 5.1.3 to Create a Dialog Box.
Regular Windows Programming you must use a call to MakeProcINstance before you
call CreateDialog(). How do you Get around this by using the address of the
callback function for that dialog box.
Inst:Handle:=GetModuleHandle(C_NULL);
DlgHnd:Hwnd;
Dlgproc:lpvoid:=package.dlg_proc'address;
prt : hwnd;
begin
prt := CreateWindowEx();
dlghnd := CreateDialog(inst, CString("dialog_name"), prt, Convert(DlgProc));
...
end;
.rc file ...
DIALOG dialog_name ...
This is the general concept we have been attempting. The dlghnd is not created
and a call to GetLastError returns 87 - Invalid Parameter. What are we doing wrong???
next reply other threads:[~1995-03-21 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-21 18:32 Charlie Lenahan [this message]
1995-03-22 14:59 ` Windows Programming With ActiveAda for Win32s jjj@sage.inel.gov
1995-03-24 12:39 ` Mitch Gart
-- strict thread matches above, loose matches on Subject: below --
1995-03-24 19:41 John Lo
1995-03-24 19:51 John Lo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox