摘要: 其实从理论上讲结构体的和一般的基本值数据类型的封送没有太大的区别,因为都是栈上内存块的处理(当然如果结构体内有引用类型的成员也需要处理堆上的内存块)。Example:(最基本的结构体封送)C++ Code:structPerson{public:LPCSTRname;intage;};_declspec(dllexport)void_stdcallPrintPerson(Personperson){setlocale(LC_ALL,"chs");wprintf(L"PersonName:%s,Age:%d",person.name,person.age) 阅读全文
posted @ 2012-11-11 15:53 self.refactoring 阅读(1128) 评论(0) 推荐(0) 编辑