台灣最大程式設計社群網站
線上人數
1117
 
會員總數:244902
討論主題:188893
歡迎您免費加入會員
討論區列表 >> C/C++ >> C++ Builder Xe6 TPrinter
[]  
[我要回覆]
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
C++ Builder Xe6 TPrinter
價值 : 10 QP  點閱數:1321 回應數:0

樓主

冰火狂魔
初學者
10 4
142 20
發送站內信

In IDE "C++ Builder Xe6" I create a FireMonkey Desktop Application, add a button and add the code as follow:
//---------------------------------------------------------------------------

#include <fmx.h>
#pragma hdrstop

#include "Unit1.h"
#include "FMX.Printer.hpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TPrinter *pPrinter = Fmx::Printer::Printer();
if (pPrinter)
{
pPrinter->BeginDoc();
pPrinter->EndDoc();
}
}
Then I execute the program and click Button1. when I exit the Program, the error message occurs "Project Project1.exe raised exception class $C0000005 with message ' access violation at 0x5005ed62: read of address 0x02d63ab8", the call Stack window message is ":5005ed62 rtl200.@System@TObject@Free$qqrv + 0x6", How to solve this problem?

搜尋相關Tags的文章: [ C ] , [ C++ ] , [ FireMonkey ] , [ Fmx ] , [ Xe6 ] , [ Xe ] , [ TPrinter ] , [ ] ,
本篇文章發表於2014-05-16 11:38
別忘捐VP感謝幫助你的人 新手會員瞧一瞧
目前尚無任何回覆
   

回覆
如要回應,請先登入.