Using Unmanaged Tree Class in Managed Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaufmed
    New Member
    • Mar 2008
    • 1

    Using Unmanaged Tree Class in Managed Code

    Good morning,

    I am using C++ .NET on WinXP to create a small GUI application for a group project. (I chose C++ .NET for ease of GUI creation.) My partners have written a tree class in C++. I have added the file to the project, but now I am stuck. I can't figure out how to pass managed objects to the unmanaged tree. I made a struct to be stored in the tree. The struct definition is:
    Code:
    		ref struct SoftwarePackage
    		{
    			String^ id;
    			String^ name;
    			String^ version;
    			String^ quantity;
    			String^ price;
    		};
    My tree delarations is:
    Code:
    	 MDBST<SoftwarePackage> tree;
    I need to know how to store the structs in the tree.

    Any help would be greatly appreciated.

    Thanks,

    Kenneth
Working...