Discussion:
CRuntimeClass の実装について
(too old to reply)
ちゅ
2010-01-07 05:28:49 UTC
Permalink
MFC$B$G$N<ALd$G$9!#(B

CObject::IsKindOf() $B$N5!G=$r<+:n%/%i%9$K<h$jF~$l$?$$0Y!"(B
CRuntimeClass $B$r8+$F$d$jJ}$OJ,$+$C$?$N$G$9$,!"<BAu$KIU$$$F(B
$B5?Ld$,$"$j$^$9!#(B

CRuntimeClass $BFb$G(B $***@885$N%/%i%9L>$r<hF@$9$k$N$K(B
#ifdef _AFXDLL
CRuntimeClass* (PASCAL* m_pfnGetBaseClass)();
#else
CRuntimeClass* m_pBaseClass;
#endif
$B$H(B $B<BAu$,0[$J$C$F$$$^$9!#(B
$B3HD%(BDLL$B$N;~$@$1(B _GetBaseClass()/GetThisClass() $B7PM3$G(B
$***@885$H<+%/%i%9$r<hF@$7$F$$$^$9!#(B
$B$3$NM}M3$r?dB,$G$-$kJ}$,5o$^$7$?$i8f65<x$*4j$$$7$^$9!#(B
--
$B$A$e(B
UETA, Shin-ichi
2010-01-08 04:23:38 UTC
Permalink
$B$3$s$K$A$O!"?"ED$G$9!#(B
_AFXDLL$B$O!"(BMFC$B$rF0E*$K%j%s%/!"$D$^$j(BDLL$BHG(BMFC$B$r;H$&$3$H$r0UL#$9$k$N$G!"(B
$B%7%s%\%k$N%$%s%]!<%H(B/$B%(%/%9%]!<%H$,Mm$s$G$-$^$9!#(B

$B$3$l"-$O$A$g$C$H8E$$>pJs$_$?$$$G$9$1$I!":#$G$bDLMQ$9$k$N$G$O$J$$$+$H!#(B

PRB: Bad Pointer from RUNTIME_CLASS with Class from _AFXDLL
http://support.microsoft.com/kb/131946

$B$D$^$j!"(BMFC$B$rF0E*$K%j%s%/$9$k>l9g$O!"BP>]%*%V%8%'%/%H$N(BCRuntimeClass
$B$KD>@\%"%/%;%9$G$-$J$$$N$G!"%"%/%;%5!J(B_GetBaseClass/GetThisClass$B!K$r(B
$B2p$7$F<hF@$9$k$o$1$G$9!#(B

$B$^$!!"$3$NJU$j$O(BMFC$B$N%P!<%8%g%s$K$h$C$FHyL/$K<BAu$,JQ$o$k$+$b$7$l$J$$(B
$B$N$G!"%^%/%m$J$I!"!V$*LsB+!W$K=>$C$F%3!<%G%#%s%0$7!"$"$^$j?<F~$j$7$J$$J}$,(B
$B$$$$$G$7$g$&$M!#(B
$BDL>o$O(BDECLARE_DYNAMIC/IMPLEMENT_DYNAMIC$B%^%/%m$5$(;E9~$s$G$*$1$P!"(B
$B$"$H$O(BMFC$B$,>!<j$K=hM}$7$F$/$l$k$H;W$$$^$9$1$I(B...$B!#(B

$B%i%s%?%$%`(B $B%/%i%9>pJs$X$N%"%/%;%9J}K!(B (MFC)
http://msdn.microsoft.com/ja-jp/library/t91eb9y9%28VS.80%29.aspx
--
$B?"ED%7%9%F%`@_7W;vL3=j(B
Ueta System Design Studio
http://www.usdesign.jp/
$B?"ED??0l(B
mailto:***@usdesign.jp
ちゅ
2010-01-12 01:11:30 UTC
Permalink
$B$A$e(B $B$G$9!#(B

On Fri, 8 Jan 2010 13:23:38 +0900
Re: CRuntimeClass $B$N<BAu$K$D$$$F(B
$BM-Fq$&8f:B$$$^$9!#(B
CObject $B$+$i$***@8$G$O$J$/(B
$B<+:n$N%/%i%9$J$N$G(BMFC$B$N$*LsB+$N%3!<%G%#%s%0$,=PMh$J$$$N$,$D$i$$$G$9!#(B
RTTI$B$O;H$$$?$/$J$$$N$G!#(B(VC$B0J30$N8E$$%3%s%Q%$%i$G$b;HMQ$9$k0Y(B)
PRB: Bad Pointer from RUNTIME_CLASS with Class from _AFXDLL
http://support.microsoft.com/kb/131946
$B;29M$K$J$j$^$7$?!#(B
$B<+:n$N%/%i%9$J$N$G%7%s%\%k$NDj5A$O3N<B$K9T$J$C$F$$$k$N$G$9$,(B
$B$$$^$$$A3N?.$,$b$F$J$/$F<ALd$7$^$7$?!#(B
$B%/%i%9$r;H$&?M$O4JC1$K<BAu$7$F$/$l$H8@$$$^$9$,!":n$kB&$O(B
$B?'!9$J;v$rA[Dj$7$J$$$H$$$1$J$$$N$GBgJQ$G$9!#(B
myDECLARE_DYNAMIC / myIMPLEMENT_DYNAMIC$B%^%/%m(B $B:n$k$N$7$s$I$$$J!D!#(B
--
$B$A$e(B
Loading...