tablesmit / csexwb2

Automatically exported from code.google.com/p/csexwb2
1 stars 2 forks source link

compilation error in VS 2008 #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile solution ComUtilities using Visual Studio 2008 Professional (I
downloaded trial from Microsoft page, but I guess the same applies to full
version)
2. Compilation will fail with
1>.\ComUtilities.idl(46) : error MIDL2003 : redefinition : IUri
1>.\ComUtilities.idl(53) : error MIDL2003 : redefinition :
Uri_PROPERTY_ABSOLUTE_URI
1>.\ComUtilities.idl(54) : error MIDL2003 : redefinition :
Uri_PROPERTY_STRING_START
1>.\ComUtilities.idl(55) : error MIDL2003 : redefinition :
Uri_PROPERTY_AUTHORITY
...

What is the expected output? What do you see instead?
Compilation Error

What are the OS and IE versions?
Windows XP. IE version irrelevant

What version of the product are you using?
2.0.0.2

Please provide any additional information below.
The solution compiles in Visual Studio 2003. I tried to solve the problem
by replacing 
import "urlmon.idl"; 
by 
#include "urlmon.h"
in the file ocidl.idl, but other errors occured: 
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(280) :
error MIDL2003 : redefinition : INT
...

Original issue reported on code.google.com by jan.matu...@gmail.com on 21 Jul 2009 at 9:23

GoogleCodeExporter commented 9 years ago
I found a solution in
http://groups.google.com/group/csexwb/browse_thread/thread/4c6106529769a9f8?pli=
1
According to this I changed #define _WIN32_IE 0x0600 to #define _WIN32_IE 
0x0700 in
stdafx.h 
and commented lines 38-259 in ComUtilities.idl and it worked

Original comment by jan.matu...@gmail.com on 21 Jul 2009 at 9:50