jFD開発したりしなかったり日誌
2009-02-18 [長年日記]
_ .Net Compact Frameworkとlog4n
Windows Mobile向けの開発をC#でやってるのだが、ログ出力に
log4nを使い始めたところ、GUIエディタが動かなくなった。
自作のコンポーネント集のDLLでlog4nを参照してて、それを参照した
プロジェクトで画面を設計してるのだが、GUIエディタが言うには、
UnsafeControlというクラスにはxxxという属性が無い、とのこと。
それ、UnsafeControlじゃなくて僕が書いたxxxってクラスなんですけど、
と思うがどうにもならない。
原因を調べたら、log4nがネイティブのDLLの呼び出しを行っていて、
そのために開発用のPCでは動作が保証されないということでGUIエディタで
コントロールを表示しないようだ。
コントロールにカスタム属性で
「DesktopCompatible(true)」
という指定を付ければ良いらしいが、やったけどどれかに漏れがあるらしく
相変わらず表示されない。
悩んだが、割り切って自分で簡単なログライブラリを実装してしまうことにした。
これにて一件落着。
_ セカイカメラ
とうとう動いてるデモが公開された。
うーん・・・僕が欲しかったのはこれじゃない。
結局iPhoneはコンパスが入ってないので方位がわからないから、カメラ映像と
CGの合成に意味が無いし、カメラである必要性がよくわからない。
[ツッコミを入れる]
[TrackBack URL: https://starseed.ne.jp/ikemen/diary/tdiary/tb.rb/20090218]
本日のリンク元
その他のリンク元
- https://www.google.co.jp/ ×41
- https://www.bing.com/ ×11
- https://www.bing.com/search?q=DesktopCompatible属性を... ×5
- https://www.bing.com/search?q=DesktopCompatible&re... ×2
- https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&... ×1
- http://s.luna.tv/search.aspx?q=DesktopCompatible&s... ×1
- https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&... ×1
検索
- キーワード不明 ×40 / DesktopCompatible(true) ×34 / DesktopCompatible ×32 / UnsafeControl ×8 / desktopcompatible ×8 / DesktopCompatible属性 ×8 / unsafecontrol ×5 / desktopcompatible(true) ×5 / log4n ×3 / DesktopCompatible(true) 属性 ×3 / desktopcompatible true ×3 / desktopcompatible(true) c# ×2 / desktopcompatible属性 ×2 / DesktopCompatible true ×2 / .net DesktopCompatible(true) ×2 / DesktopCompatible C# ×2 / C# カスタムコントロール UnsafeControl ×2 / C# DesktopCompatible ×2 / <DesktopCompatible>true</DesktopCompatible> ×2 / c# DesktopCompatible 属性 ×1 / カスタム属性 c# desktopcompatible ×1 / DesktopCompatible カスタム属性 ×1 / DesktopCompatible( ×1 / desktopcompatible c# ×1 / C# カスタム属性 DesktopCompatible ×1 / コンパクトフレームワーク DesktopCompatible ×1 / UnsafeControlとは ×1 / Desktopcompatible 2008 ×1 / DesktopCompatible 属性 ×1 / DesktopCompatible(true) 設定方法 ×1 / DesktopCompatible(true) ”C#" ×1 / .NET UnsafeControl ×1 / C# CE ログ出力 ×1 / 2005 DesktopCompatible ×1 / DesktopCompatible(true)を設定 ×1 / DesktopCompatible属性 true ×1 / DesktopCompatible true class ×1 / Desktopcompatible true ×1 / c# コンパス 方位表示 ×1 / c# desktopcompatible ×1 / .net DesktopCompatible ×1 / Dll DesktopCompatible ×1 / microsoft compact framework unsafecontrol ×1 / c# unsafecontrol ×1 / .net 属性 DesktopCompatible ×1