Giter Site home page Giter Site logo

VS2012 Spout2 compile error about spout2 HOT 4 CLOSED

leadedge avatar leadedge commented on June 25, 2024
VS2012 Spout2 compile error

from spout2.

Comments (4)

sheridanis avatar sheridanis commented on June 25, 2024

from memory you need to change your project to use multi code, either that or to not use multicode

from spout2.

leadedge avatar leadedge commented on June 25, 2024

Yes I came across this recently with another project and fixed it by casting. For this particular project it was due to to the "Configuration properties -> character set" not being set to anything. Other Spout projects are set to Unicode. In this project the rest of the code causes errors for Unicode so it has to be left not set, but your project might work OK with Unicode.

For some reason wcstombs_s does not like "DisplayDevice.DeviceKey" which is WCHAR but it works OK with "adapterinfo.Description" which is also WCHAR.

In fact for your project you could try to leave out the "GetAdapterInfo" function. I am working on a release that removes the auto-detection of Intel graphics because this does not seem to work as expected and is causing problems. The new release will have an installer with options for DirectX 9 or DirectX 11.

Then in "OpenDirectX" make the following change :

 ---

// Open DX11    
if(OpenDirectX11()) {
    bUseDX9 = false; // Set to indicate intialized as DX11
    // Return here if OK - Intel auto detection removed 21.04.15
    return true;
}

return false;


/*
    // Get adapter info using both DirectX and Windows functions

comment out the rest

----

After that you should specifically set to use DirectX 9 or DirectX 11 with SetDX9() because DirectX 9 will be the default for the next release. At the moment the default is DirectX 11. Everything except the Unity plugin should work with DirectX9.

from spout2.

alfaleader avatar alfaleader commented on June 25, 2024

Thx guys!

from spout2.

leadedge avatar leadedge commented on June 25, 2024

Changes implemented for 2.005

from spout2.

Related Issues (20)

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.