473,394 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

MIDL in VS 2003 creates corrupt tlh files when msado15.idl is included in another idl?

Hello everyone,

I am moving an ATL project from VC6 to VS .NET 2003. It builds fine in VC6,
but I am having problems with ADO on VS 2003.
It appears that if I use the msado15.idl included with VS 2003, I get the
error "error C2146: syntax error : missing ';' before identifier
'PositionEnum_Param'"

My IDL imports the msado15.idl. In stdafx.h, the .tlb is #imported and
therefore gets everything, including ADO.

The following is a snapshot of the corrupt tlh-file:

typedef PositionEnum PositionEnum_Param;
typedef enum __MIDL___MIDL_itf_MyProject_0258_0013 PositionEnum;
enum __MIDL___MIDL_itf_MyProject_0258_0013;

The manually corrected version is:
typedef enum __MIDL___MIDL_itf_MyProject_0258_0013 PositionEnum;
enum __MIDL___MIDL_itf_MyProject_0258_0013;
typedef PositionEnum PositionEnum_Param;

If I remove the #import of the .tlb and #include the .tlh file that I alter
to correct the ordering, it seems to build ok. But it is not the solution I
am looking for.

If I change the IDL to import the msado15.idl including with VC6, I get a
lot of warnings - but no errors. So I figure there must be something with
the file shipped with VS 2003.

Thanks,
Ken Ekberg
Nov 16 '05 #1
0 1427

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
0
by: Vijay Chegu | last post by:
Hi All, I am trying to port a perfectly working 32bit COM module developed in VC++ from 64bit. I am not able to generate .tlb file through midl compiler. I set the property thru the...
2
by: Bill Sun | last post by:
Hi, I want to compile the MS's program: ADOXCreateDatabaseX.cpp on VC7 of .Net 2003. The compiler always told me: c:\project\console\console\Debug\msado15.tlh(2374) : error C2059: syntax error :...
0
by: Ganapathy | last post by:
I have COM dll code written in VC 6.0. When i tried compiling this code in VC 7, The MIDL cmpiler gets called twice. i.e. it initially compiles fully & immediately a line - 64 bit processing'...
3
by: Trevor Andrew | last post by:
Hi There, I have a small ASP.NET application under development. I am using VS.NET 2002 (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web hosting service in the US. I am...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
5
by: Bob | last post by:
I'm getting error 8007007e when executing the following code. Dim word As New Microsoft.Office.Interop.Word.Application Dim doc As Microsoft.Office.Interop.Word.Document doc =...
6
by: 2112 | last post by:
I'm compiling a dll that imports msado15.dll. When I'm using Windows in English, the msado15.dll is located at <drive>:\Program Files\Common Files\System\ADO\msado15.dll". When using Windows in...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.