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


C++ IntPtr函数代码示例

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


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

示例1: EXCEPTION_HANDLER

NAMESPACE_OSGEO_FDO_SCHEMA::ClassDefinition^ NAMESPACE_OSGEO_FDO_XML::XmlFeaturePropertyWriter::ClassDefinition::get()
{
	FdoClassDefinition* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetClassDefinition())

	return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateClassDefinition(IntPtr(result), true);
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:8,代码来源:mgXmlFeaturePropertyWriter.cpp

示例2: EXCEPTION_HANDLER

NAMESPACE_OSGEO_FDO_SCHEMA::AssociationPropertyDefinition^ NAMESPACE_OSGEO_FDO_SCHEMA::NetworkFeatureClass::ParentNetworkFeatureProperty::get()
{
	FdoAssociationPropertyDefinition* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetParentNetworkFeatureProperty())

	return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateAssociationPropertyDefinition(IntPtr(result), true);
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:8,代码来源:mgNetworkFeatureClass.cpp

示例3: EXCEPTION_HANDLER

NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLDataReader^ NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLCommandImp::ExecuteReader()
{
	FdoISQLDataReader* result;

	EXCEPTION_HANDLER(result = GetImpObj()->ExecuteReader())

    return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateISQLDataReader(IntPtr(result), true);
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:8,代码来源:mgISQLCommandImp.cpp

示例4: ArgumentNullException

    cli::array<float>^ VowpalWabbitTopicPredictionFactory::Create(vw* vw, example* ex)
    {
        if (ex == nullptr)
            throw gcnew ArgumentNullException("ex");

        auto values = gcnew cli::array<float>(vw->lda);
        Marshal::Copy(IntPtr(ex->pred.scalars.begin()), values, 0, vw->lda);

        return values;
    }
开发者ID:lhoang29,项目名称:vowpal_wabbit,代码行数:10,代码来源:vw_prediction.cpp

示例5:

zDBVirtualTable<_cursor>::!zDBVirtualTable()
{
	// On finalization, it's critical to release all of the GCHandles that
	// have been allocated for overloaded functions

	for(FunctionMapIterator it = m_pFuncs->begin(); it != m_pFuncs->end(); it++)
		GCHandle::FromIntPtr(IntPtr(it->second)).Free();

	delete m_pFuncs;				// Destroy the collection
	m_pFuncs = NULL;				// Reset pointer to NULL
}
开发者ID:djp952,项目名称:data-legacy,代码行数:11,代码来源:zDBVirtualTable.cpp

示例6: AutomationFinder

AutomationControl::AutomationControl(const FindInformation& findInformation)
{
	try {
		auto rootElement = AutomationElement::FromHandle(IntPtr(findInformation.rootWindow));
		auto finder = gcnew AutomationFinder(rootElement);
		_control = finder->Find(findInformation);
	}
	catch(Exception^ e) {
		Debug::WriteLine("AutomationControl error:  {0}", e->Message);
	}
}
开发者ID:Kingles,项目名称:RAutomation,代码行数:11,代码来源:AutomationControl.cpp

示例7: IntPtr

VolumeDescription::VolumeDescription( const Core::VolumeDescription& volumeDescription )
{
    Data             = IntPtr( volumeDescription.data );

    NumVoxelsX       = volumeDescription.numVoxels.x;
    NumVoxelsY       = volumeDescription.numVoxels.y;
    NumVoxelsZ       = volumeDescription.numVoxels.z;

    DxgiFormat       = (SlimDX::DXGI::Format)volumeDescription.dxgiFormat;
    NumBytesPerVoxel = volumeDescription.numBytesPerVoxel;
    IsSigned         = volumeDescription.isSigned;
}
开发者ID:3Scan,项目名称:Mojo,代码行数:12,代码来源:VolumeDescription.cpp

示例8: CheckExample

    cli::array<int>^ VowpalWabbitMultilabelPredictionFactory::Create(vw* vw, example* ex)
    {
        CheckExample(vw, ex, prediction_type::multilabels);

        size_t length;
        uint32_t* labels;

        try
        {
            labels = VW::get_multilabel_predictions(ex, length);
        }
        CATCHRETHROW

        if (length > Int32::MaxValue)
            throw gcnew ArgumentOutOfRangeException("Multi-label predictions too large");

        auto values = gcnew cli::array<int>((int)length);

        if (length > 0)
            Marshal::Copy(IntPtr(labels), values, 0, (int)length);

		return values;
	}
开发者ID:lhoang29,项目名称:vowpal_wabbit,代码行数:23,代码来源:vw_prediction.cpp

示例9: IntPtr

IntPtr NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:4,代码来源:mgIRingAbstractImp.cpp

示例10: EXCEPTION_HANDLER

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::OvClassCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoOdbcOvClassCollection::Create()), true))
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:4,代码来源:mgOvClassCollection.cpp

示例11: EXCEPTION_HANDLER

NAMESPACE_OSGEO_GEOMETRY::IPolygon^ NAMESPACE_OSGEO_GEOMETRY::IMultiPolygonImp::default::get(System::Int32 index)
{
	FdoIPolygon* ret;
	EXCEPTION_HANDLER(ret = GetImpObj()->GetItem(index))
        return NAMESPACE_OSGEO_GEOMETRY::ObjectFactory::CreateIPolygon(IntPtr(ret), true);
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:6,代码来源:mgIMultiPolygonImp.cpp

示例12: IntPtr

IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:4,代码来源:mgOvPropertyMappingDefinition.cpp

示例13: IntPtr

IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:4,代码来源:mgOvPropertyDefinitionCollection.cpp

示例14: EXCEPTION_HANDLER

#include "stdafx.h"
#include "Rdbms\Override\RdbmsOv.h"
#include "SQLServerSpatial\SqlServerOvPropertyDefinitionCollection.h"

#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgOvPropertyDefinitionCollection.h"
#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgObjectFactory.h"
#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgOvPropertyDefinition.h"

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoSqlServerOvPropertyDefinitionCollection::Create()), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection(NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyDefinitionCollection^ baseCollection) : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoSqlServerOvPropertyDefinitionCollection::Create((nullptr == baseCollection ? nullptr : static_cast<FdoRdbmsOvPropertyDefinitionCollection*>(baseCollection->UnmanagedObject.ToPointer())))), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_COMMON::CollectionBase(unmanaged, autoDelete)
{

}

FdoSqlServerOvPropertyDefinitionCollection* NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetImpObj()
{
	return static_cast<FdoSqlServerOvPropertyDefinitionCollection*>(UnmanagedObject.ToPointer());
}

IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:31,代码来源:mgOvPropertyDefinitionCollection.cpp

示例15: EXCEPTION_HANDLER

NAMESPACE_OSGEO_GEOMETRY::IEnvelope^ NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::Envelope::get()
{
	FdoIEnvelope *ret;
	EXCEPTION_HANDLER(ret = GetImpObj()->GetEnvelope())
	return NAMESPACE_OSGEO_GEOMETRY::ObjectFactory::CreateIEnvelope(IntPtr(ret), true);
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:6,代码来源:mgIRingAbstractImp.cpp


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