I finished (I hope) a class in C#, saved it, opened up my VB project, added the file to the project, and tried to instantiate an object from it. It's not showing up in Intellisense. what other steps do I need to do in order to use cross-languages?
Printable View
I finished (I hope) a class in C#, saved it, opened up my VB project, added the file to the project, and tried to instantiate an object from it. It's not showing up in Intellisense. what other steps do I need to do in order to use cross-languages?
Saved the class or compiled it? Think you have to compile classes to use them betwixt languages but I could be wrong.
that's what was wrong. I tried compiling it and it gave errors. now onto that!! lol
You can not host a c# and VB class in the same project (dll). You need to compile your C# project as a seperate dll, then reference that dll in your vb application. Or, in your solution, you can have a vb project and a c# project, and just include a project reference from one to the other.
Hi,
I am guessing and am probably wrong but I think you need to pupulate all of the "///" comments at the beginning of the function calls, etc... when the intellisense thing pops up with my own functions, it doesnt show me much detail for each parameter. I discovered this is why.
If it doesn't work, hey presto, you have just commented your code! :)
Hope this helps,
DJ