Comments (4)
printf() should work
from openrct2.
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.
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.
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)
- [943870] openrct2.exe: duk_xget_owndataprop_stridx_short_raw
- /wrkdirs/usr/ports/games/openrct2/work/OpenRCT2-0.4.9/src/openrct2/network/Socket.cpp:251:41: error: macro 'ATOMIC_VAR_INIT' has been marked as deprecated [-Werror,-Wdeprecated-pragma] HOT 1
- Completed park progress dissapearing
- [8bed03] openrct2.exe: PathElement::IsWide
- [277d1a] openrct2.exe: duk_hobject_find_entry
- Crash when attempting to create a TrackIterator with invalid arguments using the scripting API HOT 1
- [286700] openrct2.exe: TileElementBase::GetType
- [31dd3e] openrct2.exe: GetPixel HOT 1
- Wooden & mine train coasters are missing fork style supports on stacked helix pieces
- Scenery objects not showing up and unable to select using the object picker tool HOT 1
- RCT1 and 2 title music not playing with portable setup
- Not All Ride Pictures Are Avaliable. Some Thumbnails of rodes are empty/not visible/showing up HOT 1
- The Ride Music "Acid" & "Techno" are the same audio track (sounds the same) HOT 1
- [d2264c] RCT2.exe: ForceCrash
- Giant screenshots are cropped weirdly HOT 2
- [d9afa3] openrct2.exe: OpenRCT2::MemoryStream::Write
- [74712a] openrct2.exe: Vehicle::UpdateTrackMotionForwards
- Remove unneeded function name Window HOT 2
- RCT1 Wooden wild mouse track designs do not import 2-car trains correctly into OpenRCT2 HOT 6
- Allow more than one palette for the rendering backends. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openrct2.