Git Product home page Git Product logo

Comments (4)

atmaxinger avatar atmaxinger commented on April 28, 2024

printf() should work

from openrct2.

kevinburke avatar kevinburke commented on April 28, 2024

Thanks for replying! So, I tried adding a printf("Hello World\n"); line to the code, and toggling a breakpoint at that line. I successfully got the code to stop executing, then pressed "Continue", then checked the "Output" box in VS for output, and didn't see anything.

Am I looking in the wrong place? Is my printf syntax incorrect? I believe the code is executing because I was able to stop execution exactly on that line.

from openrct2.

atmaxinger avatar atmaxinger commented on April 28, 2024

Yeah, sometimes printf() doesn't work (especially in GUI Apps) :(. There's also another Windows specific function called OutputDebugString() http://stackoverflow.com/questions/3009042/how-to-view-printf-output-in-a-win32-application-on-visual-studio-2010

EDIT: Well it appears we can't use printf because OpenRCT2 is a DLL and not an EXE. http://forums.codeguru.com/showthread.php?399253-Console-Outputting-via-printf-from-DLL

OutputDebugString() works (for me at least..)

from openrct2.

kevinburke avatar kevinburke commented on April 28, 2024

Thanks! I updated the wiki.

Kevin Burke
phone: 925.271.7005 | kev.inburke.com

On Tue, May 20, 2014 at 11:06 PM, atmaxinger [email protected]:

Yeah, sometimes printf() doesn't work :(. There's also another Windows
specific function called OutputDebugString()
http://stackoverflow.com/questions/3009042/how-to-view-printf-output-in-a-win32-application-on-visual-studio-2010


Reply to this email directly or view it on GitHubhttps://github.com/IntelOrca/OpenRCT2/issues/125#issuecomment-43629809
.

from openrct2.

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.