Ctypes:访问违规写作

时间:2016-08-15 07:52:47

标签: python ctypes

我正在查看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

0 个答案:

没有答案