Re: File Version without GetFileVersionInfo
- From: Mihajlo Cvetanović <mac@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 17:49:28 +0200
Joseph M. Newcomer wrote:
It is a bit more complex than that, and his concern was "going to the file system", which, guess what, FindResource must do anyway! So his concern is pointless, and shows he is not thinking clearly about how to solve a trivial problem in a trivial way using a trivial method, but wants to "improve" on it by somehow bypassing the documented, working mechanism to implement some ad-hoc mechanism that could break on the next release of the OS, because of a peculiar idea that "going to the file system" somehow is a Bad Thing.
I always worry about how poorly we are training people when they even consider such issues worthy of discussion.
I think tnewton really stumbled on something here because it *is* possible to rename currently loaded dll, and place another with the previous name. In this situation GetFileVersionInfo will return invalid data (if the old dll is still loaded).
This could be an issue if you want to update dll on the fly, and you have only restart mechanism available, but not stop/start mechanism. In this case updating must be done with "rename and copy another" routine. In all the other cases the "prize" isn't worth the effort.
.
- Follow-Ups:
- Re: File Version without GetFileVersionInfo
- From: Joseph M . Newcomer
- Re: File Version without GetFileVersionInfo
- References:
- File Version without GetFileVersionInfo
- From: tnewton@xxxxxxxxx
- Re: File Version without GetFileVersionInfo
- From: Yan K. Avlasov
- Re: File Version without GetFileVersionInfo
- From: Joseph M . Newcomer
- File Version without GetFileVersionInfo
- Prev by Date: Re: How to avoid user closes the app
- Next by Date: Re: What could cause ::MessageBox to fail?
- Previous by thread: Re: File Version without GetFileVersionInfo
- Next by thread: Re: File Version without GetFileVersionInfo
- Index(es):
Relevant Pages
|
Loading