TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anseltim
NA
1
0
Problem referencing a recordset in COM
May 1 2005 1:15 AM
I have a C++ COM object the returns a recordset by reference. My problem is that I can't seem to get the syntax right to pass in a recordset to use. My code is: static void Main(string[] args) { MYSQLMODLib.MySqlClass getme = new MYSQLMODLib.MySqlClass(); ADODB.Recordset pRs = new ADODB.RecordSet(); bool x; x = getme.GetAccountInfo( 24513, ref pRs ); Console.WriteLine(x); Console.ReadLine(); } I keep getting an error message "Argument '2': cannot convert from 'ref ADODB.Recordset' to 'ref MYSQLMODLib._Recordset'" What am I doing wrong? I'm banging my head on my desk trying to figure this out....Help! Thanks!
Reply
Answers (
0
)
Can we invoke a winform from mfc
Interop::Excel