답변 감사드립니다.
아래와 같이 해서 해결하였습니다. ^^ 파스칼 문법 지식이 짧아 너무 힘들었네요ㅜㅜ
: : : : : T_IN_LIST = record
: : : : : nNumber : Integer;
: : : : : szName : array[0..29] of CHAR;
: : : : : end;
PT_IN_LIST = ^T_IN_LIST;
: : : : :
: : : : : function FunctionAAA( ptList : PT_IN_LIST; var nCount : Integer ) : Integer;
: : : : :
: : : : : --- 호출 ---
: : : : : FList : array[0..99] of T_IN_LIST;
: : : : : ZeroMemory( @FList , sizeof( FList ) );
: : : : :
: : : : : nResult := FunctionAAA( @FList , nStationCount ); // FList 배열과 nStation에 값을 가져옴
이동원 님이 쓰신 글 :
: 다시 한 번 질문드려서 정말 죄송합니다.
:
: 역시 컴파일 오류가 발생하네요.
: function FunctionAAA(ptList : ^T_IN_LIST; var nCount : Integer ) : Integer; cdecl;
: [482]: Identifier expected but '^' found
:
: Lyn 님이 쓰신 글 :
: : ^T_IN_LIST 겠네요 ㅡ.ㅡ; 델파이를 하도 안쓰다보니 헤깔림
: :
: : 이동원 님이 쓰신 글 :
: : : 답변 감사드립니다.
: : :
: : : 그런데 function FunctionAAA(ptList : T_IN_LIST^; var nCount : Integer ) : Integer; cdecl;
: : : 에서 컴파일 오류가 발생하네요.
: : : [482]: ';', ')' or '=' expected but '^' found.
: : :
: : :
: : : Lyn 님이 쓰신 글 :
: : : : T_IN_LIST = record
: : : : nNumber : Integer;
: : : : szName : array[0..29] of AnsiChar;
: : : : end;
: : : :
: : : : function FunctionAAA(ptList : T_IN_LIST^; var nCount : Integer ) : Integer; cdecl;
: : : :
: : : : 이동원 님이 쓰신 글 :
: : : : : 델파이 초보입니다. 아래와 같은 c++ 헤더를 델파이로 변환하려고 하는데 실제 수행이 잘 안되네요...
: : : : : 조언 부탁드립니다.
: : : : :
: : : : : =========== c++ ====================
: : : : : typedef struct
: : : : : {
: : : : : int nNumber;
: : : : : char szName[30];
: : : : : }T_IN_LIST;
: : : : :
: : : : :
: : : : : int FunctionAAA( T_IN_LIST* ptList, int& nCount );
: : : : :
: : : : : ========== 델파이 ====================
: : : : : T_IN_LIST = record
: : : : : nNumber : Integer;
: : : : : szName : array[0..29] of CHAR;
: : : : : end;
: : : : :
: : : : : function FunctionAAA( var ptList : array of T_IN_LIST; var nCount : Integer ) : Integer;
: : : : :
: : : : : --- 호출 ---
: : : : : FList : array[0..99] of T_IN_LIST;
: : : : : ZeroMemory( @FList , sizeof( FList ) );
: : : : :
: : : : : nResult := FunctionAAA( FList , nStationCount ); // FList 배열과 nStation에 값을 가져옴
|