CeMMCDriver *pFDriver = new CeMMCDriver ();
CFlash tflash = new CFlash(pFDriver );
以上的 code編譯後將出現
Conversion From ' CFlash ' To Non-Scalar Type ' CFlash ' Requested 的錯誤
若將程式碼改成
CeMMCDriver *pFDriver = new CeMMCDriver ();
CFlash *tflash = new CFlash(pFDriver );
或
CeMMCDriver *pFDriver = new CeMMCDriver ();
CFlash *tflash ;
tflash = new CFlash(pFDriver );
則沒問題
沒有留言:
張貼留言