#import question. 
Author Message
 #import question.

Can anyone help?

I've seen several examples of using #import of msado15.dll for ADO.  I get
nothing on compile except errors.
I'm not using MFC.  It's plain-ole C++ but mostly C code windows app.  To
get this working, I'd settle for an example console app.

I'm using MDAC 2.5 and VC 5.0

The first several errors are...

...\msado15.tlh(405) : warning C4146: unary minus operator applied to
unsigned type, result still unsigned
...\msado15.tlh(1100) : error C2504: 'Connection15' : base class undefined
...\msado15.tlh(1268) : error C2504: 'Recordset21' : base class undefined
...\msado15.tlh(1288) : error C2504: 'Recordset20' : base class undefined
same errors for Recordset15, Fields20, Fields15, and Field20

then, a whole lot of....

...\msado15.tli(293) : error C2664: '_com_issue_errorex' : cannot convert
parameter 2 from 'struct ADODB::_Connection * const' to 'struct IUnknown'

many more of the same, of course with different line numbers of the .tli
file.

I hate to say it, but I guess I need someone to hold my hand (so-to-speak)
and walk me through this.

What exactly are the #includes I need?  Is there anything special I need as
far as libraries or other project stuff?

Thanks in advance for anyone who can shed some light on this for me.

David.



Sun, 16 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Beginner #import questions

2. #import question

3. #import question

4. #import question

5. DLL import question

6. STL Assembliy import question

7. Trouble with MIDL import and #import

8. Can't import com interface using #import

9. lint question - how to "import" VARARGS

10. a simple question on raw method with #import Mylib.tlb

11. IDL question - import "msxml2.idl";

12. #import & LPTSTR Question

 

 
Powered by phpBB® Forum Software