delphi package - easy access to kernel objects etc.
Post Reply
Posts: 1
Joined: Sat May 09, 2009 2:09 pm
Location: Overbrook,Ks


Post by wallygator »

I am totally new to these mad tools so forgive me.

I am on windows XP sp3
I have delphi 2009.
I downloaded the latest madcollection.
I recomplied and installed the components.
I added this code to my project

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, AdvSmoothDock,shellapi, AdvSmoothButton, StdCtrls, Spin, jpeg, ExtCtrls, Menus, ExtDlgs,madkernel;

MessageBox(0, pchar('we have ' + IntToStr(TrayIcons.ItemCount) + ' tray icons'), 'info', 0);

If I run outside the IDE I get zero icons

If I run inside the IDE I get an exception 'Could no load module for this target'

if I continue on past the exceptions I still get zero icons, I currently have 8 in the tray

What am I doing wrong? :confused:
Site Admin
Posts: 1028
Joined: Wed Jun 08, 2005 5:08 am

Post by iconic »

Works fine for me here on XP SP3 with Delphi 7... TrayIcons.ItemCount returns the correct number of "visible" trayicons. Perhaps it's a Delphi 2009 issue with madKernel? Madshi might have to help you with this one since I don't have D2009.

Post Reply