ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / C language
  • Principle
  • Constants
  • Functions
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
Principle
You will find below the description of the functions accessible in C language to interface your WINDEV modules inside a C source code.
The parameters expected by each command are presented in details as well as the specific features.
Constants
The functions that return an int indicating the result of the command use the following constants (defined in wdextern.h):
Name Value Meaning
WDERROR_OK0Success
WDERROR_VERSION1Incompatible version number
WDERROR_DLLLOAD2Problem loading the DLL
WDERROR_WDLLOAD3Problem loading the WDL
WDERROR_DLLCPL4Compilation DLL not found
WDERROR_CPLERROR5Compilation error
WDERROR_MEMORY6Out of memory
WDERROR_TYPE8Non-convertible type
WDERROR_INIT9External language not initialized
WDERROR_EXECUTION10Runtime error
WDERROR_ERROR11Previous error not processed
WDERROR_COMMAND12Command of nWDExecute too long
WDERROR_INITPROJECT13The project initialization code was already run
WDERROR_UNKNOWNELEMENT14Unknown element
Functions
bWDGetReturnValue
nWDGetReturnValue
i64WDGetReturnValue
dWDGetReturnValue
pszWDGetReturnValue
Retrieve the return value further to a call to nWDExecute() or nWDEvalue()
nWDEvaluateEvaluate the value of an element
nWDExecuteRun a WLanguage function by dynamic compilation, with command formatting.
nWDExecuteExRun a WLanguage function by dynamic compilation, without command formatting.
nWDGetHFContextGets the HFSQL context (applies to C, Pascal and Visual Basic only)
nWDGetLastErrorError code of the last error
nWDInitInitialize the external language
nWDInitProjectRun the project initialization code
nWDOpenWDLOpens a WINDEV library (containing windows, reports, etc.)
nWDSetCallBackNextSets the callback called during WDKey and ReturnWDKey for the next window to open
nWDSetParentNextSet the parent of the next window to open
pszWDGetLastErrorMessage of last error
WDContinueErrorResume on error
WDTermEnd the external language
wWDGetReturnValueTypeType of the return value of the last nWDExecute() or nWDEvaluate()
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/19/2023

Send a report | Local help