【GUI】wxWidgets(旧wxWindows) その5【サイザー】 (960レス)
【GUI】wxWidgets(旧wxWindows) その5【サイザー】 http://mevius.5ch.net/test/read.cgi/tech/1270793556/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
441: デフォルトの名無しさん [sage] 2012/07/14(土) 23:52:18.18 c++とwxWidgetsを勉強中です。 わからないことがあるので教えていただけませんか。 void functestFrame::OnButton2Click(wxCommandEvent& event) { wxString str1 = L"まっぎょ"; functestFrame::wxStringfunc(&str1); } void functestFrame::wxStringfunc(wxString* str) { wxMessageBox(*str);} 4-10はコンパイルと実行できました。 void functestFrame::OnButton3Click(wxCommandEvent& event) { wxArrayString temp1; temp1.Add(wxT("ぽけもん")); functestFrame::wxArrayStringfunc(&temp1); } void functestFrame::wxArrayStringfunc(wxArrayString *arraystring) { for (int i=0 ; i< *arraystring.GetCount() ; i++) {*arraystring.Item(i);} } コンパイルエラーがでます。 C:\Users\x\Desktop\functest\functestMain.cpp||In member function 'void functestFrame::wxArrayStringfunc(wxArrayString*)':| C:\Users\x\Desktop\functest\functestMain.cpp|169|error: request for member 'GetCount' in 'arraystring', which is of non-class type 'wxArrayString*'| C:\Users\x\Desktop\functest\functestMain.cpp|170|error: request for member 'Item' in 'arraystring', which is of non-class type 'wxArrayString*'| ||=== Build finished: 2 errors, 0 warnings (0 minutes, 1 seconds) ===| wxstringと同じ方法をしているつもりなのですが、どのようにすればコンパイルができるのでしょうか? http://mevius.5ch.net/test/read.cgi/tech/1270793556/441
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 519 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.025s