The error message is telling you.
LoadError: syntax: ccall argument types must be a tuple; try "(T,)" around c:\Users\<user>\Desktop\recycling_bin\module\julia\square.jl:7
Although your function only has one argument, the Julia interface requires the argument typess to be a tuple. So in this case you need a one-tuple
ccall(("function_name", "dll_to_link_to"),
Float64,
(argument_type,), argument)
instead of
ccall(("function_name", "dll_to_link_to"),
Float64,
(argument_type), argument)
(argument_type) is not a tuple, (argument_type,) is a tuple. EDIT: In case it’s not obvious, there’s an extra comma in the expression that is a tuple.
Sorry I can’t help with your other questions.