Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urlmon.idl problem

Status
Not open for further replies.

Mats

Technical User
Feb 18, 2000
83
EU
I need to compile a dll in Visual C++. All my attempts however end with the error:

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl(535) : error MIDL2025 : syntax error : expecting a type specification near "DWORD"

First I thought it might have something to do with my code, but a few tests showed that this error occurs no matter what I try to compile. I downloaded a new version of urlmon.idl from Microsoft but without success.

Does anyone know what's going on?

Thanks,
Mats
 
use int instead of DWORD. John Fill
1c.bmp


ivfmd@mail.md
 
Where? In urlmon.idl? The code that I'm trying to compile is generated automatically, so I don't really know what's going on there, but as far as I have been able to see there's no direct references to urlmon.idl. I must unfortunately admit that I know *very* little about C++, VB is more in my style...

Mats
 
It didn't really have the effect I hoped for. After changing DWORD to INT the same error occured for the next DWORD in the file - so I changed that one to, but the problem just kept repeating for every DWORD - so I changed them all. Now it's giving the same error for HANDLE_PTR.

Somehow I don't think I can go around changing all these without it having an effect on the programs performance. I don't know why this urlmon.idl is needed in the compilation process.

Mats
 
try to
typedef int DWORD;
or
#define int DWORD John Fill
1c.bmp


ivfmd@mail.md
 
Thanks for all the help, but Microsofts support solved this one: It seems that there is a well known bug in the software that causes this problem if the input locale is not English. We had our computers with Finnish input locales and changing that to English solved the problem.

Mats
 
try to import stdole32.tlb and I think everything will be ok. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top