Click here to Skip to main content
15,881,630 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was using VS 2013. Recently i have been asked to port into VS 2019 that COM componts.
When i compile one of the project , i get this below

error MIDL2003: redefinition : _xml_error


msxml2.idl
- File says
// If, when importing this file into another idl file you receive duplicate definition
// errors, define IMPORTED_MSXML on the command line to the MIDL compiler.

I have done that, still not working

Could you please let me know how to give MIDL command
Tried :
Propertires->Linker->Embeded IDL-> MIDL commands->
midl /d <pre>IMPORTED_MSXML
test.idl

What I have tried:

midl /d
IMPORTED_MSXML
test.idl

Dint work.Still throwing errors
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900