1

私は Web 開発者であり、未亡人フォームの開発経験はほとんどありません。始める前に、このトピックに関する本当に良い情報を見つけたいと思っています。

CD でユーザーに配布される Windows フォーム アプリケーションを作成する予定です。CD はアプリケーションをインストールし、データベースをクライアント マシンにインストールすると仮定します。クライアント マシンが常にインターネットにアクセスできるとは限りません。私のオプションは何ですか?

どのデータベースを使用できますか? SQL Server Express を使用できますか?

Windowsフォームのルートに行くのは正しいですか?

このタイプのソフトウェア開発に関する本当に良い情報を誰か教えてもらえますか?

前もって感謝します。

4

2 に答える 2

1

Windows開発の経験がほとんどない場合は、WinFormsをスキップして、WPFに直接移行するか、代わりにブラウザー外のSilverlightに移行することを強くお勧めします。WinFormsは、これら2つの新しいテクノロジに急速に置き換えられており、現時点でWinFormsの代わりにそれらのテクノロジの学習を開始しない理由はありません。

SQL Server Expressを使用できますが、各ユーザーが独自のデータベースを使用する場合は、アプリケーションの展開時に問題が発生する可能性があります。代わりにSQLCompactEditionを検討することをお勧めします。

詳細については、この記事を参照してください。

于 2010-02-25T15:29:30.557 に答える
0

I did this a few years ago (built a desktop Windows Forms app, having only previously developed web applications). I found it was easier than I'd expected, because my knowledge of C# and the .NET Framework BCL all carried over seamlessly.

There were a few tricky exceptions; one which I bumped into was the fact you will likely need to delve into multithreading, in order for it not to appear to your users as though your app has hung—although this got a lot easier with the advent of the BackgroundWorker class.

You can, as David says, use SQL Compact Edition as a database, or as an alternative, SQLite and the System.Data.SQLite ADO.NET Provider. I've used this with a few apps now (web and desktop) and it's very simple, solid and easily distributable.

I'd also agree with David that you should aim for WPF rather than focusing on WinForms. WPF will also make some sense to you as a web dev, as it's based on markup.

Deployment wise: if you have Visual Studio Standard edition or above, you can quite simply create Setup Projects which will take care of creating the installer, copying the database to the correct place on the user's machine etc.

于 2010-02-25T15:49:29.533 に答える