tag:blogger.com,1999:blog-6977069.post114323907672702894..comments2022-10-27T11:40:01.409+02:00Comments on Hallvard's Blog: Method calls compiler implementationHallvards New Bloghttp://www.blogger.com/profile/09527199955524812466noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6977069.post-65416342427138198162008-06-26T18:57:00.000+02:002008-06-26T18:57:00.000+02:00Hi again thanks for the answer. I'm an applica...Hi again<BR/><BR/> thanks for the answer.<BR/><BR/> I'm an application developer, mostly database applications.<BR/> I hardly understand what is going on at a low level.<BR/> Anyway I came up with these functions.<BR/><BR/> <BR/> function GetObjectVMT(Obj: TObject): Cardinal;<BR/> asm<BR/> MOV EAX, Obj<BR/> MOV EDX, [EAX]<BR/> MOV Result, EDX<BR/>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6977069.post-22255292796369364862008-06-25T15:26:00.000+02:002008-06-25T15:26:00.000+02:00> But how do I know if a method is virtual or not?...> But how do I know if a method is virtual or not?<BR/><BR/>Generally, you don't ;).<BR/><BR/>It is the call-site that calls the method that determines if the method will be called virtually or statically. The contents of the method itself does not change.<BR/><BR/>That said, there is a possible hack that could be used to determine if a specific method address matches a virtual method in the Hallvards New Bloghttps://www.blogger.com/profile/09527199955524812466noreply@blogger.comtag:blogger.com,1999:blog-6977069.post-48396734273976785322008-06-25T14:36:00.000+02:002008-06-25T14:36:00.000+02:00Hi there I'm attempting to use the CreateDispTyp...Hi there<BR/><BR/> I'm attempting to use the CreateDispTypeInfo() (ActiveX.pas) in order<BR/> to create, at runtime, a COM type library. <BR/><BR/> Having a type library for a class, makes it easy to convert an object of<BR/> that class to an IDispatch, for scripting purposes.<BR/><BR/> After that creation it's easy to use the DispGetIDsOfNames() and DispInvoke()<BR/> of the Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6977069.post-1152930995297006492006-07-15T04:36:00.000+02:002006-07-15T04:36:00.000+02:00Can u put a post that how i can intercept methods ...Can u put a post that how i can intercept methods in memory and call something before e after the real method?<BR/><BR/>And show how we can call virtual methods with parameters?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6977069.post-1143244306710719292006-03-25T00:51:00.000+01:002006-03-25T00:51:00.000+01:00welcome back!very good stuff as always, keep it co...welcome back!<BR/>very good stuff as always, keep it comingBlackTigerXhttps://www.blogger.com/profile/05376454374607771065noreply@blogger.com