acdx/opencv-screen-capture — Issue #1: Can't compile project, applying your library.
Author: maslennikov
Created: 2011-11-23 00:47:35+00:00
State: open

I have a little plugin for simulator Orbiter.

I want to apply image processing in it, so I need to capture screen.
I've added `screenCapture.cpp` and `screenCapture.h` files in project in Visual Studio 2010.

I've added:
`#include "screenCapture.h"`
both in `screenCapture.cpp` and `main.cpp`

There is no "red underlining" in VS2010 (so it's all ok with including).
When I build my project, it reports:

```
1>screenCapture.obj : error LNK2019: unresolved external symbol _GetProcessImageFileNameW@12 referenced in function "void __cdecl getHwndsByProcessName(wchar_t const *,class std::vector > &,bool)" (?getHwndsByProcessName@@YAXPB_WAAV?$vector@PAUHWND__@@V?$allocator@PAUHWND__@@@std@@@std@@_N@Z)
`1>screenCapture.obj : error LNK2019: unresolved external symbol _EnumProcesses@12 referenced in function "void __cdecl getHwndsByProcessName(wchar_t const *,class std::vector > &,bool)" (?getHwndsByProcessName@@YAXPB_WAAV?$vector@PAUHWND__@@V?$allocator@PAUHWND__@@@std@@@std@@_N@Z)
```

P.S. Sorry, I'm very novice to C++. What's my mistake? I understand I should add some libraries or smth to Linker in Project Properties, am I right?