zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

11 2010 档案

摘要:Individuals and interactions over processes and toolsWorking software over comprehensive documentationCustomer collaboration over contract negotiationResponding to change over following a plan1.Our hi... 阅读全文
posted @ 2010-11-19 17:58 zip's 阅读(285) 评论(0) 推荐(0)

摘要:在MFC DLL导出函数中传.net对象,不可以,有编译错误如下: error C3395: 'MyClass::Function' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention 解决方法是,为参数包上 gcroot<>. class AFX_EXT_CL... 阅读全文
posted @ 2010-11-19 16:03 zip's 阅读(1066) 评论(0) 推荐(0)

摘要:在将MFC程序加入 /clr 编译时,你有可能会看到这个编译错误cl : Command line error D8016 : '/RTC1' and '/clr' command-line options are incompatible处理的方法:工程Properties属性,在C/C++ -> CodeGeneration下找到Basic Runtime Checks 属性 现在为(B... 阅读全文
posted @ 2010-11-19 15:42 zip's 阅读(4195) 评论(0) 推荐(0)

摘要:我看到的现象是,在debug程序退出时,会弹出个对话框,显示标题中所示的错误消息。产生该问题的原因是,在 unload 一个 navtive dll 时,调用了 /clr 编译的对象,通常是因为这个对象是个全局对象,之前未加 /clr 编译没事,现在 /clr 了,就出了问题。解决方法有:1,退出程序在退出前,显式释放 /clr 对象;2,将那个对象 #pragma unmanaged 成一个 native class; 阅读全文
posted @ 2010-11-01 17:40 zip's 阅读(571) 评论(2) 推荐(0)