2010-04-19 5 views
2

VisualAssert 및 cFix를 설치했습니다. Visual Studio C++ 및 CLI/C++ 프로그래밍을 사용하고 있습니다. 나는 자체적으로 완벽하게 작동하는 체스 게임 프로그램을 가지고있다. 나는 시험을 해왔고 그물에서 발견 된 많은 예제 (자습서 포함)를 Visual Studio에서 컴파일하고 실행했다. .....Visual C++ 테스트 문제

는 는하지만 최대한 빨리 .... 시도하고 내 체스 게임 ...... 내가 할이 문제에 대한 이러한 테스트를 구현할

이는 나에게

1>------ Build started: Project: ChessRound1, Configuration: Debug Win32 ------ 
1>Compiling... 
1>stdafx.cpp 
1>C:\Program Files\VisualAssert\include\cfixpe.h(137) : error C3641: 'CfixpCrtInitEmbedding' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe 
1>C:\Program Files\VisualAssert\include\cfixpe.h(235) : error C4394: 'CfixpCrtInitEmbeddingRegistration' : per-appdomain symbol should not be marked with __declspec(allocate) 
1>C:\Program Files\VisualAssert\include\cfixpe.h(235) : error C2393: 'CfixpCrtInitEmbeddingRegistration' : per-appdomain symbol cannot be allocated in segment '.CRT$XCX' 
1>C:\Program Files\VisualAssert\include\cfixpe.h(244) : error C2440: 'initializing' : cannot convert from 'void (__cdecl *)(void)' to 'const CFIX_CRT_INIT_ROUTINE' 
1>  Address of a function yields __clrcall calling convention in /clr:pure and /clr:safe; consider using __clrcall in target type 
1>C:\Program Files\VisualAssert\include\cfixpe.h(137) : error C3641: 'CfixpCrtInitEmbedding' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe 
1>Build log was saved at "file://c:\Users\james\Documents\Visual Studio 2008\Projects\ChessRound1\ChessRound1\Debug\BuildLog.htm" 
1>ChessRound1 - 4 error(s), 0 warning(s) 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

모든 말하는 것입니다

내가 뭘 잘못하고있어? 임 Windows 양식 작업 및 cpp 소스 파일의 힙이 있습니다.

도움을 주시면 감사하겠습니다.

감사

+0

제임스 감사합니다. 저는 같은 질문을하고 싶습니다. – ibrahimyilmaz

답변

2

시도/CLR에 (순수하고 안전한없이) CLR 스위치를 설정합니다.

+0

알렉스, 고맙습니다. 그게 전부 나를 위해 일하고 있어요. 큰 도움, 고마워. – JamesMCCullum

+0

+1 감사합니다. 이것으로 제 문제가 해결되었습니다. – Sabuncu