Download AES_4C - MarshallSoft Computing
Transcript
4.3 Microsoft C/C++ Express Edition The “Express Edition” of Microsoft Visual Studio is available as a free download at http://www.microsoft.com/express/download/ Open the VC project file as in previous versions of Visual Studio. 4.4 Microsoft Studio Visual C# AES functions can be called from Microsoft Visual C# (C-sharp) in the same manner as Win32 API functions. All C# projects end with extension ".csproj". For example, cs_vers.csproj ClientCS.csproj In order to call AES functions from an existing C# programs, do the following to the C# source code: (1) Add using System.Runtime.InteropServices; to the application source code. (2) Add the contents of file aes_funs.cs to the application source code after public class aes : System.Windows.Forms.Form (3) Add the constants from aes_cons.cs to the program as they are needed. Look at the cs_vers and ClientCS example projects in the APPS directory. (4) Set "unsafe" compilation for any functions that calls AES functions. For example private unsafe void button1_Click(object sender, System.EventArgs e) (5) Verify that AllowUnsafeBlocks is set to true in the project file (.vcproj). That is, AllowUnsafeBlocks = "true" 16