Re: 如何才可再class 宣告一個bimap物件?

看板Programming作者 (狂嵐焰)時間18年前 (2007/10/21 13:12), 編輯推噓4(402)
留言6則, 4人參與, 最新討論串2/2 (看更多)
※ 引述《QQ29.bbs@bbs.wretch.cc (NCTU rookie)》之銘言: : 我想法上是想要達到這樣 : class T : { : public: : Bitmap image; : }; : main裡面是 : T im; : im.image(L"xxx.jpg"); : graphic.DramImage(&image,0,0,image.GetWidth(),image.GetHeight()); 不知道你的語言與工具是什麼 使用 C++ 的語法的可能性有: C++(BCB、VC)、C#等... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.129.87

10/21 14:19, , 1F
我使用的是 VC++ 2005
10/21 14:19, 1F

10/21 18:09, , 2F
你要寫個constructor才能用 im.image(..)
10/21 18:09, 2F

10/21 22:33, , 3F
丟上你的error message和你的code吧
10/21 22:33, 3F

10/21 22:33, , 4F
既然都說有compile error
10/21 22:33, 4F

10/21 22:33, , 5F
也就一定會有code存在:p
10/21 22:33, 5F

10/22 11:51, , 6F
看起來你是用GDI 是否沒有正確include
10/22 11:51, 6F
文章代碼(AID): #176j_PJI (Programming)
文章代碼(AID): #176j_PJI (Programming)