游戏开发论坛

 找回密码
 立即注册
搜索
查看: 6947|回复: 3

跪求各位大哥帮忙,3dmax插件编程问题

[复制链接]

8

主题

40

帖子

40

积分

注册会员

Rank: 2

积分
40
发表于 2008-4-25 13:35:00 | 显示全部楼层 |阅读模式
我的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 已跳过 ==========


8

主题

40

帖子

40

积分

注册会员

Rank: 2

积分
40
 楼主| 发表于 2008-4-25 22:53:00 | 显示全部楼层

Re:跪求各位大哥帮忙,3dmax插件编程问题

已经解决了,结帖

11

主题

18

帖子

30

积分

注册会员

Rank: 2

积分
30
发表于 2009-12-7 14:19:00 | 显示全部楼层

Re: 跪求各位大哥帮忙,3dmax插件编程问题

你好,你有QQ联系方式吗,我的是975660372,有问题与你讨论

0

主题

23

帖子

23

积分

注册会员

Rank: 2

积分
23
发表于 2010-1-26 13:45:00 | 显示全部楼层

Re:跪求各位大哥帮忙,3dmax插件编程问题


A New Year's resolution is wow power leveling essentially a warcraft gold

goal, and to achieve that goal you need to perform, and in order wow power leveling to perform you need

to think both positive wow gold and smart. Those who think positive and smart tend to use systems, and the

one set out here is perfect for New Year's aion power leveling resolutions.Write yourself a

plan. Having one is necessary to keep you on track.Create a aion gold daily routine. Break your

plan down into a day-to-day schedule of cheap wow power leveling things that you need to accomplish.Never give up.

Achieving is not easy, and there will be times when you want to give buy wow power leveling up, but you will never be

successful if you do so.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-8 18:10

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表