Board index » delphi » Little DLL Crashes My Little App?
Bob Pless
![]() Delphi Developer |
Tue, 09 Apr 2002 03:00:00 GMT
Little DLL Crashes My Little App?
I wrote a little 'Hello World' DLL then wrote a single button app to call
it. The little app crashes after executing the dll. The app call looks like this: procedure opnDll(i: SmallInt); external 'myapp.dll'; procedure TForm1.Button1Click(Sender: TObject); var x: SmallInt; begin x := StrToInt(edit1.text); opnDll(x); showmessage('done'); end; The dll looks like this: I've tried passing integer, pchar, smallint and also return values boolean, Thanks, -Bob |