|
-
May 19th, 2004, 09:15 AM
#1
Thread Starter
Frenzied Member
using c# classes in VB [RESOLVED]
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?
Last edited by Andy; Aug 13th, 2004 at 12:09 PM.
-
May 19th, 2004, 09:40 AM
#2
Fanatic Member
Saved the class or compiled it? Think you have to compile classes to use them betwixt languages but I could be wrong.
-
May 19th, 2004, 09:51 AM
#3
Thread Starter
Frenzied Member
that's what was wrong. I tried compiling it and it gave errors. now onto that!! lol
-
May 19th, 2004, 09:23 PM
#4
PowerPoster
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.
-
May 21st, 2004, 05:51 AM
#5
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|