Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/10/2009, 16:52
iozk
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 16 años
Puntos: 1
ayuda con convertir codigo C# a C++/CLI

hola me encuentro con un problema no consigo convertir codigo C# a C++/CLI quiero convertir un control personalizado que descarge y quiero que me digan si la llevo bien aunque tengo unos errores

de este codigo C#
Código C#:
Ver original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Windows.Forms;
  6. using System.Drawing.Drawing2D;
  7. using System.Diagnostics;
  8. using System.Text;
  9.  
  10. namespace ToolBx
  11. {
  12.     [ToolboxItem(true)]
  13.     [ToolboxBitmap(@"ToolBoxBmp")]
  14.     public partial class ToolBox : TreeView
  15.     {
  16.         #region Local classes
  17.  
  18.         public class TBTreeNode : TreeNode
  19.         {
  20.             #region Private fields
  21.  
  22.             private string mToolTipCaption;
  23.             private bool mOnEdit;
  24.             private bool mEnabled;
  25.  
  26.             #endregion
  27.  
  28.             #region Public properties
  29.  
  30.             public string ToolTipCaption
  31.             {
  32.                 get
  33.                 {
  34.                     return this.mToolTipCaption;
  35.                 }
  36.                 set
  37.                 {
  38.                     this.mToolTipCaption = value;
  39.                 }
  40.             }
  41.  
  42.             public bool OnEdit
  43.             {
  44.                 get
  45.                 {
  46.                     return this.mOnEdit;
  47.                 }
  48.                 set
  49.                 {
  50.                     this.mOnEdit = value;
  51.                 }
  52.             }
  53.  
  54.             public bool Enabled
  55.             {
  56.                 get
  57.                 {
  58.                     return this.mEnabled;
  59.                 }
  60.                 set
  61.                 {
  62.                     this.mEnabled = value;
  63.                 }
  64.             }
  65.  
  66.             #endregion
  67.  
  68.             #region Constructor / Destructor
  69.  
  70.             public TBTreeNode()
  71.                 : base()
  72.             {
  73.                 this.mToolTipCaption = string.Empty;
  74.                 this.mOnEdit = false;
  75.                 this.mEnabled = true;
  76.             }
  77.  
  78.             #endregion
  79.         }
  80.  
  81.         #endregion