wxwidgest+codeblocks下加载动态链接库

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
cxrly
In need of some credit
In need of some credit
Posts: 4
Joined: Fri Sep 12, 2014 3:30 am

wxwidgest+codeblocks下加载动态链接库

Post by cxrly » Sat Sep 13, 2014 6:34 am

各位大大们,codeblocks在linux环境下怎么调用别人的接口怎么加载.so动态链接库,现在有.so库和写好的头文件,查到的文字和文章中只有dll库方式的加载
# include " wx / dynlib . h "
INITCOMMONCONTROLSEX icex ;
icex . dwSize = sizeof ( icex );
icex . dwICC = I C C D A T E C L A S S E S ;
// 加载comctl32 . dll
wxDynamicLibrary dllComCtl32 ( wxT ( " comctl32 . dll " ) , w x D L V E R B A T I M );
// 定义类型I C C E x t
typedef BOOL ( WINAPI ∗ I C C E x t )( INITCOMMONCONTROLSEX ∗ );
// 获取符号表InitCommonControlsEx
I C C E x t pfnInitCommonControlsEx =
( I C C E x t ) dllComCtrl32 . GetSymbol ( wxT ( " InitCommonControlsEx " ));
// 调用获取的函数.
if ( pfnInitCommonControlsEx )
{
( ∗ pfnInitCommonControlsEx )(& icex );
}
怎么实现,谢谢

ollydbg23
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 200
Joined: Fri Dec 12, 2008 10:31 am

Re: wxwidgest+codeblocks下加载动态链接库

Post by ollydbg23 » Fri Oct 10, 2014 5:08 am

codeblocks在linux环境下怎么调用别人的接口怎么加载.so动态链接库,
我看不懂你的问题,你能不能把病句改改好?
你是用codeblocks编程么?还是怎么弄?

Post Reply