C# Corner

Resources  
  • Native Windows Dynamic Link Libraries (DLLs)May 05, 2013. This article briefly explains what a native Windows Dynamic Link Library (DLL) is, shows how to create a DLL using C++, how to consume it in C# and then explains how DLLs work.
  • Calling WinINet API from VB.NET Nov 10, 2012. This is an API which connects with the remote server . Inputs are the user name and password which are needed to connect with the server. For demonstration purpose an API called “FtpGetFile” is illustrated. Other API’s for deleting, putting , renaming and moving can be tried out. Please contact the author for any problems.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC in VB.NETNov 10, 2012. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Password Hacking in VB.NETNov 10, 2012. This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#Mar 29, 2011. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • CUDA integration with C#Nov 25, 2010. This article will focus on how to create an unmanaged dll with CUDA code and use it in a C# program. The example will show some differences between execution times of managed, unmanaged and new .NET 4 parallel versions of for() loops used to do computations on arrays.
  • Usage of system hotkeys and window messages in C#Jun 11, 2010. This article will show how to register a system hotkey for a currently running application and how to handle window messages for altering controls functionality or adding new functions to them.
  • Attributes in C#Nov 24, 2009. In this article I will explain about attributes in C#.
  • The Basics of .NET Framework InteroperabilityFeb 29, 2008. The System.Runtime.InteropServices namespace defines classes where some of which define methods that enable managed code to call native code. This is accomplished via an internal call and is called the Platform Invoke service
  • Sub classing a C# window in a DLL created using embedded VC++Jul 01, 2006. This article explains how to subclass a C# window in an eMbedded VC++ DLL.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • Screen Capture and Save as an ImageDec 30, 2003. The following example source code shows how to capture the screen and save it to an image.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC Jan 04, 2003. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.

About DllImport

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!