4.4. Call DLL Functions with a Pointer or an Array Argument

Our second example is just an extension of the first example. The difference between the first one and this one is that the random sequence is created in the VisualWorks domain, not in the Visual C++ domain. Also, this random sequence will be passed as a pointer or array to the Visual C++ domain.

4.4.1. Modify the Graphic User Interface

As a convenience for the user, we don't need to create a new GUI for the second example; we can modify the first GUI to meet our requirements. Open SimpleGUI from the Resource Finder by clicking the Edit button. Click Edit|Install from the UIPainter Tool window to open the INSTALL on Class: dialog box, which is shown in Figure 4-35(a). Enter RandomAnalysis ...

Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.