摘要: 代码:class AutoDeleteArPtr{public:explicit AutoDeleteArPtr(char* &cPtr){m_cPtr=cPtr;}~AutoDeleteArPtr(){if (NULL != m_cPtr){delete[] m_cPtr;... 阅读全文
posted @ 2013-04-16 19:10 蛮大人 阅读(176) 评论(0) 推荐(0) 编辑
摘要: c++代码 1 extern "C" _declspec(dllexport) bool get(char*& strPorts) 2 { 3 string str = "Hello"; 4 int length = str.size() + 1; 5 strPorts =... 阅读全文
posted @ 2012-09-09 11:25 蛮大人 阅读(1801) 评论(0) 推荐(0) 编辑