The following examples is in the VBASIC40 subdirectory. Later versions of Visual Basic do not come with built in graphing tools so the graphing part will not work with these.
This application is set up so that each button has is a conceptual step. In general it may be better to do more within a function.
This example uses the Minimal DLL, but will also work with the full DLL (just replace vendlm32.dll with vendll32.dll in the general section of the code.