Author Topic: Compiling Source with VS2008  (Read 13580 times)

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« 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:

Code: [Select]

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!

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Compiling Source with VS2008
« Reply #1 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.

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #2 on: March 23, 2008, 15:13:50 »
Thanks! That got the ball rolling... right until it tells me it's missing dsound.h. :/

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Compiling Source with VS2008
« Reply #3 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.

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #4 on: March 23, 2008, 15:53:25 »
Thanks... I'm downloading the DXSDK now. Anything else I should get while I'm at it? :)

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Compiling Source with VS2008
« Reply #5 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

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Compiling Source with VS2008
« Reply #6 on: March 24, 2008, 23:19:54 »
Did you get the code to compile?

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #7 on: March 25, 2008, 09:06:28 »
You use Perl?

Code: [Select]
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..."

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Compiling Source with VS2008
« Reply #8 on: March 25, 2008, 12:31:22 »
Quote from: "bvanoudtshoorn"
You use Perl?

No. But good that you got it compiled.

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #9 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:

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #10 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. :)

Offline residentgrey

  • Workaholic artist
  • ***
  • Posts: 285
    • http://www.taralax.com
Compiling Source with VS2008
« Reply #11 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.
No two people are not on fire...AWWW!

Web and Graphic Design just for you!
I r GhostMech on there, forever scouting.

Offline bvanoudtshoorn

  • Extreme artist
  • *****
  • Posts: 1,053
  • Gender: Male
    • Barryvan
Compiling Source with VS2008
« Reply #12 on: March 26, 2008, 09:31:33 »
Yeah, I've reshacked it a couple of times. I replaced the splash screen with my own.

Thing is, when you reshack, you have to use *exactly* the same image format - colour depth, width, and height, or it doesn't work. :(