tag:blogger.com,1999:blog-5246987755651065286.post1077522683548827301..comments2024-02-22T16:15:42.388-08:00Comments on cbloom rants: 05-05-09 - AutoReflectcbloomhttp://www.blogger.com/profile/10714564834899413045noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5246987755651065286.post-86548025436355042772009-05-07T04:54:00.000-07:002009-05-07T04:54:00.000-07:00Thanks for sharing that!Thanks for sharing that!castanohttps://www.blogger.com/profile/08088335278984724562noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-59315426873450311452009-05-06T13:14:00.000-07:002009-05-06T13:14:00.000-07:00spinlock, yes that method is quite common.
I beli...spinlock, yes that method is quite common.<br /><br />I believe the Reflection method is massively preferable for various reasons that I have written about previously.cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-78535246689590281002009-05-06T11:31:00.000-07:002009-05-06T11:31:00.000-07:00For my reflection I use a set of macros which setu...For my reflection I use a set of macros which setup instances of descriptor classes at cinit, whoring the hell out of offsetof(). (much like http://garret.ru/reflect-103.zip - not the pdb reading one :o ) - you need one duplication of the member names you want to reflect, but it avoids external build utils.spinlockhttps://www.blogger.com/profile/05334208064137423256noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-43011189697335672402009-05-05T19:50:00.000-07:002009-05-05T19:50:00.000-07:00I think in newer VSes, there is a way to have cust...I think in newer VSes, there is a way to have custom build steps based on the file extension. Some stuff on it here:<br /><br />http://msdn.microsoft.com/en-us/library/aa730877(VS.80).aspxwon3dhttps://www.blogger.com/profile/09787472194187459747noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-35020992326369491972009-05-05T18:27:00.000-07:002009-05-05T18:27:00.000-07:00I should say clearly when I wrote "global" I meant...I should say clearly when I wrote "global" I meant "on the project" as opposed to being a pre-build associated with cpp, or putting the autogen'ed files in the project and giving them custom build steps. (I don't add the autogen'ed files to the project at all)cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-55581199048350390602009-05-05T18:25:00.000-07:002009-05-05T18:25:00.000-07:00It's just a pre-build on each project, which is fi...It's just a pre-build on each project, which is fine for me because the project dependencies do the right thing.<br /><br />Another option I just thought of is I could actually have a watcher app that just runs all the time and watches the whole source tree and insta-builds aups any time you change a cpp.cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-59581735291291219922009-05-05T18:21:00.000-07:002009-05-05T18:21:00.000-07:00How did you do a global pre-build event in a solut...How did you do a global pre-build event in a solution with multiple projects? I wanted to do a global post-build in VS2005 but there doesn't seem to be any way (and googling returned nothing useful) so I created a project which depends on all other projects and put my post-build in there.Samhttps://www.blogger.com/profile/01843393036648718286noreply@blogger.com