Q&A

  • [질문] dll wizard로 생성한 프로젝트에서 VC dll을 임포트하는 방법??
Delphi 7 이구요

library project1;

{ Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters. }

uses
  SysUtils,
  Classes;

{$R *.res}

begin
end.

-----------------------------------------------------------------------------------------------------------

dll wizard 로 프로젝트를 생성하면 위와 같이 기본 골격(?)이 잡히는데 질문이
delphi dll (wizard) project에서 vc dll을 import할 일이 생겨서요...
만약 vc dll 명이 abc.dll 이라면

uses 이부분에다가만 추가해주면 되나요? 예를 들어...

uses
  SysUtils,
  Classes,
  abc;

이런식으로만 추가해주면 vc dll 내의 함수를 사용할 수 있는건가요?
1  COMMENTS
  • Profile
    최용일 2010.09.27 19:20
    function DLL_Function(Parameters...): ReturnValue; CallingConvention; external DLLFileName;

    function Addt(I, J: Integer): Integer; cdecl; external 'test.dll';