|
-
Jan 3rd, 2004, 03:48 PM
#1
Thread Starter
Lively Member
I am the trouble master
I got some C# code that does what I want my previous VB code did. Now the problem is that My VB code won't co-operate with the C# code, and according to VBTV, they said you could include C# code in a VB project. Now how do I do that?
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Jan 3rd, 2004, 03:49 PM
#2
Make a C# DLL project, then reference it in your VB project and use it
-
Jan 3rd, 2004, 03:54 PM
#3
Thread Starter
Lively Member
The intellisence isn't catching the C# still. Is there a special name I need to refer the C# project in order to access it?
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Jan 3rd, 2004, 04:16 PM
#4
Originally posted by Danny J
The intellisence isn't catching the C# still. Is there a special name I need to refer the C# project in order to access it?
If you create the DLL correctly, then in your VB Project you have to create an instance of the class that is in the DLL. Make sure it is referenced in your VB project (your C# DLL that is)
-
Jan 3rd, 2004, 04:27 PM
#5
Thread Starter
Lively Member
oh ok
now how do I convert a UInt32 to an Integer?
I tried CType, but it wouldn't work.
sorry for all the questions.
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Jan 3rd, 2004, 04:37 PM
#6
Thread Starter
Lively Member
I got it
VB Code:
tbSpeakers.Value = CType(Right.ToString, Integer)
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Jan 3rd, 2004, 08:03 PM
#7
To convert ANYTHING, check out the Convert namespace
-
Jan 3rd, 2004, 09:26 PM
#8
Member
Re: I am the trouble master
Originally posted by Danny J
I got some C# code that does what I want my previous VB code did. Now the problem is that My VB code won't co-operate with the C# code, and according to VBTV, they said you could include C# code in a VB project. Now how do I do that?
http://www.remotesoft.com/octopus/
select try-it
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
|