In VS2008 and VS2010 installed PInvoke.Net

Some programmers need from time to time for stuffed Win32 API functions in terms of VB / C # Inside, PInvoke.Net is a very useful tool (it can even be named MSDN Magazine as one of the ten VS Addin most need to be installed) ...


Some programmers need from time to time for stuffed Win32 API functions in terms of VB / C # Inside, PInvoke.Net is a very useful tool (it can even be named MSDN Magazine as one of the ten VS Addin most need to be installed) . Unfortunately, although this tool fully supports VS2003 / 2005, it does not seem to know VS2008 and VS2010 (even if VS2008 / 2010 have been listed for so long).

If you want to be able to use it in VS2008, you can follow these steps to do:

1. First, find PInvokeDotNetAddIn.Addin this file% programfiles% red gatePInvoke.NET subdirectory below to NotePad to open it.

2. Find the last tag in the file, and then insert the following this paragraph below (remember archive):


    Microsoft Visual Studio Macros
    9.0


    Microsoft Visual Studio
    9.0

3. Open VS2008, open the Tools menu, then select the Options Addin / Macro Security item, the installation of the subdirectory path PInvoke.Net Addin (C: Program FilesRed GatePInvoke.NET) was added to the list inside.

4. Re-open the VS2008, you can find PInvoke.Net items on the menu. In the program screen, select Insert PInvoke Signatures from the menu on the line.

As for VS2010, methods, but should above 9.0  Replaced by the words 10.0 It can be.

To use PInvoke.Net, you can enter in the window above the Win32 function that you want to query, such as "InternetOpen", then press the Search button. If you find it, you can see the corresponding program in the right window. However, not every Win32 API can be found in the corresponding C # / VB code; a lot of time, if no program available, you can press the lower right corner of the window inside the Go To Function on PInvoke.Net link connected to the official site research. Its official website made as if Wiki general, you do not need to register to provide advice, as I told WinInet / InternetCrackUrl offer my advice (I offer is C # version, as VB version does not know who supplied).


Dev 2Share @ point tribe

Original: Large columns  installed PInvoke.Net in VS2008 and VS2010


Guess you like

Origin www.cnblogs.com/chinatrump/p/11490950.html