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
delvermedina
NA
2
0
Interop::Excel
May 4 2005 3:28 PM
I have downloaded an example in C#.NET and have made some conversion that have worked in my C++.NET winform application. Does anyone have any ideas? The last line does not work....... // get the collection of sheets in the workbook //C# example // Excel.Sheets sheets = theWorkbook.Worksheets; // This conversion works Interop::Excel::Sheets *sheets = theWorkbook->Worksheets; //C# example // Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(1); // This does not work..it is looking for a // error C2664: 'Interop::Excel::Sheets::get_Item' : cannot convert parameter 1 from 'int' // to 'System::Object __gc *' Interop::Excel::Worksheet *worksheet = (Interop::Excel::Worksheet*)sheets->get_Item(1);
Reply
Answers (
0
)
Problem referencing a recordset in COM
Portability