使用C ++,C#和DLL制作软件 [英] Making a Software using C++, C# and DLLs

查看:159
本文介绍了使用C ++,C#和DLL制作软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想为我的大学同学制作数据库软件.
我开始在Visual Studio C#2008中创建它,但是我知道所有用c#创建的应用程序都需要.net,而我的用户却缺少.net,因此他们不会为我的着色软件安装它.

我的一些用户还使用了Win 98,而.net根本不支持.98

现在我想使用DLL使C ++的应用程序具有良好的用户界面.该程序基于数据库.

我想制作一个类似于Adobe PDF Reader的UI,用户可以在其中搜索问题文件及其在数据库和其他小功能中的解决方案.

我用C#创建了该程序,可以将其转换为MFC吗?

最大的问题是使该程序本机化,体积小并且与Windows XP兼容.

是的,我知道c ++,但是有一个极限.

解决方案

写道:​​

现在我想使用DLL在C ++中制作该应用程序,以使其外观美观.该程序基于数据库.

请从哪里开始帮助我..



好吧,一开始,dll和漂亮的用户界面"是完全不相关的.地球上没有理由为什么您可能需要使用dll.另外,如果您使用MFC,则要避免分发外部依赖项,则需要将MFC与应用程序静态链接.您甚至完全了解C ++吗?这比C#难得多,这就是真正发明C#的原因,这样可以简化编写程序,使更多的人可以做到这一点,包括那些不希望得到高薪的人.

请编辑您的帖子以回答我的问题,这样它们就成为您问题的一部分,而不是答案".


如何以聪明的方式提出问题 [指南 [ 解决方案

Now i want to make that app in C++ using DLLs to make a good looking user interface.The program is database based.

Please help me from where to start..



Well, for a start, dlls and ''good looking user interface'' are totally unrelated. There is no reason on earth why you may need to use dlls. Also, if you use MFC, you will need to link MFC statically with your app if you want to avoid distributing external dependencies. Do you even know C++ at all ? It''s a lot harder than C#, that''s why C# was invented really, so that writing programs would be made easier, so more people could do it, including people who would not expect to be paid much.

Pls edit your post to answer my questions, so they become part of your question, and not an ''answer''.


Now i want to make that app in C++ using DLLs to make a good looking user interface



How can DLLs improve look and feel of the application?

You can use cross-platform libraries like wxWidgets or QT to create the UI. Use SqlLite for database. Download these programs and create static libraries out of it. When you build your application, link it against these static libraries. After that everything will be embedded in your executable and you can deploy it alone.

Of course, the target system requires VC++ runtime files and I guess that is part of operating system.


What software and what exactly is your problem? You might want to read How to ask questions the smart way[^] and the general guidelines[^] for asking a question here (specifically point #2).


这篇关于使用C ++,C#和DLL制作软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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