<div dir="ltr"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Hello all, </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I have some major problems with something i am not good at :( </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I have come to a situation where i have to add a COM server in my python code the get access to it from Labview Teststand. </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Firs i have tried with pythoncom/wincom and got it almost working, it registered and i could look it up in the windows COM data list. </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">But this combination do not register coclasses: </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Coclasses are not registered (that is, RegisterTypeLib does not write any values to the CLSID key of the coclass). </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><a href="http://docs.activestate.com/activepython/2.6/pywin32/pythoncom__RegisterTypeLib_meth.html" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px">http://docs.activestate.com/activepython/2.6/pywin32/pythoncom__RegisterTypeLib_meth.html</a><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"> </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">IDL File: </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><a href="http://pastebin.com/WGCMmzHv" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px">http://pastebin.com/WGCMmzHv</a><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"> </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">And here the code: </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><a href="http://pastebin.com/44t45tPj" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px">http://pastebin.com/44t45tPj</a><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"> </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">my reference: </span><a href="https://chromium.googlesource.com/chromium/deps/python_26/+/cd4a3da8f0f0806bec98a40d80484f2362908250/Lib/site-packages/win32com/test/pippo_server.py" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px">https://chromium.googlesource.com/chromium/deps/python_26/+/cd4a3da8f0f0806bec98a40d80484f2362908250/Lib/site-packages/win32com/test/pippo_server.py</a><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"> </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">------------------------------</span><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">------------------------------</span><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">--------- </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Then i started by using COMTYPES, but this do not at all register into the COM catalog on windows - both solutions i can connect to from another python. </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">here is my code - IDL is the same. </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><a href="http://pastebin.com/ke5V5ZbY" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px">http://pastebin.com/ke5V5ZbY</a><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"> </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">How do i continue so i can use this server from Teststand or any other windows program?? </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I really hope some can give me an example or help me in what is wrong - i think it is quite close... </span><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Thank you </span><br></div>