Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

watch COM object

$
0
0

I created a VB->windows application with the following code in the MainForm. It works fine, I added the COM references (Solid Edge: CAD) that I need. This code just accesses the active application and returns the active environment to a textfield. But as i watch objApp or look at the local variables I 'm not able to browse through it like i could in VB6. It doesn't show the methods, properties or anything else. Is there a way to fix this?

image of problem https://plus.google.com/photos/118180357581642391868/albums/5841578435663564033?authkey=CLKu95-hkKWW-wE

warnings thrown: Could not determine the dependencies of the COM reference "SolidEdgePart". Type komt niet overeen. (Uitzondering van HRESULT: 0x8002802A (TYPE_E_WRONGTYPEKIND)) (MSB3304)

Imports SolidEdgeFramework
Imports SolidEdgePart
Imports System.Runtime.InteropServices

Public Partial Class MainForm
    
    Public Sub New()
        ' The Me.InitializeComponent call is required for Windows Forms designer support.
        Me.InitializeComponent()
        
        '
        ' TODO : Add constructor code after InitializeComponents
        '
    End Sub

    Sub MainFormLoad(sender As Object, e As EventArgs)

        Dim objApp As SolidEdgeFramework.Application 
        Dim objDoc As SolidEdgePart.PartDocument
        objApp = GetObject(, "SolidEdge.Application")
        env.Text = objApp.ActiveEnvironment
    
    End Sub
End Class


Viewing all articles
Browse latest Browse all 1764

Trending Articles