Sviluppo e Sviluppi
venerdì, aprile 08, 2005
lunedì, aprile 04, 2005
An incredible (but real) history on modern technology.
Encoding Your Way To (Highly Paid) Consultantcy - The Daily WTF
I think some persons look at solution, not the (BEST) way to find it.
If you need to build an house you need a Civil Engineering not a Computer Scientist!!!
Today programs and processes are treated as "opinions" not as a correct science.
venerdì, marzo 11, 2005
mercoledì, marzo 09, 2005
Traditional VB (6.0) is out because It's not a "self containig" language but depends by SO (I mean COM layer).
Natural evolution of a language is a conseguence of It's own capacity to implement new features requested by evolution (OO design, Class Library, etc.). This post show how VB .NET is different from VB classic.
The Blah-Blah Blog: Microsoft MVPs revolt
sabato, marzo 05, 2005
Using inherited forms: specify different event response in child forms
Delphi has this great features.
This is a logical (and graphical) conseguence of Object Oriented Inheritance. IDE offers a simple way to work with inherited forms: create master form and childs form that will include all master's controls.
It's really useful in a lot of cases:
- define a template form that include all control and graphical settings common to all program
- using same logic for all common control: for example include an about dialog clicking the company's image
- make a correspondance between hierarchic OO library and user interation
Now you can use the same feature using VS and all his languages (J#, C#, VB) but there are some small differences related to the Event handlers inherited by child form (Delphi hide some implementation details and allows to specify different events on the master control).This is an example by using C#:
- create a window form (Form1)
- include a button (button1)
- insert an event handler on mouse click:
private void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Click on Form 1!");
}
Modify private modifier in public virtual modifier so that you can override this method in child forms - build the project
- create an inherited form (Form2) (Menu Project --> Add Inherited Form)
- button1 will be present also on Form2
- create a method to override button1_Click:
public override void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Click on Form 2!");
} - Form2 specify a different response to Button1 click. If you want to call inherited method you can use:
base.button1_Click(sender,e);
Delphi hides the creation of method overriding and use keyword inherited to call parent method
giovedì, marzo 03, 2005
Shell Wait
One or Two times for year, I need to use a Shell Wait function to wait for a task ended. Windows is a multitasking SO, so if you use a program to run (for example using Shell command from VBA) another one, you can need to wait the end of the second program.
Consider this Example:
Program 1
1. Select a file F
2. Run a Shell command to print file F
3. Delete File F
Program 2
Redirect F to a printer
Step 3 of program 1 must wait the end of printing before delete file F.
In this case you must wait for program 2 end.
Windows have some API to wait a task end: try to search SHELLWAIT on Google.
VBA Example:
Zip file: ShellWait Demonstration.zip
giovedì, febbraio 24, 2005
Really important start point for Delphi.NET programmer in case of Bugs.
Quality Central - Project Page for the Delphi.Net Project