ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Writing Managed Wrappers with Managed C++
Subject:   My new O'Reilly Article is Live - Writing Managed Wrappers with Managed C
Date:   2004-04-07 01:17:01
From:   madigan04
Response to: My new O'Reilly Article is Live - Writing Managed Wrappers with Managed C

Sam, thanks for this excellent introduction! Reading the text raised some questions for me:


1. Is it correct to expose unmanged classes in the wrapped methods? e.g. Item and UnmanagedLinkedList


void MList::Insert( Item *ptr, int value )
{
m_pUnmanagedList->insert(ptr, value);
}
void MList::InsertAll(const UnmanagedLinkedList &rhs)
{
m_pUnmanagedList->insert_all(rhs);
}


2. If the class 'Item' should be visible to the "mangaged programmer", do I have to wrap it too?



Maybe someone has some answers to my questions...


Thanks in advance,
Bernd