|
-
Feb 6th, 2007, 12:21 PM
#1
Thread Starter
Addicted Member
[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.
-
Feb 6th, 2007, 04:27 PM
#2
Fanatic Member
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!
-
Feb 6th, 2007, 04:47 PM
#3
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.
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
|