Using the COM server with mingw? #24
Replies: 8 comments 4 replies
-
|
Ok, when asking the right questions instead of trying to provide the information the AI is asking for, you may find out out mingw has a tool named widl for exactly this, it converts .idl files to header files. widl -h -o supercan_com_interface.h supercan_srv.idl The result was the attached header file: Now I just have to wait for Claude to talk to me again so that it might finish the job I was asking for using the new header file. :-) |
Beta Was this translation helpful? Give feedback.
-
|
The Visual studio build process generates the necessary files from the .idl file automatically and builds them. I don’t think the COM server code supports building with another toolchain at this time.For an integration example that should work without Visual Studio, the plugin for the Windows Python CAN bus tools is a good place to start. AFAIK it builds with the gnu toolchain.On 28. Feb 2026, at 14:02, RudolphRiedel ***@***.***> wrote:
Ok, when asking the right questions instead of trying to provide the information the AI is asking for, you may find out out mingw has a tool named widl for exactly this, it converts .idl files to header files.
widl -h -o supercan_com_interface.h supercan_srv.idl
The result was the attached header file:
supercan_com_interface.zip
Now I just have to wait for Claude to talk to me again so that it might finish the job I was asking for using the new header file. :-)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Wow, congrats!On 28. Feb 2026, at 20:30, RudolphRiedel ***@***.***> wrote:
Har! :-)
grafik.png (view on web)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Did you succeed in building the COM server with MinGW?On 28. Feb 2026, at 20:30, RudolphRiedel ***@***.***> wrote:
Har! :-)
grafik.png (view on web)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Ok, that does not work as expected: And the reason probably is that the API description I am using for the COM server is probably broken. |
Beta Was this translation helpful? Give feedback.
-
|
The channel index is available on `struct SuperCANDeviceData2` (see
Windows/python/supercan_srv.tlh.h). This struct is an out parameter of
`GetDeviceData2` call on the `ISuperCANDevice3` COM interface.
The Python code contains code that uses the channel index. That may be
a good place to get more information.
…On Mon, 2026-03-02 at 08:55 -0800, RudolphRiedel wrote:
Ok, that does not work as expected:
grafik.png (view on web)
And the reason probably is that the API description I am using for
the COM server is probably broken.
What is the correct way to receive the channel number?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID:
***@***.***
>
|
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I found that, only the .h file I converted from the .idl does not allow me to use it. |
Beta Was this translation helpful? Give feedback.
-
|
Here is a cleaned header file: Claude was so kind to convert the .idl converted file from above into something more useable with plain - before stopping to take my questions again. Making progress regardless, as this is easier when there is something to latch on instead of starting from scratch. :-)
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the COM server with mingw.
The Windows/app is a Visual Studio project, correct? So the necessary header file(s) are automatically generated, or did I just not find them?
What appears to be missing is a header file for the COM server API, from CLSID over the structure definitions to the methods.
Beta Was this translation helpful? Give feedback.
All reactions