使用SDK 编写DLL,如何从DLL中导出类,有几种方法。 多谢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 采用接口方式:以interface IXXXX{};CXXXXImp: public IXXXX{};extern "C" IXXXX *g_GetInterface();IXXXX *g_GetInterface(){} sorry 没写完extern "C" IXXXX *g_GetInterface();IXXXX *g_GetInterface(){ return new CXXXX;} 调用时:IXXXX *p = g_GetInterface();g_releaseInterface( p ); class _declspec(dllexport) CMyClass{} 导出时class _declspec(dllexport) CMyClass{}导入时class _declspec(dllimport) CMyClass{} 大侠门吝啬个思路 请问如何在视图中显示一幅bmp图像 字体轮廓线的问题,请指教 悲伤中······,散分 求解GDI+资料 哪有类似QQ的界面控件下载? 急需一个需要循环的批处理程序?(150分赠送!) 怎么在内存DC上使用OPENGL BMP问题 求助:各位大哥我的这个 SetTimer(hwnd,1,1000,NULL); 怎么好象没有起作用呢?谢谢 编译顺序是否可以设定,知道的请进! 求《visual c++.net宝典》电子书下载
以
interface IXXXX
{
};CXXXXImp: public IXXXX
{
};extern "C" IXXXX *g_GetInterface();
IXXXX *g_GetInterface()
{}
IXXXX *g_GetInterface()
{
return new CXXXX;
}
{
}
{
}
导入时class _declspec(dllimport) CMyClass
{
}