Delphi Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
델파이 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
FreePascal/Lazarus
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
델마당
볼랜드포럼 광고 모집

델파이 Q&A
Delphi Programming Q&A
[15700] C#코드를 델파이로 컨버팅하는데 도움 요청드립니다.
황희성 [pass3008] 1878 읽음    2016-05-03 15:51
protected override void WndProc(ref Message m)
{
    base.WndProc(ref m);
    int readLength = m.WParam.ToInt32();
    byte[] readData = new byte[readLength];
    Marshal.Copy(m.LParam, readData, 0, readLength);
}

위의 코드를 델파이로 컨버팅해야 하는데
Marshal.Copy(m.LParam, readData, 0, readLength) 이부분을 어떻게 해야할지 전혀 모르겠습니다.
구글링해도 자료를 못찾겠고. 델파이에도 똑같은 함수가 있긴 하던데 자꾸
There is no overloaded version of 'Copy' that can be called with these arguments
이런 에러가 나구요. 고수님들 도움 요청드립니다. 이것만 해결하면 되는데. 2주째 이부분 해결 못해서
발만 동동 구르고 있습니다. 제가 컨버팅 한 소스는 아래와 같습니다.

procedure TForm1.WndProc(var Message: TMessage);
var
  readData: array of Byte;
  readLength: Integer;
  Mar: TMarshal;
begin
    readLength := Message.WParam;
    SetLength(readData, readLength);
    Mar := TMarshal.Create;
    Mar.Copy(Message.LParam, 0, readData, readLength); <-- 요기서 에러
end;

+ -

관련 글 리스트
15700 C#코드를 델파이로 컨버팅하는데 도움 요청드립니다. 황희성 1878 2016/05/03
15701     Re:C#코드를 델파이로 컨버팅하는데 도움 요청드립니다. 사탄 2159 2016/05/03
15702         Re:Re:C#코드를 델파이로 컨버팅하는데 도움 요청드립니다. 황희성 1987 2016/05/04
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.