.NET Forum / Windows Forms / WinForm General / January 2008
are dotnet windowsforms best choice for my scenario?
|
|
Thread rating:  |
rockdale - 02 Jan 2008 13:37 GMT Hi, all:
I hav been doing C#.net coding for quite a long time, but mostly on asp.net. now I need to program an application that will save on flash driver and when the user plug in flash driver, my application will auto-run. my application contains user interfaces that user can read / edit/save their data into flash driver. First, I am think of using .Net windows form, but this requires user download .net 2.0 framework runtime to run the application, isn't it? Is there a way to compile those DLLs that my application needed together and avoid asking user to install .Net 2.0 framework runtime. If installation of .Net 2.0 framework runtime is a must, are there any other language a better choice , like VB6.0, C++6.0?
thanks in advance -rockdale
Robbe Morris - [MVP] C# - 02 Jan 2008 20:19 GMT VB 6 requires its own runtime and I "believe" C++ does as well.
You are going to have a tough time getting away from a runtime installation.
You can't just wire up a self extracting zip file and installs .NET 2.0 if it isn't there?
 Signature Robbe Morris [Microsoft MVP - Visual C#] AdvancedXL Server, Designer, and Data Analyzer Convert cell ranges in Excel to rule driven web surveys http://www.equalssolved.com/default.aspx
> Hi, all: > [quoted text clipped - 12 lines] > thanks in advance > -rockdale Bob Powell [MVP] - 03 Jan 2008 16:09 GMT The VB6 runtime is proportionately very small and C++ certainly doesn't need a runtime unless its managed c++.
Other than that I have no clue as to how the OP might accomplish their task.
 Signature -- Bob Powell [MVP] Visual C#, System.Drawing
Ramuseco Limited .NET consulting http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article.
> VB 6 requires its own runtime and I "believe" C++ does as well. > [quoted text clipped - 20 lines] >> thanks in advance >> -rockdale rockdale - 03 Jan 2008 20:28 GMT most of my end users are not computer literate and may not access to internet, they may not be able to download CLR for .net or JRE for Java or unzip anything. what they want is auto run the appl as soon as they plug in the flash drive. I did a little bit research, I can use C or C++, I even can use MFC for my user interface as long as I set those dlls to static link. It will result a big execuble file since those functions will be contained in this exe.
I would like to know more about how VB6 can be self contained since my appl will use forms, dropdown lists... etc
On Jan 3, 11:09 am, "Bob Powell [MVP]" <b...@spamkillerbobpowell.net> wrote:
> The VB6 runtime is proportionately very small and C++ certainly doesn't need > a runtime unless its managed c++. [quoted text clipped - 47 lines] > > - Show quoted text - CMoya - 03 Jan 2008 23:57 GMT Although the VB6 runtime is pretty small (1mb), it also requires "installing" (which requires admin privileges on the machine). It cannot be statically compiled into the exe. Your only choice is C++. Even with MFC, what does it add to the exe? 500K if I remember right. That's not all that bad.
If you want to go way way way back into time... you could get your hands on VB3, which required just one 300K dll that could reside in the same folder as the exe and work just fine without being installed. ;-) VB3 apps run just fine in Windows today.
P.S. I do sure wish that MS had found a way to allow you to statically (and intelligently, incrementally) compile the framework into standalone exe's. It would have sparked a lot of good shareware development similar to what happened in the mid to late 90's with MFC and VB3 programs. As it stands now, .NET apps are only really viable in a corporate environment.... nothing else.
most of my end users are not computer literate and may not access to internet, they may not be able to download CLR for .net or JRE for Java or unzip anything. what they want is auto run the appl as soon as they plug in the flash drive. I did a little bit research, I can use C or C++, I even can use MFC for my user interface as long as I set those dlls to static link. It will result a big execuble file since those functions will be contained in this exe.
I would like to know more about how VB6 can be self contained since my appl will use forms, dropdown lists... etc
On Jan 3, 11:09 am, "Bob Powell [MVP]" <b...@spamkillerbobpowell.net> wrote:
> The VB6 runtime is proportionately very small and C++ certainly doesn't > need [quoted text clipped - 54 lines] > > - Show quoted text - Scudder Consulting - 04 Jan 2008 01:04 GMT rockdale <rockdale.green@gmail.com> wrote in news:f1524bd6-4a4c-46f2-b583- 371bb493fd11@l32g2000hse.googlegroups.com:
> auto-run. my application contains user interfaces that user can read / > edit/save their data into flash driver. First, I am think of I think you're turning a very simple job into a project. You can do everything you need using jscript or vbscript.
rockdale - 04 Jan 2008 14:00 GMT I did not know that you can use VBScript or JScript to code a windows form and run without Internet explorer? Is that true?
On Jan 3, 8:04 pm, Scudder Consulting <r...@scudderREMOVECAPSconsulting.com> wrote:
> rockdale <rockdale.gr...@gmail.com> wrote in news:f1524bd6-4a4c-46f2-b583- > 371bb493f...@l32g2000hse.googlegroups.com: [quoted text clipped - 4 lines] > I think you're turning a very simple job into a project. You can do > everything you need using jscript or vbscript. Robbe Morris - [MVP] C# - 04 Jan 2008 18:24 GMT No. Plus, your original post talked about writing files back to the flash drive. I suspect using a browser based approach as described above with JavaScript is going to lead to support issues regarding browser security settings.
By the way, you can include .NET Framework as part of your .msi. The end user wouldn't need to have internet access.
It won't be long and huge percentage of your user base will already have .NET 2.0 installed from Windows Updates.
 Signature Robbe Morris [Microsoft MVP - Visual C#] AdvancedXL Server, Designer, and Data Analyzer Convert cell ranges in Excel to rule driven web surveys http://www.equalssolved.com/default.aspx
I did not know that you can use VBScript or JScript to code a windows form and run without Internet explorer? Is that true?
On Jan 3, 8:04 pm, Scudder Consulting <r...@scudderREMOVECAPSconsulting.com> wrote:
> rockdale <rockdale.gr...@gmail.com> wrote in news:f1524bd6-4a4c-46f2-b583- > 371bb493f...@l32g2000hse.googlegroups.com: [quoted text clipped - 4 lines] > I think you're turning a very simple job into a project. You can do > everything you need using jscript or vbscript. CMoya - 04 Jan 2008 19:03 GMT In my personal experience, I find that almost NOBODY has the Framework installed. Every machine I encounter from the workstations at my job, to ALL my friend's computers. Not 1.0, not 2.0, none. Unless I'm mistaken the framework is an "optional" component and isn't installed automatically. No layman user will probably ever install it.
> No. Plus, your original post talked about writing files back to the > flash drive. I suspect using a browser based approach as described [quoted text clipped - 21 lines] >> I think you're turning a very simple job into a project. You can do >> everything you need using jscript or vbscript. RobinS - 05 Jan 2008 04:40 GMT You are right, .Net 2.0 is not included in WinXP or the Windows Updates as a requirement; they are strictly optional. If the user is running Vista, it's not a problem.
My company uses ClickOnce and we are pushing .Net 2.0 Framework as a prerequisite in our deployemnt. Our experience has been different from yours -- most people have .Net 2.0 or higher installed, usually because they have installed some other application that requires it. We have a lot of corporate users, but also a lot of "regular joes".
And for the ones who don't have .Net installed, installing it has been occasionally problematic, but for the most part not. It does not require a reboot *usually*. You could deploy it on a flash drive; I think the redistributable is only 20MB.
And look at the bright side -- you only have to install .Net 2.0 once.
Good luck.
RobinS. GoldMail, Inc. ---------------------------------
> In my personal experience, I find that almost NOBODY has the Framework > installed. Every machine I encounter from the workstations at my job, to [quoted text clipped - 27 lines] >>> I think you're turning a very simple job into a project. You can do >>> everything you need using jscript or vbscript. Robbe Morris - [MVP] C# - 07 Jan 2008 18:27 GMT That mirrors my experience as well.
 Signature Robbe Morris [Microsoft MVP - Visual C#] AdvancedXL Server, Designer, and Data Analyzer Convert cell ranges in Excel to rule driven web surveys Free download: http://www.equalssolved.com/default.aspx
> You are right, .Net 2.0 is not included in WinXP or the Windows Updates as > a requirement; they are strictly optional. If the user is running Vista, [quoted text clipped - 50 lines] >>>> I think you're turning a very simple job into a project. You can do >>>> everything you need using jscript or vbscript. Scudder Consulting - 05 Jan 2008 19:12 GMT > I did not know that you can use VBScript or JScript to code a windows > form and run without Internet explorer? Is that true? You definately do not need internet explorer to use the Windows Scripting Host. IE may need to be installed, but that is a foregone conclusion.
You can not use winforms, but that is my point. For what you are doing I don't see where you need anything that the shell doesn't already provide. You can do a lot with the message box and a little creativity.
Best wishes, Roger
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|