Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Working with VB.net and VB6 together

Options
  • 16-10-2008 9:44am
    #1
    Closed Accounts Posts: 2,268 ✭✭✭


    I wonder if someone can help me.

    I have a VB.net application which is trying to open a VB6 Application.
    I have added the dll for the VB6 app.
    I have referenced the dll in my VB.net app.
    The vb6 reference is called VB6Departments

    Now when I type VB6Departments I can see a method in the VB6 app which is called LaunchDepts.

    It then prompts me for (byref idept as int) BUT when I try to pass in
    my own idept variable it throws an error.

    The error is
    Object Variable or With Block Variable not set



    Any suggestions.


Comments

Advertisement