chào các Bác! em là thành viên mới. biết rất ít về C++.NET, em đang làm bài tập mà nó cứ báo lỗi. mong các bác chỉ giúp:
Visual C++ Code:
#include "stdafx.h" #include "SkyeTekAPI.h" #include "SkyeTekProtocol.h" // stop flag bool isStop = false; FILE *fp = NULL; void debug(char *msg) { char *p = strstr(msg,"\r"); if( p != NULL ) { *p++ = '\n'; *p = '\0'; } if( fp != NULL ) fprintf(fp,msg); else printf(msg); } // // FUNCTION: SelectLoopCallback(LPSKYETEK_TAG, void *) // // PURPOSE: Callback called by SkyeTek_SelectTags whenever // a tag is selected. This returns 1 to continue // and zero to stop. // // unsigned char SelectLoopCallback(LPSKYETEK_TAG lpTag, void *user) { if( !isStop ) { if( lpTag != NULL ) { printf("Tag: "); for(int i=0; i<sizeof(lpTag->friendly); i++) printf("%s", lpTag->friendly+i); printf(" Type: "); for(int i=0; i<(sizeof(SkyeTek_GetTagTypeNameFromType(lpTag->type))*16); i++) printf("%s", SkyeTek_GetTagTypeNameFromType(lpTag->type)+i); printf("\n"); SkyeTek_FreeTag(lpTag); } } return( !isStop ); }
các SkyeTekAPI và SkyeTekProtocol là các hàm có rồi, em chỉ dùng #include thôi, 2 file đó em lưu vào cùng thư mục chạy Chương Trình.
khi em chạy chương trình thì luôn báo lỗi như sau:
BTSView.obj : error LNK2001: unresolved external symbol __imp__SkyeTek_FreeReaders
BTSView.obj : error LNK2001: unresolved external symbol __imp__SkyeTek_FreeDevices
BTSView.obj : error LNK2001: unresolved external symbol __imp__SkyeTek_DiscoverReaders
BTSView.obj : error LNK2001: unresolved external symbol __imp__SkyeTek_DiscoverDevices
Các bác chỉ giáo dùm em! không biết còn thiếu gì? phải làm sao? mong các bác chỉ giáo
Cái này ở đâu ra?, bác up cả project lên cho mọi người xem mới được.BTSView.obj
Phá toái hư không - Bạch nhật thăng thiên.