And finally today, on Goo .NET, look at the genproxies.bat file in goo/c/g2c for examples of how to generate wrappers for .NET framework classes. This batch file generates a number of the ones used in the examples posted previously. Once generated, edit grt.h to include the generated .h file and run goodotnet.exe. Evaluate the following to generate the Goo C code: (use eval/g2c)
(g2c-goo)
Now you can build the system by running build.bat. You can then use the code from Goo. Note how slow and painful this approach is. Also note that I've already generated wrappers files for loading Assemblies, Types, etc. You should be able to create Goo code that uses reflection to generate Goo wrappers that use the reflection API. Then you wouldn't need to rebuild using the 'GenProxies' approach I've taken. Something for someone to work on if interested...
12:48:46 AM
|