Results 1 to 3 of 3

Thread: [2005] Help converting to VB.NET

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    175

    Question [2005] Help converting to VB.NET

    I'm working on some code for an asynchronous WMI query. The only problem is that the example code I found is using CSharp instead of VB. I'm stuck on this particular line:

    ObjectHandler objectHandler = new ObjectHandler();

    The VB.NET version of that should be something like:

    Dim handler As objectHandler = New objectHandler

    I get a "Type Undefined" error for objectHandler through.

    Is the objectHandler class specific to CSharp only? I can't seem to find it in VB.NET 2005.

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] Help converting to VB.NET

    I've never heard of it, myself, but it's possible it's inside of a library that you haven't referenced yet.
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Help converting to VB.NET

    There's no such thing as a class that's specific to a particular .NET language. If you want to know where a Framework class lives you (surprise, surprise) go to the MSDN library. According to the documentation there is no class with that name in the .NET Framework, so it is presumably defined in some code that comes from the author of the article you're reading. You're either going to have to incorporate that code into your project or reference a library that contains it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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