独立的应用程序 [英] self-contained app

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

问题描述

大家好,


我正在为一个小型应用程序进行原型设计,该应用程序需要完全从USB

拇指驱动器运行。它必须独立于机器上的软件基础

并且必须是独立的。我可能只会处理基于NT的

系统,更具体地说是Windows 2000及更高版本。我不相信我可以依靠正在安装的.NET框架,或者C ++运行时库

可用。我也无法在系统上安装任何东西。


我写这个应用程序最有效的方法是什么?我坚持使用

非托管C ++吗?我可以使用MFC吗?或者VB 6.0会不会这样做?是否有一个

转换器,允许我将托管应用程序转换为

自包含的非托管应用程序?


谢谢提前!


解决方案

11月15日,10:17 * pm,番茄酱 < ketc ... @ ketchup.comwrote:


大家好,


我正在为一个需要的小应用程序做原型设计完全从USB

拇指驱动器运行。 *它必须独立于机器上的软件基础

并且必须是独立的。 *我可能只会处理基于NT的

系统,更具体地说是Windows 2000及更高版本。 *我不相信我可以依靠正在安装的.NET框架,或者C ++运行时库

可用。 *我也无法在系统上安装任何东西。


我编写此应用程序的最有效方法是什么? *我坚持使用

非托管C ++吗? *我可以使用MFC吗? *或者VB 6.0会不会这样做? *我有一个

转换器,它允许我将托管应用程序转换为

自包含非托管应用程序?


谢谢提前!



如果你坚持使用VB6并且不使用任何第三方工具你的应用程序

应该运行得很好。


VB运行时作为操作系统安装的一部分包含在内(至少对于Win

2k和XP不确定NT)。


除了远离第三方工具(即OCX和

ActiveX dll)之外,您还希望不使用任何VB插件工具

作为版本这些可用的操作系统版本和更新不同

已应用。 IOW不要使用任何需要你添加引用的工具

或组件。只需使用默认的VB

工具箱中提供的工具。


希望这会有所帮助,

Steve


"番茄酱" < ke ***** @ ketchup.com写信息

新闻:OP ************** @ TK2MSFTNGP02.phx.gbl ...


大家好,

我正在为一个需要完全从USB运行的小型应用程序进行原型设计

拇指驱动器。它必须独立于机器上的软件基础

并且必须是独立的。我可能只会处理基于NT的

系统,更具体地说是Windows 2000及更高版本。我不相信我可以依靠正在安装的.NET框架,或者C ++运行时库

可用。我也无法在系统上安装任何东西。


我写这个应用程序最有效的方法是什么?我坚持使用

非托管C ++吗?我可以使用MFC吗?或者VB 6.0会不会这样做?是否有一个转换器允许我将托管应用程序转换为

自包含非托管应用程序?



没有服务包的Windows 2000附带VB6 + SP3运行时。

没有服务包的Windows XP附带VB6 + SP6运行时。


应用更高版本的Service Pack可以更新运行时。但是,如果您没有使用任何

ActiveX DLL或OCX,那么只需运行EXE就可以运行VB6应用程序。




非托管C ++可以创建具有最小依赖性的可执行文件,而不依赖于dotnet库上的
。你可以使用带有静态链接的MFC,这使得

编译器包含EXE中的MFC库,所以你只需要核心操作系统

DLL',比如Kernel32 .dll,User32.dll等



" expvb" < no **** @ cox.netwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx.gbl ...


没有服务包的Windows 2000附带VB6 + SP3运行时。

没有服务包的Windows XP附带VB6 + SP6运行时。



我不确定如果你的EXE是用VB6 + SP5编译器编译会发生什么,

但后来试图在系统上运行它使用SP3运行时。测试以确保

没有影响您的应用程序的问题。


Hello everyone,

I am prototyping a small application that needs run entirely from a USB
thumb-drive. It has to be independent of the software base on the machine
and has to be self-contained. I will likely only deal with NT-based
systems, more specifically Windows 2000 and later. I don''t believe that I
can count on the .NET framework being installed, or C++ runtime library
being available. I also cannot install anything on the system.

What''s my most effective approach to writing this app? Do I stick with
unmanaged C++? Can I use MFC? Or would VB 6.0 do the trick? Is there a
converter that would allow me to convert a managed application to a
self-contained unmanaged app?

Thanks in advance!


解决方案

On Nov 15, 10:17*pm, "Ketchup" <ketc...@ketchup.comwrote:

Hello everyone,

I am prototyping a small application that needs run entirely from a USB
thumb-drive. *It has to be independent of the software base on the machine
and has to be self-contained. *I will likely only deal with NT-based
systems, more specifically Windows 2000 and later. *I don''t believe that I
can count on the .NET framework being installed, or C++ runtime library
being available. *I also cannot install anything on the system.

What''s my most effective approach to writing this app? * Do I stick with
unmanaged C++? * Can I use MFC? * Or would VB 6.0 do the trick? *Isthere a
converter that would allow me to convert a managed application to a
self-contained unmanaged app?

Thanks in advance!

If you stick with VB6 and do not use any third party tools your app
should run just fine.

The VB runtime is included as part of the OS install (at least for Win
2k and XP not sure about NT).

In addition to staying away from third party tools (i.e. OCXs and
ActiveX dlls) you will also want to not use any of the VB addon tools
as the versions of these available vary with OS version and updates
applied. IOW do not use any tools that require you to add references
or components. Just use the tools available from the default VB
toolbox.

Hope this helps,
Steve


"Ketchup" <ke*****@ketchup.comwrote in message
news:OP**************@TK2MSFTNGP02.phx.gbl...

Hello everyone,

I am prototyping a small application that needs run entirely from a USB
thumb-drive. It has to be independent of the software base on the machine
and has to be self-contained. I will likely only deal with NT-based
systems, more specifically Windows 2000 and later. I don''t believe that I
can count on the .NET framework being installed, or C++ runtime library
being available. I also cannot install anything on the system.

What''s my most effective approach to writing this app? Do I stick with
unmanaged C++? Can I use MFC? Or would VB 6.0 do the trick? Is there
a converter that would allow me to convert a managed application to a
self-contained unmanaged app?

Windows 2000 with no service packs came with VB6+SP3 runtime.
Windows XP with no service packs came with VB6+SP6 runtime.

Applying later service packs can update the runtime. But the above means
that you can run VB6 apps just by running the EXE if you didn''t use any
ActiveX DLL or OCX.

Unmanaged C++ can create executables with minimum dependency, not depending
on dotnet library. You can use MFC with static linking, which makes the
compiler include the MFC library inside the EXE, so you only need core OS
DLL''s, such as Kernel32.dll, User32.dll, etc.



"expvb" <no****@cox.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

Windows 2000 with no service packs came with VB6+SP3 runtime.
Windows XP with no service packs came with VB6+SP6 runtime.

I am not sure what happens if your EXE was compiled with VB6+SP5 compiler,
but later tried to run it on a system with SP3 runtime. Test to make sure
that there are no issues affecting your application.


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

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