且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决此反映方法问题?

更新时间:2023-09-19 16:41:22

哦!全反射"风格调用!没看到很长时间!

是否可以在\ Microsoft Visual Studio 8 \ VC \ bin \ dumpbin.exe/EXPORTS< file-name> .dll中看到此"setLabel"功能?? 调用.InvokeMember()尚不清楚,我在两侧都看到'clt'变量(甚至作为函数参数...)

如果您已经在进行反射-也许您可以_list_具有"public"签名的所有功能,并确保"setLabel"功能存在?因此,这不是错误的DLL还是强制转换的对象?
Oho ! Full 'reflection' style invoke ! Didn't see that a long time !

Does this 'setLabel' function can be seen in \Microsoft Visual Studio 8\VC\bin\dumpbin.exe /EXPORTS <file-name>.dll ??  It's not clear on what you calling .InvokeMember() - I see 'clt' variable on both sides (even as function parameter...)

And if you already doing reflection - may be you just can _list_ all the function with 'public' signature and make sure that 'setLabel' function exist ? So it's not a wrong DLL or casted object ?