自动运行应用 [英] Autorun Application

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

问题描述

你好,

因此,我现在已经在Google上进行了大量浏览,而且似乎找不到关于如何创建适当的自动运行应用程序的文章.我的意思是,这个应用程序不直接依赖于任何框架(例如.NET),并且可以在几乎所有Windows系统上运行.

有了这个,我想创建一个非常小的应用程序,用户可以选择在安装应用程序还是在应用程序内部运行项目之间进行选择. (也存储在CD中).

因此,我要提出更具体的问题:

是否有人知道任何文章,技巧或其他对我创建自己的AutoRun应用程序有帮助的内容.

PS:所以不是默认的autorun.inf是真正的(.exe)应用程序!

Hello,

So I''ve been browsing on Google quite alot now and I can''t seem to find any articles on how to create a proper autorun application. With this I mean an application that is not directly depending on any framework (.NET for example) and can run on pretty much any Windows system.

With this I want to create a very small application where a User gets the possibility to choose between Installing the Application or Running a project inside the application. (which is also stored on the CD).

So to set out my question more specific:

Does anybody know any articles, tips or anything else that might help me out about creating your own AutoRun applications.

PS: So not the default autorun.inf a real (.exe) application!

推荐答案

如果您不希望它依赖于任何框架,为什么要这么做呢?标签中是否包含.NET和C#?

您需要做的是编写一个可以编译为本地 Windows可执行文件的程序.因此,如果您搜索本机Windows可执行文件的编译器,您应该会得到一个完整的列表.

从该列表中选择您已经知道或想要学习的语言,然后对所选的教程进行进一步搜索.
If you do not want it to be dependant on any framework, why did you include .NET and C# in the tags?

What you need to do is write a program that can be compiled to a native Windows executable. So if you search for compilers for native windows executables you should get quite a list.

Select the language that you either already know or fancy learning from that list and do further searches for tutorials on the one you have chosen.


您可以使用 Visual C ++ 创建一个 native 应用程序;然后要使可执行文件独立于任何运行时,请使用项目属性进行以下设置:


  • 静态链接到 MFC (如果正在使用)
  • 使用 C/C ++运行时的静态版本,通过设置编译器开关/MT (而不是默认的/MTd )
You can use Visual C++ to create a native application; then to make the executable independant from any runtime, use the project properties to set the following:


  • link statically to MFC (if you are using it)
  • use the static version of the C/C++ runtime, by setting up the compiler switch /MT (instead of /MTd which is the default)


这篇关于自动运行应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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