Reply

Join Date: Dec 2008
Posts: 1
Reputation: |brando is an unknown quantity at this point 
Solved Threads: 0
|brando |brando is offline Offline
Newbie Poster

Pascal DLL

 
0
  #1
Dec 6th, 2008
Im trying to compile a DLL to use with mIRC (chat client with an integrated language)

Pascal and Delphi Syntax (Toggle Plain Text)
  1. library dll;
  2.  
  3. uses
  4. SysUtils,
  5. Classes,
  6. Windows;
  7.  
  8. function Test(mWnd, aWnd : HWND; data, parms : PChar; show, nopause : boolean) : integer; stdcall;
  9. var
  10. s : string;
  11. begin
  12. s := 'Hello World';
  13. strcopy(data, PChar(s));
  14. result := 3;
  15. end;
  16.  
  17. begin
  18. end.
  19.  
  20. exports Test;
Compiler: Dev-Pascal 1.9.2

Im getting one error:
- Fatal: Can't find unit CLASSES

I can compile if i remove Classes, but then i can't access the function im trying to export (Test)

Can anyone suggest a solution?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Pascal DLL

 
0
  #2
Dec 7th, 2008
Im surprised that classes would stop you seeing the exported function, but then Im not up on dev-pascal.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC