Steve Kille | 3 Feb 21:09
Picon
Favicon

(unknown)


http://sxhfc.com/templates/indexMoney.htm

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    wtl-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Peter Kvitek | 3 Feb 23:46

RE: _ATL_MIN_CRT triggers Avast Sandbox

Our WTL based app has millions of installations and roughly twice a year one
or the other antivirus package starts flagging it as malware after virus
definitions update. We routinely contact the antivirus vendor and they
release an update that fixes the problem the next day or the day after.

It's still very confusing for our users, so at some point I had a meeting
with one of the big name antivirus vendors' devs trying to figure out a way
to prevent this from happening. Unfortunately, the process they use is
largely heuristic, so false positives are expected and there is not much we
can do about it.

In this particular case the pattern was probably acquired from the malware
executable that happened to be built with ATL in _ATL_MIN_CRT mode.
Anti-virus package should be smart enough to find unique pattern that
identifies the malware executable, so bits coming from the commonly used
library or framework cannot be part of it.

/Peter

From: wtl@...
[mailto:wtl@...] On Behalf Of Nenad
Stefanovic
Sent: Thursday, January 19, 2012 6:11 PM
To: wtl@...
Subject: [wtl] _ATL_MIN_CRT triggers Avast Sandbox

Hi everybody,

I have Avast 6.0 anti-virus and I noticed that now Avast triggers Sandbox
for apps built with _ATL_MIN_CRT. Any apps, including projects that do
(Continue reading)

Nenad Stefanović | 4 Feb 00:34
Picon

Re: _ATL_MIN_CRT triggers Avast Sandbox

Hi Peter,

Thanks for sharing this info. Based on it, we have to conclude that there
is nothing really wrong with the _ATL_MIN_CRT code. And that is very good
thing to know.

Cheers,
Nenad

On Fri, Feb 3, 2012 at 2:46 PM, Peter Kvitek <pete@...> wrote:

> **
>
>
> Our WTL based app has millions of installations and roughly twice a year
> one
> or the other antivirus package starts flagging it as malware after virus
> definitions update. We routinely contact the antivirus vendor and they
> release an update that fixes the problem the next day or the day after.
>
> It's still very confusing for our users, so at some point I had a meeting
> with one of the big name antivirus vendors' devs trying to figure out a way
> to prevent this from happening. Unfortunately, the process they use is
> largely heuristic, so false positives are expected and there is not much we
> can do about it.
>
> In this particular case the pattern was probably acquired from the malware
> executable that happened to be built with ATL in _ATL_MIN_CRT mode.
> Anti-virus package should be smart enough to find unique pattern that
> identifies the malware executable, so bits coming from the commonly used
(Continue reading)

Favicon

CShellFileOpenDialog/CShellFileSaveDialog hang up my App

Hello,

I wonder but I cannot find the reason.
The code is:

CShellFileSaveDialog fd;

if (fd.DoModal(GetParent()) == IDOK)

{

  CStringW s;

  fd.GetFilePath(s);

}

DoModal() hangs my WTL-based program. I believe the latest WTL build is used 
under Vista x64 + Sp2.

Thanks

-km 

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/
(Continue reading)

Favicon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

probably something wrong with my App mainloop.
fd.DoModal(::GetDesktopWindow()) works fine.

-km

----- Original Message ----- 
From: "Konstantin Mironovich" <const@...>
To: <wtl@...>
Sent: Wednesday, February 15, 2012 11:37 PM
Subject: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my App

> Hello,
>
> I wonder but I cannot find the reason.
> The code is:
>
> CShellFileSaveDialog fd;
>
> if (fd.DoModal(GetParent()) == IDOK)
>
> {
>
>  CStringW s;
>
>  fd.GetFilePath(s);
>
> }
>
> DoModal() hangs my WTL-based program. I believe the latest WTL build is 
> used
(Continue reading)

Nenad Stefanović | 17 Feb 02:00
Picon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

What is GetParent() returning in your code?

Cheers,
Nenad

2012/2/16 Konstantin Mironovich <const@...>

> probably something wrong with my App mainloop.
> fd.DoModal(::GetDesktopWindow()) works fine.
>
>
> -km
>
> ----- Original Message -----
> From: "Konstantin Mironovich" <const@...>
> To: <wtl@...>
> Sent: Wednesday, February 15, 2012 11:37 PM
> Subject: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my App
>
>
> > Hello,
> >
> > I wonder but I cannot find the reason.
> > The code is:
> >
> > CShellFileSaveDialog fd;
> >
> > if (fd.DoModal(GetParent()) == IDOK)
> >
> > {
(Continue reading)

Favicon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

guess the parent is valid.
furthermore CFileDialog works pretty good in this App.
also both work in another WTL-based program.
I suspect these Vista COM-based dialogs are just ill-designed.

-km

  ----- Original Message ----- 
  From: Nenad Stefanovic
  To: wtl@...
  Sent: Friday, February 17, 2012 5:00 AM
  Subject: Re: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my 
App

  What is GetParent() returning in your code?

  Cheers,
  Nenad

  2012/2/16 Konstantin Mironovich <const@...>

  > probably something wrong with my App mainloop.
  > fd.DoModal(::GetDesktopWindow()) works fine.
  >
  >
  > -km
  >
  > ----- Original Message -----
  > From: "Konstantin Mironovich" <const@...>
  > To: <wtl@...>
(Continue reading)

Nenad Stefanović | 17 Feb 09:24
Picon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

Parent needs to be a top level window, not just valid. Or, it could be
Vista - have you tried it on Win7?

Cheers,
Nenad

On Thu, Feb 16, 2012 at 10:44 PM, Konstantin Mironovich <const@...>wrote:

> **
>
>
> guess the parent is valid.
> furthermore CFileDialog works pretty good in this App.
> also both work in another WTL-based program.
> I suspect these Vista COM-based dialogs are just ill-designed.
>
>
> -km
>
> ----- Original Message -----
> From: Nenad Stefanovic
> To: wtl@...
> Sent: Friday, February 17, 2012 5:00 AM
> Subject: Re: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my
> App
>
> What is GetParent() returning in your code?
>
> Cheers,
> Nenad
(Continue reading)

Favicon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

the default parent is ::GetActiveWindow()
for both CFileDialog::DoModal() and CShellFileSaveDialog::DoModal()
and only the first works in my case.
Win7 will be next. not tried yet.

-km

----- Original Message ----- 
From: "Nenad Stefanovic" <nenad2001@...>
To: <wtl@...>
Sent: Friday, February 17, 2012 12:24 PM
Subject: Re: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my App

> Parent needs to be a top level window, not just valid. Or, it could be
> Vista - have you tried it on Win7?
>
> Cheers,
> Nenad
>
>
>
>
> On Thu, Feb 16, 2012 at 10:44 PM, Konstantin Mironovich 
> <const@...>wrote:
>
>> **
>>
>>
>> guess the parent is valid.
>> furthermore CFileDialog works pretty good in this App.
(Continue reading)

Timo Kunze | 17 Feb 21:39
Picon
Picon

Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

Hi,

could it be that all that is missing is a call to CoInitialize?

Regards
Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...
(Continue reading)


Gmane