Results 1 to 8 of 8

Thread: I am the trouble master

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108

    Unhappy 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."

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Make a C# DLL project, then reference it in your VB project and use it

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    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."

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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)

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    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."

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    I got it

    VB Code:
    1. 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."

  7. #7
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    To convert ANYTHING, check out the Convert namespace

  8. #8
    Member
    Join Date
    Nov 2003
    Location
    Amsterdam, The Netherlands
    Posts
    53

    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
  •  



Click Here to Expand Forum to Full Width