论坛: 开发者论坛 (Thread #26940)

VC2010 コンパイル (2010-07-27 10:42 by Yasuyo Yamanishi #52178)

メーラーに興味があり、コンパイルを試みたのですがなかなかうまくいきません。

VC2010でpochy-0.3.3のソースコードをビルドしています。

細かいエラーは自分で何とかなったのですが、あと2つのエラーと1つの警告が消えません。

どのようにすればいいかお教え頂けないでしょうか?


エラー 1 error C2440: 'reinterpret_cast' : 'std::_Vector_const_iterator<_Myvec>' から 'DWORD' に変換できません。 C:\Documents and Settings\yasuyo\デスクトップ\pochy\PluginListDialog.cpp 61 1 pochy

警告 2 warning C4554: '&' : 演算子の優先順位に問題があります。かっこを使用して優先順位を明確にしてください C:\Documents and Settings\yasuyo\デスクトップ\pochy\PluginListDialog.cpp 73 1 pochy

エラー 3 error C2440: 'reinterpret_cast' : 'DWORD_PTR' から 'std::_Vector_const_iterator<_Myvec>' に変換できません。 C:\Documents and Settings\yasuyo\デスクトップ\pochy\PluginListDialog.cpp 76 1 pochy

回复到 #52178×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: VS2010 コンパイル (2010-07-27 10:44 by Yasuyo Yamanishi #52179)

すみません。VS2010の間違いです。
回复到 #52178

回复到 #52179×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: VC2010 コンパイル (2010-08-17 10:10 by Yasuyo Yamanishi #52528)

追記:
今、PluginListDialog.cppのreinterpret_castしている所だけエラーが残っている状態です。
PluginListDialog.cppの内容についてどなたか説明して頂けると嬉しいです。
よろしくお願いします。

回复到 #52528×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

キャストの参考資料 (2012-09-23 01:34 by maimi09 #65591)

MSDNによるreinterpret_castの解説。
http://msdn.microsoft.com/ja-jp/library/cc440192%28v=vs.71%29.aspx

C++の入門で、参考になりそうなサイト
http://www7b.biglobe.ne.jp/~robe/
と、それを書籍化したもの
http://book.mycom.co.jp/book/978-4-8399-2605-2/978-4-8399-2605-2.shtml
回复到 #52178

回复到 #65591×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录