| 发表于:2007-06-22 09:21:40 楼主 |
请问:编译出这种错是什么原因: 错误 6 error lnk2028: 无法解析的标记(0a000005) "bool __clrcall donegmu(unsigned char *,int,int,int,char *) " (?donegmu@@$$fym_npaehhhpad@z),该标记在函数 "int __clrcall main(cli::array <class system::string ^ > ^) " (?main@@$$hymhp$01ap$aavstring@system@@@z) 中被引用 test13.obj 再把原码附上: // test13.cpp: 主项目文件。 #include "stdafx.h " #include "stdio.h "; #include "windows.h "; #include "domegmucode.h " using namespace system; int main(array <system::string ^> ^args) { domegmucode::datadotencoder donegmu; hinstance myhan; unsigned char encodedata; char * barname= "112333.bmp "; bool ref; if (null==(myhan=loadlibrary(text( "gmuensdk.dll ")))) { printf( "动态库调用失败 "); exit(0); } printf( "请输入生成gmu码的内容: "); scanf( "%s ",&encodedata); printf( "%s ",&encodedata); if(null==encodedata) { printf( "生成gmu码内容不能为空 "); exit(0); } ref=donegmu(&encodedata,80,300,600,barname); if (!ref); { printf( "动态库调用失败 "); exit(0); } freelibrary(myhan); return 0; } #pragma once ref class domegmucode { public: domegmucode(void); typedef bool(__stdcall datadotencoder)( unsigned char* in_data, int data_len, int dpi, int dot_dis, char* out_bmp_file); }; |
|
|
|
|