You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Hello ,
I build the.net dlls in the target framework, which is.net-framework 2.0, and inside the.net dlls are some functions. I want to call this function in Golang. How can I call the.net function in Golang? Please help out here.
Carla Pfaff
unread,
May 22, 2024, 9:48:24 AM5/22/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
You can't call .NET functions directly from Go. Go programs and .NET have two completely different runtimes. You would need some form of inter-process communication (IPC).
Pavan Kumar A R
unread,
May 22, 2024, 12:04:19 PM5/22/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Carla Pfaff, golang-nuts
Okay, it's possible to call the C program to Golang. Because I also have the C platform dlls and the C platform dlls we using in the cross platform mono and in the mono internally call the.net dlls function , can I use the C program dlls in Golang?
Carla Pfaff
unread,
May 22, 2024, 4:41:13 PM5/22/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Cgo enables the creation of Go packages that call C code.
Pavan Kumar A R
unread,
May 23, 2024, 8:47:10 AM5/23/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Hello ,
I am try to call the c program in the golang , but i am getting the issue . please see the error message :
packagemain
go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing; try building at the command line. See https://golang.org/issue/38990.go list