The different types of programming
WINDEV proposes 3 types of programming to call WINDEV element from an external language. To illustrate these methods, we will be using the C/C++ language+.
1st method: Programming in WinDev 5.5 mode
This method must not be used for the new developments. It is available for backward compatibility with the version 5.5. If you did not develop any project with the external interface of WINDEV, go to mode #2 directly.
In this mode, we are going to retrieve an application developed with WINDEV 5.5 and C/C++. The existing code (C and WLanguage) can be kept entirely, except for management of menus and initialization of controls at window opening...
2nd mode: Programming in C
We are going to call the elements developed in WINDEV (project, windows, analysis, etc.) from the C language. This system is based on the use of the functions declared in the .h, .c and .cpp files of WINDEV. The WLanguage code used from the external language will be dynamically compiled and run during its call.
This mode is illustrated in the VC60.dsp project (in Visual C++ 6 format) supplied in the "ExternalLanguages\C" subdirectory of WINDEV's setup directory.
3rd method: C++ programming (using the WDWDial interface)
This third method uses the notion of class inheritance to simplify the interfacing between a C++ application and WINDEV. This programming mode is recommended if you are already using an architecture based on classes for your developments (MFC for example).
The functions described in the 2nd method are used in background by the base classes supplied with this interface. See the chapter regarding the 2nd method for more details.
This mode is illustrated in the VC60API.dsp project (in Visual C++ 6 format) supplied in the "ExternalLanguages\C" subdirectory of WINDEV's setup directory.