Avg thinks my program is a hack tool when I include windows.h
I have a blank c++ project and w开发者_如何学Chen I include windows.h
and try to run it, avg pops up and says it's a hack tool. (I've tested it, just including the header file sets it off.)
I've added my programming folder as an exception so I can run it but I wouldn't want to distribute a program like that is there something I can do differently to satisfy avg?
Note: I'm trying to follow an OpenGL tutorial.
Edit: The program compiles fine without the windows header file and avg pops up when I do include it but how else can a form be made?
Here's a screenshot:
Building in release mode fixes the problem.
Are you sure it isn't Visual Studio which has a virus? Or the libraries?
You might be drawing in a compromised .DLL, can you recompile an old known-working program?
Based on your screenshot and description, this sounds like it could be expected behavior. This would depend on your settings in AVG. Think about what AVG is observing when you run a newly compiled binary: it is detecting a binary (that it has never scanned) trying to access system libraries.
I'm not familiar with AVG's settings, but I'd recommend seeing if you could change how it reacts to unknown and unscanned applications. Let us know if a certain setting change lets you run unhindered (short of completely disabling it of course).
AVG is right... windows.h has windows system calls in it and AVG mis-understands it as a illegitimate code.
Add the file as 'safe' to the AVG database on your machine and it will not bother you again.
精彩评论