Share via


Func1

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Example user-defined worksheet function demonstrates the return of a static string value. When GENERIC.xll is loaded, it registers this function so that it can be called from the worksheet.

LPXLOPER12 WINAPI Func1(LPXLOPER12 px);

Parameters

px (LPXLOPER)

This argument is ignored, and serves only to trigger Microsoft Office Excel to call the function.

Property Value/Return Value

LPXLOPER12: Always the string "Func1"

Example

See \SAMPLES\GENERIC\GENERIC.C for the source code for this function.

See Also

Concepts

Functions in the Generic DLL