Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed May 27, 2024
1 parent c86326f commit c21ba6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions comtypes/test/test_dispifc_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
from comtypes.client import CreateObject, GetModule
from ctypes import byref, pointer

ComtypesTestLib_GUID = "07D2AEE5-1DF8-4D2C-953A-554ADFD25F99"
ProgID = "ComtypesTest.COM.Server"
ComtypesTestLib_GUID = "{07D2AEE5-1DF8-4D2C-953A-554ADFD25F99}"

try:
GetModule([f"{{{ComtypesTestLib_GUID}}}", 1, 0, 0])
GetModule([ComtypesTestLib_GUID, 1, 0, 0])
import comtypes.gen.ComtypesTestLib as ComtypesTestLib

IMPORT_FAILED = False
Expand All @@ -27,7 +26,9 @@ class Test(unittest.TestCase):
def _create_dispifc(self) -> "ComtypesTestLib.IComtypesTest":
# Explicitely ask for the dispinterface of the component.
return CreateObject(
ProgID, clsctx=CLSCTX_LOCAL_SERVER, interface=ComtypesTestLib.IComtypesTest
ComtypesTestLib.IPersist_GetClassID(),
clsctx=CLSCTX_LOCAL_SERVER,
interface=ComtypesTestLib.IComtypesTest,
)

def test_byref(self):
Expand Down
4 changes: 2 additions & 2 deletions source/OutProcSrv/SERVER.IDL
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ library ComtypesTestLib
// Component
[
uuid(06571915-2431-4CA3-9C01-53002B060DAB),
helpstring("Component Class")
helpstring("Component Class.")
]
coclass Component
{
[default] interface IDualComtypesTest ;
interface IDualComtypesTest ;
dispinterface IComtypesTest ;
} ;
} ;

0 comments on commit c21ba6f

Please sign in to comment.