locked
VC++ Client Consuming VB but not consuming the data RRS feed

  • Question

  • I have done  following Steps:

    1.Changed  one line of code in C# library.

    2.This library consumed  in VB exe    after changing c#  library  not compiling vb  application.

    3.Old VB exe is consuming  in vc++ application.(with out compoiling vb)

    This application is not working.How to consume  the vb exe in vc++ application without compiling vb(means after chnged c# library but not changed in vb (not changed method signature   )

    Thanks & Regards,

    Mohan


    MohanV

    Tuesday, October 20, 2015 10:26 AM

Answers

  • You have to rebuild the exe if you are linking to a C# assembly.

    Maybe make your C# library be a COM server is a good solution.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by chchlll Tuesday, November 3, 2015 2:20 AM
    • Marked as answer by Shu 2017 Tuesday, November 3, 2015 5:11 AM
    Wednesday, October 21, 2015 6:50 AM

All replies

  • Are you asking about VC++ or C#?

    How is the VB exe consuming the library, and is it a managed C# library, or a native C++ library?

    Scot


    Developer Support Engineer

    Wednesday, October 21, 2015 12:59 AM
  • I have no idea what you are asking.  It looks like you are trying to call a VB module, either as a DLL or EXE, from either a C# app or a C++ app.  I think we will need some clarification to respond.  Are you using C++ or C#?  What kind of module is your VB code?  Is it a .Net module or not?  Is it a DLL or an EXE?  How are you trying  to call it -- COM, .Net remoting, or some other mechanism?

    Wednesday, October 21, 2015 1:24 AM
  • Does it work if you make a minor change in C# (add a comment, for example), without affecting the code, then recompile it and replace the original library?

    Which errors do you receive? And show some details about consuming C# library from VB and about consuming VB from C++.

    Wednesday, October 21, 2015 6:07 AM
  • You have to rebuild the exe if you are linking to a C# assembly.

    Maybe make your C# library be a COM server is a good solution.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by chchlll Tuesday, November 3, 2015 2:20 AM
    • Marked as answer by Shu 2017 Tuesday, November 3, 2015 5:11 AM
    Wednesday, October 21, 2015 6:50 AM