我的 COM 对象准备好 PHP 了吗?

Is my COM object ready for PHP?

我已经根据 and have registered in system using regsvr32.exe. But I'm not sure it is ready for scripting language like PHP. I'm trying to find my object using Power Shel script taken from script location

中的描述使用 ATL 创建了简单的 COM 对象
function Get-ComObject {

    param(
        [Parameter(Mandatory=$true,
        ParameterSetName='FilterByName')]
        [string]$Filter,

        [Parameter(Mandatory=$true,
        ParameterSetName='ListAllComObjects')]
        [switch]$ListAll
    )

    $ListofObjects = Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object {
        $_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")
    } | Select-Object -ExpandProperty PSChildName

    if ($Filter) {
        $ListofObjects | Where-Object {$_ -like $Filter}
    } else {
        $ListofObjects
    }
}

而且我找不到我的 ATLProject1.SomeObject class。我的项目缺少什么?

此脚本未考虑格式为 Application.Object.Version 的 AppID。

-match '^\w+\.\w+$' 替换为 -match '^\w+\.\w+(?:\.\d+)?$'