我可以将Python syntex应用于我的texteditor吗? [英] Can I apply Python syntex to my texteditor?
本文介绍了我可以将Python syntex应用于我的texteditor吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的程序中的文本编辑器(c ++,mfc)使用python syntex。
用户输入python syntex的一些文本,我的程序执行python并得到结果。
是否有图书馆帮助输入python缩进?
我试过的:
我的程序是获取用户文本并通过sqlite dll进行翻译。
我希望将其更改为sqlite to python (pysqlite)。
解决方案
不清楚你的期望。
你想将Python嵌入你的C ++应用程序然后我会建议你来看看提升Python
Boost.Python教程 - 1.61.0 [ ^ ]
或者如果你想添加Sq-精简设施到你的C ++专业版然后我建议你静态链接SQLite库并将sqlite3 dll添加到你的项目文件夹。
随意问一下怀疑
My text-editorbox in my program(c++,mfc) use python syntex.
User input some text of python syntex, and my program excute python and get result.
Is there library to help inputting python Indentation?
What I have tried:
My program is get user text and translate it by sqlite dll.
and i want change it sqlite to python(pysqlite).
解决方案
Not clear what you are expecting.
Do you want to embed Python to your C++ application then I would suggest you to have a look at boost Python
Boost.Python Tutorial - 1.61.0[^]
Or if you want to add Sq-lite facility to your C++ project then I would suggest you to link the SQLite library statically and add the sqlite3 dll to your project folder.
Feel free to ask doubts
这篇关于我可以将Python syntex应用于我的texteditor吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文