상세 컨텐츠

본문 제목

VS 2005이상 배포 관련팁~

프로그래밍 관련/프로그래밍 관련팁

by AlrepondTech 2009. 1. 7. 11:23

본문

반응형
 

 

 

=================================

=================================

=================================

 

 

 

 

http://msdn2.microsoft.com/ko-kr/library/ms235291.aspx

 대략정리하자면...

비주얼씨가 깔려있는 디랙토리를 찾아보면 vcredist_x86.exe이라는것이 있습니다. 이것을 상대방 피씨에 설치를하면(비주얼씨가 깔리지않은...) 윈도우 시스템 디랙토리에 재배포용 DLL이 깔리게됩니다.

그러나 이것은 릴리즈모드용 DLL만깔리게 되므로 디버그용은 따로 찾아서 해당 디랙토리에 카피를해야합니다.

실행파일의 종속성은 이전버전처럼 종속성검사툴을 따로사용안하셔도 메니피스트 파일을 열어보시면알수있습니다.

메니피스트파일은 xml파일인데.....

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32"

name="Microsoft.VC80.DebugCRT"

version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>

이런식으로 종속성을 찾아볼수가있습니다.


성준인용:
덧붙여서 VS 2005~ 이상은 컴파일할때 자신의 컴퓨터나 맞는 버전의 dll이나 매니패스트를 넣어주어야 합니다.
물론 다른방법도 여러가지 있습니다.

예))
폴더 - C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86

Microsoft.VC90.ATL -  Microsoft.VC90.ATL.manifest atl90.dll
Microsoft.VC90.CRT -  Microsoft.VC90.CRT.manifest msvcm90.dll msvcp90.dll msvcr90.dll
Microsoft.VC90.MFC - Microsoft.VC90.MFC.manifest mfc90.dll mfc90u.dll mfcm90.dll mfcm90u.dll

ATL이나 MFC는 컴파일에 종속성으로 포함시켜두 됩니다 하지만 ATL은 버전에 따라 다르지만 지금은
대부분 넣어 배포해 주시면 됩니다

비주얼씨디랙토리\VC\redist 에보시면 빨간글씨와 같은 이름의 폴더가 보일겁니다. 거기에들어있는 DLL들이 필요하다는 소리입니다.

 

=================================

=================================

=================================

 

반응형


관련글 더보기

댓글 영역