PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Converting a declaration of C function or structure into a declaration of WLanguage structure
  • Converting a declaration of C function or structure into a declaration of WLanguage structure
  • Copying the declaration code of the C structure converted into WLanguage
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WDAPI: Converting a declaration of C function or structure
Overview
WDAPI is used to convert a declaration of C function or structure into a declaration of WLanguage function or structure. It enables you to easily retrieve an existing C code and to convert it into WLanguage.
Reminder: WDAPI can be started from the maintenance center of WINDEV ("Tools .. WDTool - Maintenance center")Reminder: WDAPI can be started from WDTool: on the "Tools" pane, in the "Utilities" group, click "WDTool".
Converting a declaration of C function or structure into a declaration of WLanguage structure

Converting a declaration of C function or structure into a declaration of WLanguage structure

To convert a declaration of C function or structure into a declaration of WLanguage structure:
  1. Select the "Convert C into WLanguage" pane.
  2. To convert a declaration of C function, enter the code of this function in "Prototype of the function in C".
    To convert a declaration of C structure, enter the code of this structure in "Structure in C".
  3. Click the arrow ( ) found below the corresponding control.
  4. The corresponding WLanguage code is automatically generated. This code can be copied into your WLanguage program (see the next paragraph).
Rare case: Some specific features linked to a structure or to a function of the Windows API may not be interpreted properly by WDAPI. In this case, the conversion must be performed by yourself.

Copying the declaration code of the C structure converted into WLanguage

To copy the declaration code of the C structure converted into WLanguage:
  1. Convert the code.
  2. Click the "Copy" button associated with the declaration code of the WLanguage syntax or structure.
  3. In your WINDEV project, go to the requested process:
    • initialization process of the project (recommended).
    • declaration process of the global variables of the window.
    • declaration process of the global variables of the set of procedures in which the call to the API function is performed.
  4. In the code editor, select "Paste" from the popup menu (or press [CTRL] + [V]).
See also
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment