本文介绍了PDCurses TUI C ++ Win32控制台应用程序 - 访问冲突读取位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载源,并能成功地包括curses.h里在我的项目,挂钩pre-编译的库和所有的好。

I have downloaded pdcurses source and was able to successfully include curses.h in my project, linked the pre-compiled library and all good.

尝试出库的几个小时后,我看到了tuidemo.c在演示文件夹,它编译成可执行和辉煌!正是我需要为我的项目。

After few hours of trying out the library, I saw the tuidemo.c in the demos folder, compiled it into an executable and brilliant! exactly what I needed for my project.

现在的问题是,它是一个C code和我工作的一个C在VS C ++ 2008。

Now the problem is that it's a C code, and I am working on a C++ project in VS c++ 2008.

我所需要的文件tui.c和tui.h
我怎么能包括我的C ++ code的C文件?我看到

For the header tui.h, I followed the exact same step of wrapping the code as described here.

然后在我的项目,我只是包括头部没有任何的externC块

then in my project i just included the header without any extern "C" block

#include "tui.h"

编译和它的工作!

Compiled and it worked!

这篇关于PDCurses TUI C ++ Win32控制台应用程序 - 访问冲突读取位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 15:04