Calling foreign functions from Python? ctypes?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Hodgson

    #16
    Re: Calling foreign functions from Python? ctypes?

    Paul Watson:
    [color=blue]
    > I cannot find any way to get to GetVersionInfo in VBScript (cscript).[/color]

    Set objFSO = CreateObject("S cripting.FileSy stemObject")
    Wscript.Echo objFSO.GetFileV ersion("c:\bin\ SciLexer.dll")

    Neil

    Comment

    • Paul Watson

      #17
      Re: Calling foreign functions from Python? ctypes?

      Neil Hodgson wrote:[color=blue]
      > Paul Watson:
      >[color=green]
      >> I cannot find any way to get to GetVersionInfo in VBScript (cscript).[/color]
      >
      >
      > Set objFSO = CreateObject("S cripting.FileSy stemObject")
      > Wscript.Echo objFSO.GetFileV ersion("c:\bin\ SciLexer.dll")[/color]

      Many thanks. Just what I needed. (Short of ctypes.) Thank you for
      tolerating a VBScript question here.

      Comment

      • Ziga Seilnacht

        #18
        Re: Calling foreign functions from Python? ctypes?


        Paul Watson wrote:
        ..
        ..
        ..[color=blue]
        > I need to call GetVersionInfo( ) and handle VERSIONINFO information. I
        > thought that distutils might have something, but I do not see it yet.
        > Any suggestions?[/color]

        This information is provided with sys.getwindowsv ersion().

        Comment

        • Ziga Seilnacht

          #19
          Re: Calling foreign functions from Python? ctypes?

          Sorry, the previous post is wrong. I mixed the function names.

          Comment

          Working...