当前位置: 首页>>代码示例>>C++>>正文


C++ system::IntPtr类代码示例

本文整理汇总了C++中system::IntPtr的典型用法代码示例。如果您正苦于以下问题:C++ IntPtr类的具体用法?C++ IntPtr怎么用?C++ IntPtr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了IntPtr类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Dismiss

 void InteriorsExplorerCLIMethods::Dismiss(System::IntPtr nativeObjectPtr)
 {
     InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer());
     view->Dismiss();
 }
开发者ID:Krukobardacha,项目名称:mobile-example-app,代码行数:5,代码来源:InteriorsExplorerCLI.cpp

示例2:

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::IOvPropertyMappingDefinition^ NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::ObjectFactory::CreateIOvPropertyMappingDefinition(System::IntPtr ptr, System::Boolean autoDispose)
{
	if (ptr == IntPtr::Zero)
		return nullptr;

	FdoSqlServerOvPropertyMappingDefinition* p = (FdoSqlServerOvPropertyMappingDefinition*)ptr.ToPointer();

	NAMESPACE_OSGEO_RUNTIME::Disposable^ wrap;

	// Note:
	// Here we need keep dynamic_cast to decide the real type of "ptr"
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingClass, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingConcrete, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete^>(wrap);
	
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingRelation, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingSingle, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle^>(wrap);

	if(wrap = CHECK<FdoSqlServerOvPropertyMappingDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingDefinition^>(wrap);

    return nullptr;
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:21,代码来源:mgObjectFactory.cpp

示例3: SelectFloor

 void InteriorsExplorerCLIMethods::SelectFloor(System::IntPtr nativeObjectPtr, int index)
 {
     InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer());
     view->SelectFloor(index);
 }
开发者ID:Krukobardacha,项目名称:mobile-example-app,代码行数:5,代码来源:InteriorsExplorerCLI.cpp

示例4:

Flood::RayQueryResult::RayQueryResult(System::IntPtr native)
{
    auto __native = (::RayQueryResult*)native.ToPointer();
    NativePtr = __native;
}
开发者ID:FloodProject,项目名称:flood,代码行数:5,代码来源:Scene.cpp

示例5: ManagedToUnmanaged

 * <[email protected]> and licensed under the MIT/X11 License.
 * For more information, see
 * http://geographiclib.sourceforge.net/
 **********************************************************************/
#include "stdafx.h"
#include "GeographicLib/Config.h"
#include "GeographicLib/Utility.hpp"
#include "NETGeographicLib.h"

using namespace System::Runtime::InteropServices;
using namespace NETGeographicLib;

//*****************************************************************************
std::string StringConvert::ManagedToUnmanaged( System::String^ s )
{
    System::IntPtr buffer = Marshal::StringToHGlobalAnsi(s);
    std::string output( reinterpret_cast<const char*>(buffer.ToPointer()) );
    Marshal::FreeHGlobal(buffer);
    return output;
}

//*****************************************************************************
System::String^ VersionInfo::GetString()
{
    return gcnew System::String(GEOGRAPHICLIB_VERSION_STRING);
}

//*****************************************************************************
int VersionInfo::MajorVersion()
{
    return GEOGRAPHICLIB_VERSION_MAJOR;
开发者ID:NREL,项目名称:OpenStudio,代码行数:31,代码来源:NETGeographicLib.cpp

示例6: MarshalStringToUnmanaged

	// Static
	const char* MarshalStringToUnmanaged(System::String* inputString)
	{
		System::IntPtr strPtr = System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(inputString);
		return (const char*)strPtr.ToPointer();
	}
开发者ID:dwmcqueen,项目名称:opencryptoplatform,代码行数:6,代码来源:Integration.Orig.cpp

示例7:

CLROBS::Texture::Texture(System::IntPtr texture)
{
    this->texture = (::Texture *)(texture.ToPointer());
}
开发者ID:hwdro,项目名称:CLRHostPlugin,代码行数:4,代码来源:GraphicsSystem.cpp

示例8:

CppSharp::Parser::ParserOptions::ParserOptions(System::IntPtr native)
{
    auto __native = (::CppSharp::CppParser::ParserOptions*)native.ToPointer();
    NativePtr = __native;
}
开发者ID:iHaD,项目名称:CppSharp,代码行数:5,代码来源:CppParser.cpp

示例9:

CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer());
}
开发者ID:genuinelucifer,项目名称:CppSharp,代码行数:4,代码来源:Sources.cpp

示例10:

CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
}
开发者ID:Anubhav10,项目名称:CppSharp,代码行数:4,代码来源:Target.cpp

示例11:

CppSharp::Parser::ParserOptions^ CppSharp::Parser::ParserOptions::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
    ::CppSharp::Parser::ParserOptions^ result = gcnew ::CppSharp::Parser::ParserOptions((::CppSharp::CppParser::ParserOptions*) native.ToPointer());
    result->__ownsNativeInstance = __ownsNativeInstance;
    return result;
}
开发者ID:fangsunjian,项目名称:CppSharp,代码行数:6,代码来源:CppParser.cpp

示例12:

CppSharp::Parser::CppParserOptions^ CppSharp::Parser::CppParserOptions::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::CppParserOptions((::CppSharp::CppParser::CppParserOptions*) native.ToPointer());
}
开发者ID:sk-havok,项目名称:CppSharp,代码行数:4,代码来源:CppParser.cpp


注:本文中的system::IntPtr类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。