Message 1 of 5
Passing reference from C# to VB dll
Not applicable
11-28-2006
05:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have written a Function in VB6.0 and made it as a dll. I have given this dll as a reference to a C# application. I have to pass an object to this VB dll as a parameter from C#. But i am getting error while passing the object. Here is the Coding
DemoProject.DemoClass DP = new DemoProject.DemoClass(); Autodesk.AutoCAD.Interop.Common.AcadObject Obj = e.DBObject;
DP.GetObjFromParent(ref Obj );
I am getting error at above line. Any help would be greatly appreciated. Thanks in advance.
Regards,
Basha
I have written a Function in VB6.0 and made it as a dll. I have given this dll as a reference to a C# application. I have to pass an object to this VB dll as a parameter from C#. But i am getting error while passing the object. Here is the Coding
DemoProject.DemoClass DP = new DemoProject.DemoClass(); Autodesk.AutoCAD.Interop.Common.AcadObject Obj = e.DBObject;
DP.GetObjFromParent(ref Obj );
I am getting error at above line. Any help would be greatly appreciated. Thanks in advance.
Regards,
Basha