DenoDDeno
Powered by
神神
Deno•3y ago•
27 replies
神

What should I specify to pass a "char *" in Deno.dlopen?

For example, this is how you would use it in Python:
import ctypes

lib = ctypes.cdll.LoadLibrary('example.dll')
check = lib.check
check.argtypes = [ctypes.c_char_p]
check.restype = ctypes.c_char_p
import ctypes

lib = ctypes.cdll.LoadLibrary('example.dll')
check = lib.check
check.argtypes = [ctypes.c_char_p]
check.restype = ctypes.c_char_p
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno.dlopen does not support flags
TheoryInMotionTTheoryInMotion / help
14mo ago
FFI: How to pass a pointer to a char pointer?
LeokumaLLeokuma / help
3y ago
how to specify lint rules in deno.json?
subbedSsubbed / help
2y ago
Publish binaries to JSR and load them using Deno.dlopen()
MqxMMqx / help
4mo ago