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. Problem with DOTNET RCW (Runtime Callable Wrapper) Method

Problem with DOTNET RCW (Runtime Callable Wrapper) Method

Scheduled Pinned Locked Moved C#
helpcsharpc++question
6 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.
  • B Offline
    B Offline
    Balaji KJ
    wrote on last edited by
    #1

    Dear All, When I tried to call method from VC++ component thru RCW concepts, I'm getting "Null Reference Exception"Error. Can anyone assist me on this? :confused:

    V 1 Reply Last reply
    0
    • B Balaji KJ

      Dear All, When I tried to call method from VC++ component thru RCW concepts, I'm getting "Null Reference Exception"Error. Can anyone assist me on this? :confused:

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      Did you read this? All I can tell from whatever you've told is that you're not instantiating an object where you should be.

      Cheers, Vikram.


      The hands that help are holier than the lips that pray.

      B 1 Reply Last reply
      0
      • V Vikram A Punathambekar

        Did you read this? All I can tell from whatever you've told is that you're not instantiating an object where you should be.

        Cheers, Vikram.


        The hands that help are holier than the lips that pray.

        B Offline
        B Offline
        Balaji KJ
        wrote on last edited by
        #3

        I had instanciated it. However, still its remain same. Kindly, provide better remedy

        D 1 Reply Last reply
        0
        • B Balaji KJ

          I had instanciated it. However, still its remain same. Kindly, provide better remedy

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          With the information that you've provided, that's just not possible. How did you create this wrapper??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          B 1 Reply Last reply
          0
          • D Dave Kreskowiak

            With the information that you've provided, that's just not possible. How did you create this wrapper??

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            B Offline
            B Offline
            Balaji KJ
            wrote on last edited by
            #5

            I had created Wrapper from Dotnet by using tlbimp. I used this command to create Wrapper from command prompt of Dotnet. The command is "tlbimp / out: /verdose" If you execute this command, this would create RCW class for specified VC++ dll. Why did I created it in worng way? Is it so, Kindly provide betterment of it.

            D 1 Reply Last reply
            0
            • B Balaji KJ

              I had created Wrapper from Dotnet by using tlbimp. I used this command to create Wrapper from command prompt of Dotnet. The command is "tlbimp / out: /verdose" If you execute this command, this would create RCW class for specified VC++ dll. Why did I created it in worng way? Is it so, Kindly provide betterment of it.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              That's doing it the hard way, but it works. Is this a COM-based .DLL (registered using REGSVR32) or a library .DLL?? COM-based .DLL's you can add a reference to and Visual Studio will automatically generate the wrapper for you, without using the command line to do it.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              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