CppCodeProvider.CreateCompiler メソッド
アセンブリ: CppCodeProvider (cppcodeprovider.dll 内)

<ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class.")> _ Public Overrides Function CreateCompiler As ICodeCompiler
Dim instance As CppCodeProvider Dim returnValue As ICodeCompiler returnValue = instance.CreateCompiler
[ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class.")] public override ICodeCompiler CreateCompiler ()
[ObsoleteAttribute(L"Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class.")] public: virtual ICodeCompiler^ CreateCompiler () override
/** @attribute ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class.") */ public ICodeCompiler CreateCompiler ()
ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class.") public override function CreateCompiler () : ICodeCompiler
System.CodeDom ベースの C++ ソース コードをコンパイルするために使用できる ICodeCompiler。

CreateCompiler メソッドを使用して、ICodeCompiler のインスタンスを生成するコード例を次に示します。ICodeCompiler のそのインスタンスは、CompileAssemblyFromDom メソッドを呼び出して CodeCompileUnit オブジェクトをコンパイルします。
#using <mscorlib.dll> #using <System.dll> #using "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\CppCodeProvider.dll" using namespace Microsoft::VisualC; using namespace System::CodeDom; using namespace System::CodeDom::Compiler; int main() { CodeCompileUnit^ testCodeCompileUnit = gcnew CodeCompileUnit(); CompilerParameters^ compilerParameters = gcnew CompilerParameters(); CppCodeProvider^ myCodeProvider = gcnew CppCodeProvider(); ICodeCompiler^ myCodeCompiler = myCodeProvider->CreateCompiler(); myCodeCompiler->CompileAssemblyFromDom(compilerParameters, testCodeCompileUnit); }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCppCodeProvider.CreateCompiler メソッドを検索する場合は、下記のリンクをクリックしてください。

- CppCodeProvider.CreateCompiler メソッドのページへのリンク