Giter Club home page Giter Club logo

Comments (5)

atietje avatar atietje commented on June 2, 2024

OK, I re-installed VS 2013 and

set VCTargetsPath=C:\Program\ Files\ \(x86\)\MSBuild\Microsoft.Cpp/v4.0/V140

Now I get

..\src\screen.cc(66): error C2664: 'BOOL EnumDisplayMonitors(HDC,LPCRECT,MONITORENUMPROC,LPARAM)' : Konvertierung von Argument 3 von 'BOOL (__cdecl *)(HMONITOR,HDC,LPRECT,LPARAM)' in 'MONITORENUMPROC' nicht möglich [C:\test\src\node_modules\electron-screen\build\electronscreen.vcxproj]
Keine Funktion mit diesem Namen im Gültigkeitsbereich stimmt mit dem Zieltyp überein

Sorry, I have a German version…

from electron-screen.

delvedor avatar delvedor commented on June 2, 2024

Hi, I used VS2015.
Inside the C++ code I'm using a Windows specific library, probably you just need Visual C++ Redistributable.

Can you translate your stack error in english please?

from electron-screen.

atietje avatar atietje commented on June 2, 2024

I started from scratch and set up a fresh Win 10 VM (no VS) and installed the VC++ Redistributable you linked to.

npm install --save electron-screen threw

MSBUILD : error MSB4132: The tools version 2.0 is unrecognized. Available tools versions are "4.0".

I Installed Microsoft Build Tools 2015 which resulted in MSBUILD : error MSB4132: The tools version 2.0 is unrecognized. Available tools versions are "14.0", "4.0".

So I tried to do npm install --save electron-screen --msvs_version=2015 wich resulted in

C:\Users\atietje\dev\test\node_modules\electron-screen\build\electronscreen.vcxproj(20,3): error MSB4019:  The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

When I had installed VS 2013 I got the error mentioned in my above comment wich translates to

..\src\screen.cc(66): error C2664: 'BOOL EnumDisplayMonitors(HDC,LPCRECT,MONITORENUMPROC,LPARAM)' : cannot convert parameter 3 from 'BOOL (__cdecl *)(HMONITOR,HDC,LPRECT,LPARAM)' to 'MONITORENUMPROC' [C:\test\src\node_modules\electron-screen\build\electronscreen.vcxproj]
None of the functions with this name in scope match the target type

from electron-screen.

delvedor avatar delvedor commented on June 2, 2024

I made a commit that probably will solve you problem, let me know.

from electron-screen.

delvedor avatar delvedor commented on June 2, 2024

I've updated the docs with the build instructions and I have no problem using the module under Windows 10.

from electron-screen.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.