Board index » delphi » Delphi DLL won't run w/ Delphi or BP7 but runs with VB and Word6
j...@ozemail.com.au (Javy Llora)
![]() Delphi Developer |
Mon, 23 Mar 1998 03:00:00 GMT
Delphi DLL won't run w/ Delphi or BP7 but runs with VB and Word6
re: Delphi DLL won't run w/ Delphi or BP7 but runs with VB and Word6
Hi all. I've been having a real weird problem with Delphi. Anyway, the symptoms for calling the JLX.DLL are on a W4W machine: I tested a Win95 machine too. 1 and 3 *work* on the win95 machine. Any clues or ideas anyone? Thanx for any help! btw I'm running Delphi.exe 1188864, 25-Apr-95 8:00 Quote>>> JLX.DPR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> {$F+} uses WinTypes, Winprocs, Jlunit1 in 'JLUNIT1.PAS' {Form1}; {$R *.RES} exports Zlinktest2; begin MessageBox(0,'Hello','Hello',MB_OK); end. Quote>>> JLUNIT1.PAS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> {$F+} interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DdeMan; type TForm1 = class(TForm) DdeClientConv1: TDdeClientConv; DdeClientItem1: TDdeClientItem; Label1: TLabel; procedure DdeClientItem1Change(Sender: TObject); procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure FormActivate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; Res: String; procedure zlinktest2; export; procedure zlinktest2; begin Quote>>> JLTEST.DPR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> program Jltest; uses Dialogs,Forms, Jltestu in 'JLTESTU.PAS' {Form1}; {$R *.RES} begin Application.CreateForm(TForm1, Form1); showmessage('loaded'); Application.Run; end. Quote>>> JLTESTU.PAS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> {$F+} interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation function zLinkTest(A:PChar):Boolean; external 'JLX'; {$R *.DFM} procedure TForm1.Button1Click(Sender: TObject); begin Showmessage('Hello'); zLinkTest('Boo'); Showmessage('Bye'); end; begin Quote>>> JLTEST2.PAS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PROGRAM jltest2; USES wincrt; {$F+} PROCEDURE zLinkTest2; external 'JLX'; BEGIN writeln('hello'); readln; writeln('begin'); zLinkTest2; writeln('end'); END. Quote/ \_| \ | Golden 3 Technology / -->*<-- | j...@ozemail.com.au | ) | 100251,336 CompuServe \ __ / | 61-7-38492370 Voice \__ / \__/ | 61-7-38492375 Fax |