开发者

calling a vb.net class from c# in VS2010

So i am working on a wpf browser project in c# but on of the class library's I need is in vb.net. So in VS2010 I have imported the solution called vblib and it shows up on the so开发者_StackOverflow社区lution explorer. The class i need is public class vbintopm. So right now I have

using vblib;

       //down a few lines
vbintopm callvb= new vbintopm;

> now I keep getting errors that VS can't find class even though its in the solution explorer. What do i need to fix to this?


You need to actually reference the library from your C# project. Right-click the project and then select "Add Reference". On the "Projects" tab, select the project and click "OK".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜