PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • 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 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 allows you to easily retrieve an existing C code and to convert it into WLanguage.
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 C structure converted into WLanguage

To copy the declaration code of C structure converted into WLanguage:
  1. Convert the code.
  2. Click the "Copy" button associated with the declaration code of WLanguage syntax or structure.
  3. In your WINDEV project, position yourself on the desired treatment or event:
    • project initialization (recommended).
    • declaration of the window's globals.
    • declaration of the global of the collection of procedures in which the API function call is made.
  4. In the code editor, select "Paste" from the popup menu (or press Ctrl + V).
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment