Board index » delphi » CloseFile in Delphi DLL not Closing File till Dll Unloads when called from VB
fel...@ix.netcom.com (Bob Feller )
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
CloseFile in Delphi DLL not Closing File till Dll Unloads when called from VB
Hi,
I wrote a DLL using Delphi that gives multiple programs(VB) the ability I stripped the DLL down to just write a couple of lines and close Anyways, I'm stumped. Any help would be appreciated. Snippets of ----------------------------------------------------------------------- Delphi DLL Code: Interface function WriteLog(UserFrom:PChar):Boolean; export; Implementation function WriteLog(UserFrom:PChar):Boolean; ----------------------------------------------------------------------- Delphi Calling Code: (File closes properly, Calling app need not implementation function WriteLog(p:PChar): Boolean; ----------------------------------------------------------------------- VB calling Code: (File remains open until DLL closed) Declare Function WriteLog Lib "OELOG.DLL" (ByVal UserID As String) As Sub Command1_Click () Thanx, Compuserve: 70403,2427 |