#include "MiddleCCPP.h"#include "netproxy.h"#include <stdio.h>//map<string, 函数指针>//查找//执行,查找//返回result,输出参数extern "C" void MiddleCCpp(CNetProxy* p){p->init(); //类型转换,null类型转换为CNetProxy,用这个空类去调用类的成员函数,语法是没有问题的。};c中的声明和调用:void MiddleCCpp(struct c* p);Middle Read More
posted @ 2012-02-20 13:38 wanglc_work Views(143) Comments(0) Diggs(0) Edit