|
我的MYEXPORT.def中的内容为
LIBRARY MYEXPORT
EXPORTS
LibDescription @1
LibNumberClasses @2
LibClassDesc @3
LibVersion @4
SECTIONS
.data READ WRITE
class MYClassDesc:public ClassDesc {
public:
int IsPublic() { return 1; }
void * Create(BOOL loading = FALSE) { return new XGC_Export; }
const TCHAR * ClassName() { return GetString(IDS_TH_3DSTUDIO); }
SClass_ID SuperClassID() { return SCENE_EXPORT_CLASS_ID; }
Class_ID ClassID() { return Class_ID(0xd1d,0); }
const TCHAR* Category() { return GetString(IDS_TH_SCENEEXPORT); }
};
static MYClassDesc MYDesc;
__declspec(dllexport) const TCHAR *LibDescription() { return GetString(IDS_TH_3DSEXPORTDLL); }
就是上面两行出现了问题,问题在下面,但是如果去掉生成的.dle文件,3dmax无法加载.我怀疑是函数二义性的问题,
剩下的我全都按照帮助文档去做了.
昨天搞了一晚上,没有解决,请大家帮忙.谢谢.
我用的是vc2005和3dmax7.0和max7sdk.max7sdk就是从gameres上下的,请大家帮忙.谢谢.
1>------ 已启动全部重新生成: 项目: MYEXPORT, 配置: Hybrid Win32 ------
1>正在删除项目“MYEXPORT”(配置“Hybrid|Win32”)的中间文件和输出文件
1>正在编译...
1>MYEXPORT.cpp
1>c:\program files\3dsmax7\max7sdk\include\strbasic.h(35) : warning C4005: 'UNICODE' : macro redefinition
1> command-line arguments : see previous definition of 'UNICODE'
1>c:\program files\3dsmax7\max7sdk\include\bitmap.h(131) : warning C4996: 'wcscpy' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\wchar.h(992) : see declaration of 'wcscpy'
1> Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>f:\新建文件夹\myexport\myexport\myexport.cpp(115) : warning C4996: '_wfopen' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\wchar.h(827) : see declaration of '_wfopen'
1> Message: 'This function or variable may be unsafe. Consider using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>正在编译资源...
1>正在编译资源清单...
1>正在链接...
1>MYEXPORT.obj : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/INCREMENTAL:NO”规范)
1>MYEXPORT.def : warning LNK4022: 找不到符号“LibDescription”的唯一匹配项
1>MYEXPORT.def : warning LNK4002: "wchar_t const * __cdecl LibDescription(void)" (?LibDescription@@YAPB_WXZ) 在 .\hybrid\MYEXPORT.obj 中定义
1>MYEXPORT.def : warning LNK4002: "char const * __cdecl LibDescription(void)" (?LibDescription@@YAPBDXZ) 在 C:\Program Files\3dsmax7\max7sdk\lib\maxscrpt.lib 中定义
1>MYEXPORT.def : error LNK2001: 无法解析的外部符号 LibDescription
1>Debug\My_Exp.lib : fatal error LNK1120: 1 个无法解析的外部命令
1>生成日志保存在“file://f:\新建文件夹\MYEXPORT\MYEXPORT\Hybrid\BuildLog.htm”
1>XGCEXPORT - 2 个错误,7 个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过 ==========
|
|