GitHub

[Hybrid1 Log2] IJW #pragma managed #pragma unmanaged

Code Nara 2018. 7. 22. 21:19




Call Managed Function and Unmanaged Function




Create Blank Solution

Name : Log2





Create C++ Console Project

Name : Cpp1





Set /clr Compile Option





Set /Zc:twoPhase- Compile Option (disable two-phase name lookup)







< 참고 >


Native and .NET Interoperability


Mixed, pure, and verifiable feature comparison (C++/CLI)


/Zc:twoPhase- (disable two-phase name lookup)

To set this compiler option in the Visual Studio development environment

1. Open the project's Property Pages dialog box. For details, see Working with Project Properties.

2. Select the Configuration Properties > C/C++ > Command Line property page.

3. Modify the Additional Options property to include /Zc:twoPhase- and then choose OK.