Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved .NET (Core and Framework)
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lili zd
    wrote on last edited by
    #1

    [Message Deleted]

    J 1 Reply Last reply
    0
    • L lili zd

      [Message Deleted]

      J Offline
      J Offline
      Jon Rista
      wrote on last edited by
      #2

      Do you want to use VB6, or VB.NET? You can have VB.NET and C# projects in teh same solution, and reference VB.NET projects from C# projects and share the assemblies (i.e. compiled result, not the actual code). But you can't have VB6 and C# in the same solution.

      L 1 Reply Last reply
      0
      • J Jon Rista

        Do you want to use VB6, or VB.NET? You can have VB.NET and C# projects in teh same solution, and reference VB.NET projects from C# projects and share the assemblies (i.e. compiled result, not the actual code). But you can't have VB6 and C# in the same solution.

        L Offline
        L Offline
        lili zd
        wrote on last edited by
        #3

        yes i want to have vb.net and c# in one project.would u please tell me what i should write in my project which is in c# to call a function in my another project which is in vb? if u help me that is very kind of u.

        L 1 Reply Last reply
        0
        • L lili zd

          yes i want to have vb.net and c# in one project.would u please tell me what i should write in my project which is in c# to call a function in my another project which is in vb? if u help me that is very kind of u.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language. A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


          L 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language. A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


            L Offline
            L Offline
            lili zd
            wrote on last edited by
            #5

            thank u for answer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups