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

C++빌더 Q&A
C++Builder Programming Q&A
[21694] 질문요~~^^;;
이용주 [] 648 읽음    2002-09-26 12:40
dll에서 만든 함수를 외부에서 쓰는것에 관련해서 질문할께요~
포인터 함수를 불러서 dll에서 발생되는 이벤트에 대해서 메인폼으로 이벤트의 변수를 넘겨 줄려고 하고 있습니다. 
dll에서 만든 함수 

#define EXPORT_TYPE __declspec(dllimport)

void (*g_RxEvent_Fn)(byte *);

EXPORT_TYPE void RxEvent_CallBack_Fnv(void (*RxEvent_Fn)(unsigned char *))
{
   g_RxEvent_Fn = RxEvent_Fn;
}

이렇게 dll에서 선언을 하구 
MainForm에서 

RxEvent_CallBack_Fnv(RxEvent_Fn) ;
이렇게 호출을 할려고 합니다. 

근데 에러 메세지가 
[Linker Error] Unresolved external '_test_value' referenced from F:\MMTS_TEST\MAINFORM\MAINWINDOW.OBJ

이라고 나오네요.. 
.lib파일을 확인해 본 바로는
?              € Project_Async.dll ?  ? _ExpAsync_ChangeBaudRateProject_Async.dll  ?  ? _ExpAsync_ClearComPortProject_Async.dll  ?  ? _ExpAsync_CloseComPortProject_Async.dll  ?  ? _ExpAsync_DLoadCommandProject_Async.dll  ?  ? _ExpAsync_DeInitializeProject_Async.dll  ?  ? _ExpAsync_DiagCommandProject_Async.dll  ?  ? _ExpAsync_GetPortIDProject_Async.dll  ?  ? _ExpAsync_InitializeProject_Async.dll  ?  ? _ExpAsync_IsComPortOpenProject_Async.dll  ?  ? _ExpAsync_MCCToStrProject_Async.dll  ?  ? _ExpAsync_MNCToStrProject_Async.dll  ?  ? _ExpAsync_Min1ToStrProject_Async.dll  ?  ? _ExpAsync_Min2ToStrProject_Async.dll  ?  ? _ExpAsync_MinToStrProject_Async.dll  ?  ? _ExpAsync_ModeControlProject_Async.dll  ?  ? _ExpAsync_ModeDmgoProject_Async.dll  ?  ? _ExpAsync_NVReadProject_Async.dll  ?  ? _ExpAsync_NVWriteProject_Async.dll  ?  ? _ExpAsync_OpenComPortProject_Async.dll  ?  ? _ExpAsync_ReadComPortProject_Async.dll  ?  ? _ExpAsync_SetMainWndProject_Async.dll  ?  ? _ExpAsync_StrToMCCProject_Async.dll  ?  ? _ExpAsync_StrToMinProject_Async.dll  ?  ? _ExpAsync_StrToMin1Project_Async.dll  ?  ? _ExpAsync_StrToMin2Project_Async.dll  ?  ? _ExpAsync_StrToMncProject_Async.dll  ?  ? _ExpAsync_TerminateThreadProject_Async.dll  ?  ? _ExpAsync_UnlockSPCProject_Async.dll  ?  ? _ExpAsync_WriteByteProject_Async.dll  ?  ? _ExpAsync_WriteComPortProject_Async.dll  ?  ? _NVModelNumberProject_Async.dll  ?  ? 

_RxEvent_CallBack_FnvProject_Async.dll   <<====

  ?  ? ___CPPdebugHookProject_Async.dll  ?  ?  _test_valueProject_Async.dll  ?             ?  

위와 같이 포함이 되어 있습니다. 

왜 안되는지 모르겠네요.. 좀 가르쳐주세요.. 많은 조언 부탁드립니다. ㅠㅠ
그럼 이만..

+ -

관련 글 리스트
21694 질문요~~^^;; 이용주 648 2002/09/26
21705     Re:질문요~~^^;; 에보니.^0^ 671 2002/09/26
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.