Be Informed Beta

Be Informed on remote unmaintained activity with Alax.Info Be Remoted software.

Be Informed is a framework for unmaintained activity such as observation or check and notification on certain events. The application manages configurable activities, which generate events, and notifications, that handle the events and deliver notifications as configured. The current distribution of Be Informed inlcudes:

  • Activity: Process Check – an activity that monitors running applications and once an application (process) matching defined patter is created or terminates, the activity issues an event
  • Notification: SMTP Email Notificaition – a notification using email via SMTP protocol
  • Sample C++/ATL Visual Studio .NET 2005 project which illustrates how to create additional activities and notification for Be Informed; the project contains activity object that checks Scroll Lock key state and issues events on state changes and notification object that delivers notifications through showing a message box.

02-image001.png

Each activity may be configured to have events issued delivered using one or more notifications methods. Thus, for example, Process Check activity may be configured to check for calc.exe process and notifications to be delivered through e-mails and the e-mail messages will be sent every time Windows Calculator application is started and closed.

Features

Continue reading →

Visual Studio .NET 2005 C++/ATL attribute provider

Does it make sense that __event __interface may still only use dispinterface defined in this module and not imported?

#import “libid:…” no_namespace raw_interfaces_only raw_dispinterfaces

[
coclass,
event_source(com),
default(IFoo, _FooEvents),

]
class ATL_NO_VTABLE CFoo :
public IFoo
{
public:

__event __interface _FooEvents; // Imported using #import

OK, in Visual Studio .NET 2002 the attribute provider only appeared first, this could be a problem missed while developing the stuff. 2003 version did not fix the issue. In 2005 it’s still the problem!

error C3706: ‘_FooEvents’: must be a COM interface to fire COM events
error C3335: ‘_FooEvents’: There can be at most one default interface for a coclass ‘CFoo’

Continue reading →

Visual Studio .NET Service Pack

I came across released service packs for Visual Studio .NET, 2003 and 2005:

and was surprised, in a good way, that Microsoft finally released an update to fix at least some of the bugs. Some of the bugs were multiple times mentioned on the microsoft.public.vc.atl newsgroup so one would assume they are well know to be fixed in the service pack.

The sad news bugs are still here… For example, regular expressions nasty bug or singleton factory unlock bug are still here.

Visual Studio .NET 2005  service pack failed to install at all, keeps freezing while trying to install…

IDE bugs are also passing through the versions of software:

28-image001.png

How to print function names to debug output with ATL’s ATLTRACE macro

Starting Visual Studio .NET version 2003 (2002?) ATL offered new tracing macros ATLTRACE/ATLTRACE2 which are quite convenient and flexible to generate debug output and, what is important, come with ATL debug API which allows to adjust output settings on runtime using ATL/MFC Trace Tool.

The problem however appeared to be that ATL debug API does not seem to support printing function names, although trace tools shows checbox “Category & Function Names”. I am solving this shortage.

Continue reading →