Category Archives: Tutorials

A tutorial about an aspect of programming or website design that I have expertise in.

C# – calling C functions – C# callbacks

The final tutorial in this series on calling C functions from C# covers the problem of how to pass a C# callback function to a C function. This is needed if you are using a C DLL and there are … Continue reading

Posted in C#, Software, Tutorials | Leave a comment

C# – calling C functions – marshalling structs

A Previous Post explained how to marshall simple parameters so that C# code can call C functions. The marshalling ensures that all the conversions to get from C# to C types on calling the function, then back to C# types … Continue reading

Posted in C#, Software, Tutorials | 1 Comment

C# – calling C functions – marshalling parameter types

The Problem I am using a DLL provided for me, written in C and I want to call its functions from C#. I have explained in a previous post how to dynamically load a function from a DLL and map … Continue reading

Posted in C#, Software, Tutorials | Leave a comment

C# – building a dynamic DLL loader

Following on from the previous C# article – dynamic loading of a C DLL at run-time, the next step is to make the dynamic loading functions into a class. The class will be in global scope for this example – … Continue reading

Posted in C#, Software, Tutorials | 1 Comment

C# – dynamic loading of a C DLL at run-time

The Problem I am working on a C# project which needs to load one of a set of DLLs at run-time. Indeed, it needs to be able to load and unload them, possibly then loading a different one. The problem … Continue reading

Posted in C#, Software, Tutorials | Leave a comment

Shell scripting tutorials – more prefix commands

The previous article on shell scripting of prefix commands introduced the subject, introduced some pre-defined prefix commands and then showed how to write a basic prefix command using the sleep-before command as an example. This article continues in the same … Continue reading

Posted in Shell scripting, Software, Tutorials | Leave a comment

Shell scripting tutorials – prefix commands

Prefix commands are a seriously useful concept in shell scripting. These are commands that you put before another command to modify its behaviour. The Bourne shell (sh) and Bash shells (bash) have several prefix commands built in, which I’ll cover … Continue reading

Posted in Shell scripting, Software, Tutorials | Leave a comment

Shell scripting tutorials – best references

Shell scripting is a powerful way of automating tasks. In these tutorials I refer to shell scripting to mean using the Bourne Shell (sh) or Bourne-Again Shell (bash) in a Unix (e.g. Linux) environment. However, I also use these scripts … Continue reading

Posted in Shell scripting, Software, Tutorials | Leave a comment