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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing multiple dlls

Status
Not open for further replies.

jamiegraziano

Programmer
Joined
Nov 8, 2001
Messages
2
Location
US
Any help would be greatly appreciated! Thanks...

I have a cpp file with the following statements:

Code:
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" 
#import "c:\SRCom\SRCom.dll"

(SrCom.dll uses the RecordSet type, so SRCom.dll is dependent on msado15.dll)

When the project is compiled, these files are created automatically by the compiler:

msado15.tlh
msado15.tli

srcom.tlh
srcom.tli


[red]*****PROBLEM[/red]
The problem is that there are errors in the srcom.tlh and srcom.tli files. These files don't know what a RecordSet pointer is, which is defined in msado15.tlh!!!

Here's the errors from the compiler:

c:\projects\dialogicwin\debug\srcom.tlh(49) : error C2146: syntax error : missing ';' before identifier 'rsGetSRWithArea'
c:\projects\dialogicwin\debug\srcom.tlh(49) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
c:\projects\dialogicwin\debug\srcom.tli(21) : error C2143: syntax error : missing ';' before 'tag::id'
c:\projects\dialogicwin\debug\srcom.tli(21) : error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
c:\projects\dialogicwin\debug\srcom.tli(21) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
c:\projects\dialogicwin\debug\srcom.tli(21) : fatal error C1004: unexpected end of file found
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top