-
-
Notifications
You must be signed in to change notification settings - Fork 102
have 64-bit client check 32-bit registry hive #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like I alose a came across this issue - I get a |
I think the problem is tgat comtypes caches the translation of the TLB by
|
Actually my problem seems to be in the underlining windows call |
We have had successful interoperation between 32 bit python and 64 bit com
|
If the object requires a proxy the dll implementing the proxy could be a
|
As similar situation, there is two(32bit and 64bit) VBA dll in the same environment. For the above I think it would be difficult to use Due to no recent activity, I will close this issue. |
I think closing this issue is questionable. It shouldn't be too difficult to reproduce it for any pair of 32-bit and 64-bit app and Python. Clear error message should tell user of comtypes that it is a bitness problem if it is. If this issue doesn't duplicate another one, I would suggest to re-open it. |
OK. I will re-open this issue with the goal of "raise an error that is more user friendly than the If |
Suggestion (apologies if it's been done, I didn't find it). When a 64-bit client attempts to look up a class, interface, or object and can't find it, could we have it check the 32-bit registry hive automatically? Should we?
As long at the IDL stays away from pointers you can do out-of-process COM across bitnesses. But unless the server (or the user) takes special pains to register itself in both hives one won't be visible from the other.
Use the Visual Studio wizard to create a default MFC MDI exe project, check the "automation" box on the advanced tab, build in 32-bit mode. From a 64-bit python process you can't see the (vacuous but valid) document interface and class it exposes. Rebuild in 64-bit mode and you can talk to it successfully.
When you're developing the server side in both bitnesses everything about this is a pain. I end up running a stale "wrong bitness" build via the registry all the time. But for the important case of driving a (possibly legacy) 32-bit installed application from a 64-bit python making it just happen would be nice.
The text was updated successfully, but these errors were encountered: