阅读:1321回复:0
请教关于CY7C68013应用程序EzMr的问题
我一般都是程序-Cypress-USB-control panel 运行的,没问题。现在因为要将数据存在文件中,须修改应用程序,才发现在运行应用程序时(包括运行你发过来的应用程序,尽管编译没问题)弹出对话框:EzMr.exe-应用程序错误
“0x0040d5c0”指令引用的“0x0000022c”内存。该内存不能为“read”. 要终止程序,请单击“确定”。 要调试程序,请单击“取消”。 点“确定”后, if(pTh->pView) ((CEzMrView*)(pTh->pView))->m_nOpsPending--;//箭头指向 请教该如何解决???谢谢!!!很急!!! 存成文件的程序如下,插入在Ezmain.cpp中的case IDC_TRAN_BULK_DATA:中 CFile cf; CFileException e; //cf.Open(\"usbdata.dat\",CFile::modeCreate | CFile::modeWrite,NULL); if( !cf.Open( \"f:\\xym\\usbdata.dat\", CFile::modeCreate | CFile::modeWrite, &e ) ) { #ifdef _DEBUG afxDump << \"File could not be opened \" << e.m_cause << \"\\n\"; #endif } cf.Write(buffer,length); cf.Close(); |
|
最新喜欢:![]() |