Re: [sleuthkit-developers] win32 live bugs?
Brought to you by:
carrier
From: Brian C. <ca...@sl...> - 2008-07-21 20:37:48
|
On Jul 21, 2008, at 4:20 PM, Darren Bilby wrote: > Thanks for taking a look at this, replies inline. > > Darren. > > On Mon, Jul 21, 2008 at 6:37 PM, Brian Carrier > <ca...@sl...> wrote: >> >> Ok, I'll add a variation of this in, but only if the path has the >> form of >> "\\.\?:" because I don't want random WRITE opens occurring for >> image files. > > Note that the FILE_SHARE_WRITE designation doesn't open the file for > writing, it designates how others should be able to access it, but > this seems sensible anyway. > http://msdn.microsoft.com/en-us/library/aa363874(VS.85).aspx > http://blogs.msdn.com/larryosterman/archive/2004/05/13/131263.aspx Ahh, even better. I had forgotten what each of the arguments to CreateFile meant. >> >>> 3. When recompiling with VS 2005 i get some errors on execution on >>> some hosts due to wrong versions of the msvc libs. Is there any >>> reason >>> we don't compile these libs in statically by default? given the >>> use of >>> these binaries it seems sensible and it only marginally affects the >>> size. >> >> Can you compile them in statically? I didn't think you could. > > I figured it should be possible so went looking and found "Use of > MFC" under: > Project Properties -> Configuration Properties -> General -> Use of > MFC > Setting that to "Use MFC in a Static Library" for each sleuthkit > project and recompiling it appears to work perfectly. > Searching after the fact I found: > http://msdn.microsoft.com/en-us/library/ms235264(VS.80).aspx > http://msdn.microsoft.com/en-us/library/ms235316(VS.80).aspx > Which advises against it, but I don't see any of the downsides being > applicable in this instance. > I did this under VC++ Express 2k8, but seems like it should work on > any VS. If there is a large desire to do this, I will consider it more, but if you are building your own executables then you probably should be using the MFC dlls from your compiler and not using the ones that I ship with the pre-built executables (which could be a different version). thanks, brian |