Assume you have a base class and another class derived from it. You have events defined in base class so you wish to use them in the derived class.

    class a
    {
        public delegate void Amanindelegate();
        public event Amanindelegate Amanin;
    }

    class b:a
    {
        public void hey0()
        {
            Amanin();
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            b b1=new b();
            b1.Amanin+=new a.Amanindelegate(b1_Amanin);
            b1.hey0();
        }
        static void b1_Amanin()
        {
            Console.WriteLine("aboovv");
        }
    }

Here you have the mentioned error in hey0 method line Amanin();
The best practice is as follows.

    class a
    {
        public delegate void Amanindelegate();
        public virtual event Amanindelegate Amanin;
    }

    class b:a
    {
        public override event a.Amanindelegate Amanin;
        public void hey0()
        {
            Amanin();
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            b b1=new b();
            b1.Amanin+=new a.Amanindelegate(b1_Amanin);
            b1.hey0();
        }
        static void b1_Amanin()
        {
            Console.WriteLine("aboovv");
        }
    }

 


 
Categories: Software

If you are having troubles with installing/registering ReportViewer dll's either using gacutil.exe or setup file, you can download the Microsoft Report Viewer Redistributable 2008 package from the following link.

http://www.microsoft.com/downloads/details.aspx?FamilyID=CC96C246-61E5-4D9E-BB5F-416D75A1B9EF&displaylang=en


 
Categories: Software

January 20, 2009
@ 05:18 AM

The name "Donaminname :1d" could not be registered on the Interface with IP address X.X.X.X (windows 2003 DC or server). The machine with the IP address X.X.X.X (PDC emulator) did not allow the name to be claimed by this machine.

The solution is simple. type "nbtstat -r" on command prompt & disable computer browser service. It's an error caused by wins.


 
Categories: Server Systems

3 system engineers, 1 microtower, 1 esxi cd
Tonight we tried to setup vmware esx 3i 3.5 to a hp dx2300 microtower.
It was a painful night, first we searched for a hdd because original hdd should be saved as it was containing critical data for one of my project.
So me & Serkan called Arda and asked him to bring a sata hdd.
He came & we setup the hdd and burned out the iso & finally we were ready for the installation
Whoops we got the first error, memory was not enough.Logistics manager Arda :) took a ride to his place & brought 2gb ram.
Voila, installation was started, but suddenly we got an error message telling that esxi did not find any storage device to make the installation.
Anyway we googled a little but we could not find any resource.End of the night :)

So i decided to download & install esx 3.5 trial, but that attempt was kicked backed by the "competible nic not found" error :((
I was frustrated.

Late @ the same night while i was coding, i decided to re-google the problem.
Finally i got the solution.I had to change 4 chars in a py file in esxi.

If esxi could not find your sata drive, do the following

Press alt+f1 and drop to console
type root as the username and leave blank for the password
edit the /usr/lib/vmware/installer/Core/TargetFilter.py file by entering
vi /usr/lib/vmware/installer/Core/TargetFilter.py
find the def IDEFilter(lun) proc and change the "return interface.GetInterfaceType() == ScsiInterface.SCSI_IFACE_TYPE_IDE" line as "return interface.GetInterfaceType() == ScsiInterface.SCSI_IFACE_TYPE_ISCSI
save and quit by :wq!
type install

The original help document can be found @
http://www.vm-help.com/esx/esx3i/ESXi_install_to_IDE_drive/ESXi_install_to_IDE_drive.php

What a wonderful night.


 
Categories: Virtualization

January 1, 2009
@ 11:51 PM
Having problem with mdichild form size on form load?
try setting the AutoScaleMode to Inherit on mdi child form.


 
Categories: Software

October 27, 2008
@ 08:27 PM


A Forecast...

Whenever SaaS and Soa completes their evolution, a new era will rise;
Internet Software Studio
A platform where developers will no longer need a software development studio,
A platform where development & compilation can be done online, where intermediate software users will able to develop their own software without digging into huge documentations...

Some day...


 
October 23, 2008
@ 09:47 AM

Dtp nin sitesi hacklendi.
dün akşam saat 22:30 civarında...


 
Categories: Genel | Server Systems

September 5, 2008
@ 01:32 AM
My description for a hacker is the expert of all tech systems including coding.My description for the best hacker is the one tht has never been cought.But this guy is different, he exposes himself & his hack.

But i must confess, this is the best & funniest hack event i've seen for the past year.




 
Categories: Security | Server Systems

August 15, 2008
@ 05:59 PM


Great & wondeful tool for copying files to/from Esx servers to your windows environment.
http://www.veeam.com/veeam_fast_scp.asp

It also has "evaluate to root" option which allows u to access to yr vmfs volumes & copy powered off vm's to local drive.

 
Categories: Virtualization

August 15, 2008
@ 12:16 AM
AKP'nin sitesi hacklendi...

Bu akşam saat 21:00 civarında...


 
Categories: Genel