• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ IntPtr函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: IntPtr

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


示例17: SearchCondition

#include "FDO\Filter\mgIFilterProcessorImp.h"
#include "FDO\mgObjectFactory.h"

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition(IntPtr unmanaged, Boolean autoDelete) : SearchCondition(unmanaged, autoDelete)
{

}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition() : SearchCondition(IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create()), true)) 
}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition( NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^ leftExpression, NAMESPACE_OSGEO_FDO_FILTER::ComparisonOperations operation, NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^ rightExpression) : SearchCondition(IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create(leftExpression->GetImpObj(), static_cast<FdoComparisonOperations>(operation), rightExpression->GetImpObj())), true))
}

FdoComparisonCondition* NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetImpObj()
{
	return static_cast<FdoComparisonCondition*>(UnmanagedObject.ToPointer());
}

IntPtr NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonOperations NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::Operation::get()
{
	FdoComparisonOperations unobj;
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:31,代码来源:mgComparisonCondition.cpp


示例18: IntPtr

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


示例19: IntPtr

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


示例20: IntPtr

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IntRegister函数代码示例发布时间:2022-05-30
下一篇:
C++ IntPrioritySet函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap