Q

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 first published in September 2003
This Content Component encountered an error

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close