Download WSC4C Programmer`s Manual
Transcript
3.2 Microsoft Visual C# (C-Sharp) WSC functions can be called from Visual C# (C-sharp) in the same manner as Win32 API functions. All Visual C# projects end with extension ".csproj". For example, cs_vers.csproj In order to open an existing Visual C# project, choose "File", "Open", and then "Project" from the Microsoft C# Development Environment.. Specify the directory containing the Visual C# project files (for example, C:\WSC4C\APPS). In order to call WSC functions from your Visual C# programs, do the following to your existing C# source code: Add the contents of file wsc_funs.cs to source code after public class wsc : System.Windows.Forms.Form Add the constants from wsc_cons.cs to your program as they are needed. Look at the cs_vers program in the APPS directory for an example. Note that if pointers are to be passed to Visual C# programs, the C# programs must be compiled in "unsafe" mode. This is necessary only when calling those functions (such as SioPuts, SioGets, or SioWinError) that pass pointers. 3.3 Microsoft C/C++ (16-bit only) Support for Win16 was dropped beginning with version 5.2. Version 5.1 is still available (free when purchasing the current version) for those wanting Win16 support. 15