本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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
}
示例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);
}
}
示例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;
}
示例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;
}
示例9: IntPtr
IntPtr NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::GetDisposableObject()
{
return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
示例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))
}
示例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);
}
示例12: IntPtr
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition::GetDisposableObject()
{
return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
示例13: IntPtr
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject()
{
return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
示例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()));
示例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);
}