久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Mac 上的 Pywin32(com 對象)

Pywin32 (com objects) on Mac(Mac 上的 Pywin32(com 對象))
本文介紹了Mac 上的 Pywin32(com 對象)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個簡短的問題,希望有人能幫助我.

I've got a quick question that I hope someone can help me with.

我正在創建/規劃一個需要跨平臺運行并使用 Windows com 庫的應用程序.過去,我使用 win32py 在 python 應用程序中運行這些 com 對象,我一直在做大量研究以在 Mac 上找到解決方案,但我沒有運氣.理想情況下,我想留在 Python 中,因為我已經有了使用這個庫的 Python 2.7 的工作代碼.但是,如果有其他語言的解決方案,我想聽聽.

I'm in the process of creating/planning an app that needs to run cross platform and use a com library from Windows. In the past I've used win32py to run these com objects in a python app, I've been doing a bunch of research finding a solution on Mac but I've had no luck. Ideally I'd like to stay in Python as I already have working code for Python 2.7 working with this library. If there is a solution in another language however, I would like to hear it.

我意識到這聽起來有點倒退,但長話短說,我必須讓這個 com 庫在 Mac 上運行.我將使用 iOS SDK 模擬器對一些 iOS 內容進行自動化測試.

I realize that this sounds almost sort of backwards, but to make a long story short I have to make this com library work on Mac. I'm going to be doing some automated testing of some iOS stuff with the iOS SDK simulator.

推薦答案

COM 僅適用于 Windows.COM 需要大量使用 Windows 注冊表和 WinAPI.我已經看到一些框架在其他操作系統上模擬或模擬 COM 行為(例如 Linux/Solaris 上的 MainWin),但我不知道有哪一種適用于 Mac.

COM is Windows only. COM requires extensive use of the Windows registry and WinAPI. I've seen some frameworks emulate or mock COM behavior on other operating systems (e.g. MainWin on Linux/Solaris), but I don't know of one for Mac.

win32py 模塊只是 WinAPI 調用的包裝器.因此,如果 WinAPI 不可用,win32py 將無法工作.

The win32py module is just a wrapper around WinAPI calls. So if the WinAPI isn't available, win32py won't work.

您需要的邏輯是否可以包裝服務?換句話說,您可以在 Windows 機器上托管服務并讓 Mac 應用程序調用該服務嗎?

Is the logic you need something you can wrap a service around? In other words, can you host a service on a Windows box and have the Mac application invoke the service?

這篇關于Mac 上的 Pywin32(com 對象)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to draw stars using Quartz Core?(如何使用 Quartz Core 繪制星星?)
Why does giving addArcWithCenter a startAngle of 0 degrees make it start at 90 degrees?(為什么給 addArcWithCenter 一個 0 度的 startAngle 使它從 90 度開始?)
Find the CGPoint on a UIView rectangle intersected by a straight line at a given angle from the center point(在與中心點成給定角度的直線相交的 UIView 矩形上找到 CGPoint)
Which is the best way to estimate measure of photographed things?(哪種方法是估計拍攝物體尺寸的最佳方法?)
How to convert an Int to a Character in Swift(如何在 Swift 中將 Int 轉換為字符)
How to create a hex color string UIColor initializer in Swift?(如何在 Swift 中創建十六進制顏色字符串 UIColor 初始化程序?)
主站蜘蛛池模板: 福利影院在线看 | 欧美日韩国产一区 | 在线观看视频一区 | 在线看免费 | 国产精品久久久久久吹潮 | 欧美日韩一区二区三区四区 | 午夜影院在线观看 | 亚洲综合免费 | 精品真实国产乱文在线 | 国产成人免费网站 | 国产分类视频 | 999精品视频| 欧美成人精品一区二区男人看 | 黄色免费三级 | 亚洲综合首页 | 亚洲综合视频 | 日韩国产一区二区三区 | 在线91| 365夜爽爽欧美性午夜免费视频 | 国产激情视频在线观看 | 美女啪啪国产 | 欧美国产日韩在线观看成人 | 欧美一级在线 | 久草网站 | 久久里面有精品 | 国内精品视频一区二区三区 | 欧美成人a∨高清免费观看 色999日韩 | 日韩一区二区精品 | 免费亚洲成人 | 亚洲高清在线视频 | 亚洲一区二区久久久 | 三极网站 | 欧美一区在线视频 | 亚洲精品一区二区在线观看 | 免费久草 | 亚洲激情综合 | 欧美精品一区三区 | 午夜精品久久久久99蜜 | 国产一级免费视频 | 一区二区在线不卡 | 国产成人精品久久二区二区 |