编译并运行PortTalk示例 [英] Compiling and running PortTalk example

查看:87
本文介绍了编译并运行PortTalk示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译并运行在
上可用的"PortTalk"示例程序 互联网.我正在使用MS Visual C ++ Express2010.我熟悉较高级别的编程,但对C则完全是虚拟".需要逐步进行的方法
来编译并运行示例程序(控制台应用程序).
任何信息将不胜感激.
73
谢谢

I am trying to compile and run the "PortTalk" example program available on
the net. I''m using MS Visual C++ Express 2010. I am familiar with higher level programming but a complete "dummy" with C. Need step by step approach
to getting the example program (console application) compiled and running.
Any info would be much appreciated.
73
Thanks

推荐答案

答案以某种方式包含在您的问题中.
我不知道还有什么建议,但请坐下来学习C,只有我会建议– C和C ++同时进行,检查每个步骤中的所有差异(因为学习"C和更高版本的C ++"通常会留下烙印)陋习).实际上,DOS编程和Pascal是开始的良好背景(但可能不是Fortran).逐步使用控制台应用程序的想法也是一个好主意.

但是,我认为没有人会自愿为您编写整个循序渐进的学校.周围有很多文献.您可以自己进行.当您遇到棘手的问题时,CodeProject宁愿为您提供帮助(如果您描述了您正确观察到的内容并提供了有关该问题的足够信息).也许有人也推荐您阅读.

祝你好运.
—SA
The answer is contained in you question, in a way.

I don''t know what else to advice but sit down tight and learn C, only I would advice -- C and C++ at the same time, checking all the differences in each step (because learning "C and later C++" often imprints bad habits). Actually DOS programming and Pascal is a good background to start (but probably not Fortran). Your idea to go step-by-step with console application is also a good one.

However, I don''t think anyone would volunteer to start writing whole step-by-step school for you. There is plenty of literature around; and you can proceed by yourself. CodeProject would rather help you when you face a tricky problem (if you describe what you observe correctly and supply sufficient information on the problem). Maybe, someone also recommend you good reading.

Good luck.
—SA


如果您正在寻找互联网,则有成千上万的教程和代码示例.您可以从CodeProject上的一些文章开始.还可以查看 http://www.winprog.org/ [ http://www.relisoft. com/index.htm [ ^ ], http://www.catch22.net/ [
There are thousands of tutorials and code samples around the internet if you look for them. You could start with some of the articles here on CodeProject. Also take a look at http://www.winprog.org/[^], http://www.relisoft.com/index.htm[^], http://www.catch22.net/[^] for more help.


确定您很乐意花时间在答复上.也许您会乐于对我遇到的具体问题发表评论.
(1)在VC ++中,我设置了一个新的Win32控制台项目,并允许编译器预编译头"
(2)我已经下载了要运行的示例程序的源代码,并且包含了C代码.
(3)我包括上面的源代码所要求的另一个下载的源代码.
(4)我进行的构建显然没有错误,并且生成了一个使用项目名称的.exe文件.(Try.exe)
(5)执行.exe时,命令屏幕短暂闪烁,无输出.
好像只运行了预编译的标头.



以下是预编译的头文件.
也许这是一个愚蠢的问题,但是下面的代码在哪里是与其他代码段的连接.我有必须编辑文件的感觉吗?抱歉在屁股上这么疼,但我有点绝望了.
-------------------------------------------------- -----------------------
//try3.cpp:定义控制台应用程序的入口点.
//
#include"stdafx.h"

int _tmain(int argc,_TCHAR * argv [])
{
返回0;
}
-------------------------------------------------- ---------------------------
73
再次感谢.我不会再打扰你了.
OK You''ve been generous to spend time on the replies. Perhaps you would be so kind as to comment on the specific problem I have.
(1) In VC++ I set up a new Win32 console project and allow the compiler to "Precompile header"
(2) I have downloaded source code for the example program I am trying to run and I include the C code.
(3) I include another downloaded source required by source above.
(4) I do a build with apparently no errors and an .exe file is generated with the project name.(Try.exe)
(5) When the .exe is executed command screen flashes briefly with no output.
It''s as if only the precompiled header ran.



Below is the precompiled header file.
It''s a stupid question perhaps but where in the following code is the connection to the other code segments. I have the feeling I have to edit the file? Sorry to be such a pain in the ass but I''m getting a bit desperate.
-------------------------------------------------------------------------
// try3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
-----------------------------------------------------------------------------
73
Thanks again. I''ll bother you no more.


这篇关于编译并运行PortTalk示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆