ModPlug Central

OpenMPT => Help and Questions => Topic started by: bvanoudtshoorn on March 23, 2008, 10:57:54

Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 23, 2008, 10:57:54
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!
Title: Compiling Source with VS2008
Post by: Relabsoluness on March 23, 2008, 15:06:34
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.
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 23, 2008, 15:13:50
Thanks! That got the ball rolling... right until it tells me it's missing dsound.h. :/
Title: Compiling Source with VS2008
Post by: Relabsoluness on March 23, 2008, 15:25:44
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.
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 23, 2008, 15:53:25
Thanks... I'm downloading the DXSDK now. Anything else I should get while I'm at it? :)
Title: Compiling Source with VS2008
Post by: Relabsoluness on March 23, 2008, 20:12:49
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
Title: Compiling Source with VS2008
Post by: Relabsoluness on March 24, 2008, 23:19:54
Did you get the code to compile?
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 25, 2008, 09:06:28
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..."
Title: Compiling Source with VS2008
Post by: Relabsoluness on March 25, 2008, 12:31:22
Quote from: "bvanoudtshoorn"You use Perl?
No. But good that you got it compiled.
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 25, 2008, 13:31:59
Yeah, it compiled. :) And yes, I got the old windows interface. Obviously the resource xml file isn't being included.  :shock:
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 25, 2008, 14:08:34
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. :)
Title: Compiling Source with VS2008
Post by: residentgrey on March 26, 2008, 06:51:42
BTW has anyone reshacked MPT successfully? I never tried it yet. one could do some amazing things to it that way.
Title: Compiling Source with VS2008
Post by: bvanoudtshoorn on March 26, 2008, 09:31:33
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. :(