locked
Calling a C# from VB6 RRS feed

  • Question

  • Hello,

    I have a need to make a c# call from a VB6 application.  

    In order to achieve this I wrote a c# routine and tried to call it from vb6 through following ways:

    1. Calling a .NET web service from VB6/COM
    2. Calling c# webservice from VB6/COM

    When we tried to use that routine in VB6, we got error as "could not connect with this type of format".. and then "Illegal Operation" and then application shut down.


    Please advise on what am I missing.

    Thank you
    Darsh

    • Moved by Carl Cai Friday, April 4, 2014 5:11 AM from(vb.net)vb6 is not supported
    Friday, April 4, 2014 3:03 AM

Answers

  • Hello,

    I have a need to make a c# call from a VB6 application.  

    In order to achieve this I wrote a c# routine and tried to call it from vb6 through following ways:

    1. Calling a .NET web service from VB6/COM
    2. Calling c# webservice from VB6/COM

    When we tried to use that routine in VB6, we got error as "could not connect with this type of format".. and then "Illegal Operation" and then application shut down.


    Please advise on what am I missing.

    Thank you
    Darsh


    You're missing a Forum for VB6 questions.

    Hello. I'm old and retired. I like to program if you could call what I do programming. However I'd like to code for you! If you've got the dime then I've got the time. Call me, landline, @ BR-549.

    • Proposed as answer by Carl Cai Friday, April 4, 2014 5:10 AM
    • Marked as answer by Just Karl Friday, August 8, 2014 10:38 PM
    Friday, April 4, 2014 3:19 AM