[질문] VS2005에서 만든 프로그램이 다른 PC에서 실행이 안됩니다.

bizzare의 이미지

VS2005로 만든 프로그램을
VS2005가 설치되지 않은 컴퓨터에서 실행하려고 하니 에러가 납니다.
mfc80.dll, msvcr80.dll, msvcp80.dll 는 모두 복사해두었습니다.
(위의 세 파일이 없으면 depends.exe 로 체크하면 물음표 표시가 나오죠.)

depends.exe로 프로그램을 체크해보면 다음과 같은 에러 메시지가 나옵니다.
warning은 존재해도 되는 것으로 알고 있기에 Error만 어떻게 해결하면 될 지 알면 될 것 같습니다.
Error: The Side-by-Side configuration information in "d:\temp\TEST.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

만일 TEST.exe를 실행하면 다음과 같은 에러 상자가 뜹니다.
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

어떻게 해야할 지 도와주시면 감사하겠습니다.
(참고로 실행환경은 Windows XP입니다.)

IDNed의 이미지

일단 전 라이브러리 쪽 문제라고 생각합니다.(확실치는 않지만...)
따라서 해보시려면 MFC Static Library 사용 및 CRT Static Library 사용을 하여 컴파일 후 테스트하심도 어떨까요?

MFC도 COM Register 등의 과정(혹은 동적로딩할 부수 DLL등...)과 같은 런타임 인스톨 과정이 필요하지 않을까요.

세이군의 이미지

다른 PC에서 돌리려면 프로그램파일, MFC 8.0 DLL파일들을 복사해서는 실행이 안되고 별도의 프로그램을 설치한 다음에 프로그램을 돌려야 정상적으로 실행이 된다고 들었습니다.

데브피아 게시판에서 검색을 해보세요. 그 곳엔 답이 있을 것 같습니다.

chadr의 이미지

http://www.serious-code.net/moin.cgi/RedistributingVisualCppRunTimeLibrary

이곳을 참고해보세요..

가장 간단한 방법은 \Windows\WinSxS\Manifests 의 하위에 있는 파일들 중에서

"\Windows\WinSxS\x86_Microsoft.VC80.CRT_어쩌구저쩌구" 라는 폴더 이름과 같은 메니페스트 파일을 복사해서
배포본에 포함시키는게 낫습니다만.. 뭔가 보안 문제가 있다고 하는데 뭔지는 모르겠습니다 -_-a;

mfc 파일도 마찬가지로 하시면 됩니다.(x86_Microsoft.VC80.MFC_어쩌구저쩌구")

참고로 side by side assembly는 xp이상의 windows에서만 작동합니다.. 그 이하의 버전에서는
side by side assembly가 작동하지 않고 그냥 실행파일과 같은 디렉토리에만 넣어도 실행이 됩니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.

-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.

hongyver의 이미지

일단 실행을 시키시려면...

릴리즈 버전은
C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86
디버그 버전은
C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist
에서 CRT, MFC, ATL등 필요한 dll을 실행파일과 같은 경로명에 복사하시고...
(Microsoft.VC80.*.manifest 도 포함해서)

위에서 말씀하신 C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe 파일을 설치하시면 실행이 될겁니다.

----------------------------------
http://hongyver.pe.kr

--------------------------------------------
오토바이 타는 개발자
홍가일보 편집장 홍가이버

madenmud의 이미지

http://www.microsoft.com/downloads/details.aspx?FamilyID=32bc1bee-a3f9-4c13-9c99-220b62a191ee&DisplayLang=ko

위의 재배포 패키지를 실행하려는 PC에 설치하시면 됩니다.

---------------------------------------------------------------------

성인인증통과 -_-V

성인인증통과 -_-V

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.