Hiya,
I just got me a copy of VS2008 (for free, thanks to a Computer Science degree! :D), and I can't get the OpenMPT source to compile. The error I receive is:
StdAfx.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\sdkddkver.h(217) : fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting
Any help? I'd like to be able to start poking around in the code, but I don't want to start until I at least know it'll compile. :)
Thanks!
Try adding line
#define _WIN32_IE 0x401
right after line
#define WINVER 0x0401
in file "stdafx.h" (if this doesn't work, check the documentation: e.g. press F1 when cursor is on text "_WIN32_IE"). When I compiled OMPT with VC2008, the GUI had the 'old style'-look like in MPT 1.16 - I would interested to hear if the same happens for you.
Thanks! That got the ball rolling... right until it tells me it's missing dsound.h. :/
Quote from: "bvanoudtshoorn"Thanks! That got the ball rolling... right until it tells me it's missing dsound.h. :/
I think I had this problem as well. My guess is that the file is in DirectX SDK, which may have to be downloaded separately.
Thanks... I'm downloading the DXSDK now. Anything else I should get while I'm at it? :)
Quote from: "bvanoudtshoorn"Thanks... I'm downloading the DXSDK now. Anything else I should get while I'm at it? :)
Not expecting clear and understandable code and having a good proportion of persistence might prove useful :P
Did you get the code to compile?
You use Perl?
Performing Post-Build Event...
'perl' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
Quote from: "bvanoudtshoorn"You use Perl?
No. But good that you got it compiled.
Yeah, it compiled. :) And yes, I got the old windows interface. Obviously the resource xml file isn't being included. :shock:
Hmm... :/ Just fiddling with little things, like redoing the icons to use Tango icons (which are nice and 32bit). Can't get it to work, though. :( I'll tell you what - working with icons this way is *much* clunkier than in Delphi. :)
BTW has anyone reshacked MPT successfully? I never tried it yet. one could do some amazing things to it that way.
Yeah, I've reshacked it a couple of times. I replaced the splash screen with my own (http://test.pbc.wa.edu.au/temp/MPTWild%20Splash.bmp).
Thing is, when you reshack, you have to use *exactly* the same image format - colour depth, width, and height, or it doesn't work. :(