Foros: Developers (Thread #12715)

コンパイル ビルド2 (2006-11-01 10:56 by Anónimo #25715)

初めまして.

0.3.4のソースコードをダウンロードして,VC.NETでコンパイルしたのですが,以下のエラーが取れません.

解決方法を教えていただければ幸いです.
よろしくお願い致します.

c:\documents and settings\tanabe\デスクトップ\pochy-0.3.4-src\pluginlistdialog.cpp(76): error C2440: 'reinterpret_cast' : 'DWORD_PTR' から 'std::vector<_Ty>::const_iterator' に変換できません。
with
[
_Ty=CPlugin
]
c:\documents and settings\tanabe\デスクトップ\pochy-0.3.4-src\resource.h(11): warning C4005: 'RT_MANIFEST' : マクロが再定義されました。

Responder al #25715×

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.) Entrar

RE: コンパイル ビルド2 (2006-11-01 22:01 by moogv #25718)

VC.NETは2005でしょうか?

ちょっと調べてみたんですが、
こんな感じにかな?と思ってやってみたんですが、
どうもおかしいみたいです。
CPluginManager::PLUGIN_LIST::const_iterator *it = reinterpret_cast<CPluginManager::PLUGIN_LIST::const_iterator*>(m_listPlugin.GetItemData(pNMListView->iItem));
CPlugin::CInfo info = (*it)->GetInfo();

とりあえず、無理やり
BOOL CPluginListDialog::OnInitDialog() のなかの
- m_listPlugin.SetItemData(nIndex, reinterpret_cast<DWORD>(&it));

+ m_listPlugin.SetItemData(nIndex, reinterpret_cast<DWORD>(&info));
に変更して

void CPluginListDialog::OnItemChanged(NMHDR* pNMHDR, LRESULT* pResult) のなかの
- CPluginManager::PLUGIN_LIST::const_iterator it;
- it = reinterpret_cast<CPluginManager::PLUGIN_LIST::const_iterator>(m_listPlugin.GetItemData(pNMListView->iItem));
- const CPlugin::CInfo& info = it->GetInfo();
- infoString = info.m_name + _T("\r\n") +
- info.m_version + _T("\r\n") +
- info.m_copyright + _T("\r\n\r\n") +
- info.m_comments.c_str();

+ CPlugin::CInfo *it = reinterpret_cast<CPlugin::CInfo*>(m_listPlugin.GetItemData(pNMListView->iItem));
+ infoString = it->m_name + _T("\r\n") +
+ it->m_version + _T("\r\n") +
+ it->m_copyright + _T("\r\n\r\n") +
+ it->m_comments.c_str();
に変更することで、その場しのぎが出来ると思います。

私の方からも、誰か分かる方教えて下さい。
Responder al #25715

Responder al #25718×

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.) Entrar

RE: コンパイル ビルド2 (2006-11-02 11:42 by Anónimo #25733)

解答,ありがとうございます.
無事,コンパイルとおりました.

ちなみにVC.NETは2003です.
Responder al #25715

Responder al #25733×

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.) Entrar

RE: コンパイル ビルド2 (2008-03-12 19:39 by maimi09 #35533)

環境はVC.NET2005Expです。

http://lists.sourceforge.jp/pipermail/pochy-user/2006-February/000361.html
の投稿から、あまり進捗していないのですが・・・・

本日チェックアウトしたソースで、moogvさん上述の変更を加えると

d:\projects\pochy\main\summaryview.cpp(89) : error C4867: 'CSummaryView::MeasureItem': 関数呼び出しには引数リストがありません。メンバへのポインタを作成するために '&CSummaryView::MeasureItem' を使用してください

なんていうエラーが、でてくるような・・・
Responder al #25715

Responder al #35533×

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.) Entrar

RE: コンパイル ビルド2 (2008-03-16 00:02 by moogv #35579)

2005 Proでは正常にビルドできました。

ExpってMFC入っていましたっけ?
もし、MFCを使えるようにされているのでしたら

別スレッドで、改行コードを整理しましたので
もう一度、更新してみてビルドしてみてください。

Responder al #35533

Responder al #35579×

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.) Entrar