AmigaLabs / AmigaLabs/apt-os4

how to call C++ apt methods in C gui

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
0
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Hi, the gui is done in "plain" C, so how do I "call" the methods from C++ apt (list, update, upgrade ...)

doing some searchs I found:
https://stackoverflow.com/questions/2744181/how-to-call-c-function-from-c
Tried "The C++ code of class AAA - Pure C++, I don't modify it:" (2nd answer) and seems to work, but don't know if I'm doing the hard way.
So if you can help somehow I'll be glad.

Here is my test: https://github.com/javierdlr/apt-os4/commit/26eb4b7694716f98e130e07b7118af943f6ec9b1

I found too this one, but haven't read it yet:
https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。