Problem solve Get help with specific problems with your technologies, process and projects.

Using API with VB.NET

I have been programming with VB.NET for almost a year now. There are times when I need some kind of functionality or control over something and people tell me to use the API functionality of the OS. I am very interested in learning how to use the API with VB.NET. Can you provide me with some abstract guidance on this?
At some point in your .NET programming, you're always going to have to jump outside the safe confines of the Framework Class Library and ask the OS to do some work for you that you can't get anywhere else. Fortunately, the interoperability layers in .NET programming make it relatively easy, provided you understand C programming and Windows idiosyncrasies, both of which are hard to chew if you've never seen them before.

Probably the best advice I can give you is to get the following book: Dan Appleman's Visual Basic Programmer's Guide to the Win32 API. (Yes, the author's name is part of the title. It must make him feel important :P ) While the book is written for Visual Basic 6, it will guide you into the opportunities and Visual Basic types you'll need to translate into Visual Basic .NET. You'll also want to start reading how to do interop at http://msdn.microsoft.com/vstudio/using/understand/interop/default.aspx.

This was last published in September 2003

Dig Deeper on .NET tutorials, guides and quizzes

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.