我正在查看ctypes的一些功能,我遇到了这个问题:
Add-Type -outputtype consoleapplication -outputassembly helloworld.exe 'public class helloworld{public static void Main(){System.Console.WriteLine("hello world");}}'
我以这种方式从powershell创建了hello.exe
WindowsError: exception: access violation writing 0x70098553
运行python我收到此错误
Public Function Main() As Integer
Dim rtnValue as Int16 = 0
if Not Process Then rtnValue = 1
Return rtnValue
End Function