User Profile

Collapse

Profile Sidebar

Collapse
gstarr
gstarr
Last Activity: Aug 11 '10, 01:32 PM
Joined: Feb 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gstarr
    replied to Passing Structures from C++ to a VB .NET DLL
    in C
    Thanks for the response. Someone else pointed out what I was doing wrong. Turns out that I need to reference the Structure that is defined in VB when I'm declaring the variable in C++

    instead of this in C++
    testParams tp;
    I needed to do this:
    kpdUI::testPara ms tp;

    Now it works like a champ.

    Thanks again... Gary
    See more | Go to post

    Leave a comment:


  • gstarr
    started a topic Passing Structures from C++ to a VB .NET DLL
    in C

    Passing Structures from C++ to a VB .NET DLL

    I'm having trouble getting the correct syntax for passing a structure from C++ to VB .NET.

    I have a VB .Net DLL program with the following code:
    [code=vb]
    Public Structure testParams
    Public iFirst As Integer
    Public iSecond As Integer
    End Structure

    Public Class clsKpdUI
    Public Function ShowForm(ByVal Param1 As testParams) As Integer
    ' Code
    End Function
    End...
    See more | Go to post
No activity results to display
Show More
Working...