473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

run function once only

Hi,
My application run a splash screen in order to check if .NET Framework
is installed before to use it.

I have a function which controls this fact.
however, as it happens during my splash screen, i don't know where to
place the call to this function ?
in repaint method ?
but this function must be run once only...so how can i do that ?
i don't want to use a loop with condition i=0 (never run before)
condition =1 already run once.

thx.
Maileen
Nov 21 '05 #1
3 1449
"Maileen" <no****@email.com> schrieb:
My application run a splash screen in order to check if .NET Framework
is installed before to use it.


This won't work. If the .NET Framework is not installed, the application
won't be able to start.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
I would reccommend to use other application that is not using the .NET
Framework for checking if the .NET Framework is installed, for example VB6.

And if the .NET Framework is found then this 2nd appplication would lunch
the main application in .NET Framework.

"Maileen" wrote:
Hi,
My application run a splash screen in order to check if .NET Framework
is installed before to use it.

I have a function which controls this fact.
however, as it happens during my splash screen, i don't know where to
place the call to this function ?
in repaint method ?
but this function must be run once only...so how can i do that ?
i don't want to use a loop with condition i=0 (never run before)
condition =1 already run once.

thx.
Maileen

Nov 21 '05 #3
Go to Microsoft, and do a search for the .NET Bootstrapper plugin. Also, if
you package your program with something like Installshield, the packager
will recognize whether or not the .NET Framework is installed, and will
install it if it is not.

-Jason

"Maileen" <no****@email.com> wrote in message
news:Oe**************@TK2MSFTNGP12.phx.gbl...
Hi,
My application run a splash screen in order to check if .NET Framework is
installed before to use it.

I have a function which controls this fact.
however, as it happens during my splash screen, i don't know where to
place the call to this function ?
in repaint method ?
but this function must be run once only...so how can i do that ?
i don't want to use a loop with condition i=0 (never run before) condition
=1 already run once.

thx.
Maileen

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ken VdB | last post by:
Hi everyone, Is there a reason why the Mid() function only works in one direction in VBScript? This code works in VB6 but not in VBScript? Is there a way around it? I am trying to create an...
9
by: PyPK | last post by:
Hi if I have a function called tmp=0 def execute(): tmp = tmp+1 return tmp also I have def func1(): execute() ....
5
by: Martin Vorbrodt | last post by:
so if i have this: // header.h class X { public: static int s = 1; }; i still need this:
1
by: jimfortune | last post by:
From: http://groups-beta.google.com/group/comp.databases.ms-access/msg/769e67e3d0f97a90?hl=en& Errata: 19 solar years = 2939.6018 days should be 19 solar years = 6939.6018 days Easter...
1
by: john | last post by:
Relatively new to C coding, so any help would greatly be appreciated. I'm having problems try to return my string array from my parsing function. When I do a printf I am getting the correct value...
12
by: Tomás | last post by:
The common persuasion is: Big function -- leave it outline. Small function -- make it inline. In code I'm writing at the moment, I have a fairly long function, so it wouldn't cross my...
26
by: Patient Guy | last post by:
The code below shows the familiar way of restricting a function to be a method of a constructed object: function aConstructor(arg) { if (typeof(arg) == "undefined") return (null);...
83
by: Anonymous | last post by:
Came across some code summarized as follows: char const* MyClass::errToText(int err) const { switch (err) { case 0: return "No error"; case 1: return "Not enough"; case 2: return "Too...
2
by: Mark | last post by:
This is just out of curiosity... There are a couple ways to make sure a function gets called only once. Let's say I have a function that gets called several times, called LoopedFunc() and I have...
12
by: aaragon | last post by:
I have this scenario: several arrays for which I have their fixed values at compilation time. Now, at runtime I need to access a specific array depending on an integer but I want to avoid if and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.