Comments (1)
Hi @yyokyfo , thanks for your inspired question. Potto is only a minimal subset implementation of MS COM concept and it exposed the same IUnknown interface of the object, theoretically speaking you can consume the potto object in MS COM runtime as long as you can get the object instance created by potto. If you would like to try you can make some modification of Potto as follow instructions:
-
compile Potto with POTTO_USE_GUID enabled, because MS COM uses real GUID but potto uses string by default:
potto/include/potto/pottouuid.hpp
Line 19 in 8f2b1d3
-
change the UUID value of Potto::IUnknown({10000000-0000-0000-0000-000000000000}), you need to change the UUID to the value which exactly the same with MS IUnknown({00000000-0000-0000-C000-000000000046}) :
potto/include/potto/pottointerface.hpp
Line 16 in 8f2b1d3
-
change the UUID value of Potto::IClassFactory({10000000-0000-0000-0000-100000000001}) to MS IClassFactory({0000001B-0000-0000-C000-000000000046}):
potto/include/potto/pottointerface.hpp
Line 48 in 8f2b1d3
-
then you should initialize and create potto object by Potto methods:
initialize potto runtime
Line 47 in 8f2b1d3
ceate instance and get interface
Line 65 in 8f2b1d3
or
Line 83 in 8f2b1d3
then you can pass the interface to MS COM runtime methods.
limitatios of Potto
- No complex apartment models
- No Dispatch supports
- No Windows registry available
Good luck~
from potto.
Related Issues (15)
- Add documentation HOT 1
- https://tishion.github.io/ Site not found HOT 2
- What's the point of potto? HOT 1
- Incorrectly force /utf-8 on Windows HOT 5
- Support GCC compiler on Windows
- Support Clang (not Clang-Cl) compiler on Windows HOT 1
- Use C++ standard library's <filesystem> when possible HOT 2
- Potto vs CppMicroServices? HOT 1
- More advanced examples HOT 2
- Is IDL supported by Potto? HOT 1
- Is it possible to use `midl`/`widl` with Potto? HOT 1
- MS COM Apartments
- Potto vs XPCOM
- Potto vs CORBA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from potto.