CppCodeProvider.CreateCompiler メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CppCodeProvider.CreateCompiler メソッドの意味・解説 

CppCodeProvider.CreateCompiler メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

メモ : このメソッドは、互換性のために残されています。

C++ コード コンパイラインスタンス作成します

名前空間: Microsoft.VisualC
アセンブリ: 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);
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

CppCodeProvider.CreateCompiler メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CppCodeProvider.CreateCompiler メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS