Board index » delphi » [MS 4.0 C DLL] Help Problem with C DLL from Delphi 2.01 program.
Huet Bartels
![]() Delphi Developer |
Mon, 08 Feb 1999 03:00:00 GMT
[MS 4.0 C DLL] Help Problem with C DLL from Delphi 2.01 program.Hi all, Can anyone inform me if there is any thing special you need to I am trying to call a function that displays a Dialog box but NT 3.51 Does the C functions need to be defined in any special way PASCAL Do I need to call the functions with any special attribs it he following bit of code is what who I am defining the calls to the unit NDSDLL; interface Function InitNDSLib(Window:HWnd;AppName:String):Boolean; implementation Function InitNDSLib; external 'NDSUSERLIB.DLL' All I am trying to do is pass the Window handle of Form1 to a function But the DLL is retuning Invalid Parent Handle. The I am using for the Call is: procedure TForm1.Button1Click(Sender: TObject); One last thing. While trying to fiqure out what is wrong with my Handle I check out Thanks for your time. |