ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / C functions
  • Use
  • Initialize the external language.
  • Syntax
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
nWDInit: Initialize the external language
Use

Initialize the external language.

Syntax
int      nWDInit(BOOL bDisplayError);
Parameter details
bDisplayError: Boolean
  • True to display the standard error window of WLanguage if a programming error occurs (syntax error for example).
  • False to retrieve the error and customize the error management.
Minimum version required
  • Version 9
Comments
Bug in wdextern.h until versions 25 for x64 processing
There is a bug in the delivered wdextern.h file when trying to do direct interoperability out of C/C++.

In 64-bit mode it will keep on calling the 32-bit WX Virtual Machine.
To fix this, these are the changes to make in wdextern.h.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// VM DLL name
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef WIN64 =========> This needs to be changed in #ifdef _WIN64
#define WD_DLLVM "WD230VM64.DLL"
#else
#define WD_DLLVM "WD230VM.DLL"
#endif
Peter Holemans (BE)
26 Nov. 2020

Last update: 05/26/2022

Send a report | Local help