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. C#
  4. .NET 1.1 Wrapper For 2.0 Class

.NET 1.1 Wrapper For 2.0 Class

Scheduled Pinned Locked Moved C#
csharphelpvisual-studiocomtutorial
5 Posts 4 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.
  • M Offline
    M Offline
    MartyExodus
    wrote on last edited by
    #1

    Hey guys.... I don't really know how to create a wrapper..... but I'd like to. Anyhow, I'm writing a program in Visual Studio 2003, and I need access to a .NET 2.0 class. If I try to reference a .NET 2.0 assembly (dll) in Visual Studio 2003, I get the following error:

    A reference to "C:\Slatesoft Development\utils.dll" could not be added. This is now a valid assembly or COM component. Only assemblies with the extension "dll" and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

    Any help would be great. Thanks.

    N 1 Reply Last reply
    0
    • M MartyExodus

      Hey guys.... I don't really know how to create a wrapper..... but I'd like to. Anyhow, I'm writing a program in Visual Studio 2003, and I need access to a .NET 2.0 class. If I try to reference a .NET 2.0 assembly (dll) in Visual Studio 2003, I get the following error:

      A reference to "C:\Slatesoft Development\utils.dll" could not be added. This is now a valid assembly or COM component. Only assemblies with the extension "dll" and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

      Any help would be great. Thanks.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can't use 2.0 assemblies in VS 2003


      only two letters away from being an asset

      M 1 Reply Last reply
      0
      • N Not Active

        You can't use 2.0 assemblies in VS 2003


        only two letters away from being an asset

        M Offline
        M Offline
        MartyExodus
        wrote on last edited by
        #3

        Okay, I figured that's what the problem was. Is there any way to create a .NET 1.1 wrapper for the .NET 2.0 class?

        D 1 Reply Last reply
        0
        • M MartyExodus

          Okay, I figured that's what the problem was. Is there any way to create a .NET 1.1 wrapper for the .NET 2.0 class?

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          No. YOU CAN NOT USE 2.0 CODE IN 1.1 ASSEMBLIES.

          -- Rules of thumb should not be taken for the whole hand.

          E 1 Reply Last reply
          0
          • D Dan Neely

            No. YOU CAN NOT USE 2.0 CODE IN 1.1 ASSEMBLIES.

            -- Rules of thumb should not be taken for the whole hand.

            E Offline
            E Offline
            ednrgc
            wrote on last edited by
            #5

            But, isn't there a way to use 2.0 code in 1.1 assemblies? :laugh::laugh::laugh:

            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