Cat wrote:
Thanks. This ways looks very simple and reasonable. The app won't run
all right, but the problem is it shows a crash dialogue like "... has
encountered a problem and needs to close. We are sorry..". Instead, I
just want to inform the users that this app might be infected by a
virus and guide them to my homepage to re-download it. To do that, my
app should run.
That's a nice idea, but not very safe. Who says that if a virus has
infected your app, it's not already loaded when you get to the point
where you inform the user? Doing this "from the outside" of your app, as
the .NET framework does with assembly strong names, is a much safer
approach.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619
http://www.sturmnet.org/blog