ForeignCallback

ForeignCallback[]

represents a foreign callback that can be called from external libraries.

Details

Examples

open allclose all

Basic Examples  (1)

Load a foreign function that takes a function pointer:

Create a foreign callback function:

Call the foreign function and pass the foreign callback:

02
0
12
1
22
4
32
9
42
16
52
25
62
36
72
49
82
64
92
81

Read the output:

Scope  (1)

Information  (1)

Create a foreign callback:

Get Information about the callback:

Wolfram Research (2023), ForeignCallback, Wolfram Language function, https://reference.wolfram.com/language/ref/ForeignCallback.html.

Text

Wolfram Research (2023), ForeignCallback, Wolfram Language function, https://reference.wolfram.com/language/ref/ForeignCallback.html.

CMS

Wolfram Language. 2023. "ForeignCallback." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ForeignCallback.html.

APA

Wolfram Language. (2023). ForeignCallback. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ForeignCallback.html

BibTeX

@misc{reference.wolfram_2024_foreigncallback, author="Wolfram Research", title="{ForeignCallback}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/ForeignCallback.html}", note=[Accessed: 10-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_foreigncallback, organization={Wolfram Research}, title={ForeignCallback}, year={2023}, url={https://reference.wolfram.com/language/ref/ForeignCallback.html}, note=[Accessed: 10-November-2024 ]}