Q&A

  • [ 질문이요 ] c++ Dll 을 델에서 쓰려면 ...
/*-----------------------------------------------------------------------------

Function Name : DecipherBarCode



Parameters : cEncipheredBarCode - 암호화된 barcode

cDecipheredBarCode - 복호화된 barcode



Return value : 0 - 복호화 정상

1 - 복호화 이상



Description : cEncipheredBarCode의 값을 복호화 하여 cDecipheredBarCode에

저장한다.

-----------------------------------------------------------------------------*/



int DecipherBarCode(

unsigned char* cEncipheredBarCode,

unsigned char* cDecipheredBarCode)



//이상 C++에서 제작된 DLL임





// 델파이에서 dll 호출하려면 ?



function DecipherBarCode(cEncipheredBarCode,cDecipheredBarCode: Pchar)

: Integer ; stdcall; external 'Cipher_Dll.dll' index 2



// 위는 선언부분이고 아래는 실제 이벤트 코드 (DLL 호출부분 생략)



label2.caption := ????? ;

unsigned char* 를 어떻게 넣어야 할지 ...

그리고 나중에 cDecipheredBarCode는 어떻게 받을지 ....(요놈 포인터걸랑요)



조언 부탁드립니다

맨날 눈치코치로 살다보니 기초가 약하네요



0  COMMENTS