Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

cterrinw

@cterrinw
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Interface and GetType() - works in C# but not in VB?
    C cterrinw

    I have already created a c library but was hoping to avoid the overhead if possible. Thanks for the reply anyway.

    .NET (Core and Framework) help question csharp com

  • Interface and GetType() - works in C# but not in VB?
    C cterrinw

    Hi David, I am having the same problem, I can get the oleUnderlyingDataObject ok but I am unable to get the method getDataFromHGLOBLAL. The last line of code returns nothing... Did you find a resolution to this? Regards Bill Terrington

    Public Sub New(ByVal underlyingDataObject As System.Windows.Forms.IDataObject)
    'get the underlying dataobject and its ComType IDataObject interface to it
    Me.underlyingDataObject = underlyingDataObject
    Me.comUnderlyingDataObject = DirectCast(Me.underlyingDataObject, System.Runtime.InteropServices.ComTypes.IDataObject)

         'get the internal ole dataobject and its GetDataFromHGLOBLAL so it can be called later 
         Dim innerDataField As FieldInfo = CType(Me.underlyingDataObject, Object).\[GetType\].GetField("innerData", BindingFlags.NonPublic Or BindingFlags.Instance)
    
         Me.oleUnderlyingDataObject = DirectCast(innerDataField.GetValue(Me.underlyingDataObject), System.Windows.Forms.IDataObject)
         Me.getDataFromHGLOBLALMethod = CType(Me.oleUnderlyingDataObject, Object).\[GetType\].GetMethod("getDataFromHGLOBLAL", BindingFlags.NonPublic Or BindingFlags.Instance)
    

    End Sub

    .NET (Core and Framework) help question csharp com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups