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