Visual Studio 2015 solution for building https://github.com/WebAssembly/binaryen/tree/master/test/example. Examples are built in original C++ and C#. C# examples are translations of C++ examples. c-api-com
project demonstrates instantiating and calling a Windows COM (OLE/Automation) object from WebAssembly.
- Builds binaryen-c.cpp into a static library.
- Builds binaryen-c-dll.c into a dynamic library by DllExporting from the static library.
- Builds c-api-hello-world.c (uses static library)
- Builds c-api-kitchen-sink.c (uses static library)
- Builds c-api-com (uses static library). Instantiates a COM (OLE) object and calls its methods using CallImport.
- Builds cs-api-hello-world.cs (uses dll)
- Builds c-api-kitchen-sink.cs (uses dll)
To use, clone WebAssembly/binaryen. Be sure to edit all this repos project files (.vcxproj) to path source files at the binaryen cloned directory.