Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Convert From C# To Visual C++ 2015

Convert From C# To Visual C++ 2015

Scheduled Pinned Locked Moved Managed C++/CLI
c++salescsharpxml
6 Posts 4 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paramu1973
    wrote on last edited by
    #1

    Hi, I need to generate the following XML codes. And Iam using VS2015.

     Sales
     No
        Yes
        No
        Customer 1
        \-5000
    

    For That from our website quick answers, I received the following codes in C#.

    [XmlRoot(ElementName="ALLLEDGERENTRIES.LIST")]
    public class ALLLEDGERENTRIESLIST {

    \[XmlElement(ElementName="REMOVEZEROENTRIES")\] 
    public string REMOVEZEROENTRIES { get; set; } 
    
    \[XmlElement(ElementName="ISDEEMEDPOSITIVE")\] 
    public string ISDEEMEDPOSITIVE { get; set; } 
    
    \[XmlElement(ElementName="LEDGERFROMITEM")\] 
    public string LEDGERFROMITEM { get; set; } 
    
    \[XmlElement(ElementName="LEDGERNAME")\] 
    public string LEDGERNAME { get; set; } 
    
    \[XmlElement(ElementName="AMOUNT")\] 
    public int AMOUNT { get; set; } 
    

    }

    [XmlRoot(ElementName="VOUCHER")]
    public class VOUCHER {

    \[XmlElement(ElementName="VOUCHERTYPENAME")\] 
    public string VOUCHERTYPENAME { get; set; } 
    
    \[XmlElement(ElementName="ALLLEDGERENTRIES.LIST")\] 
    public ALLLEDGERENTRIESLIST ALLLEDGERENTRIESLIST { get; set; } 
    
    \[XmlAttribute(AttributeName="VCHTYPE")\] 
    public string VCHTYPE { get; set; } 
    
    \[XmlAttribute(AttributeName="ACTION")\] 
    public string ACTION { get; set; } 
    
    \[XmlText\] 
    public string Text { get; set; } 
    

    }

    [XmlRoot(ElementName="TALLYMESSAGE")]
    public class TALLYMESSAGE {

    \[XmlElement(ElementName="VOUCHER")\] 
    public VOUCHER VOUCHER { get; set; } 
    
    \[XmlAttribute(AttributeName="UDF")\] 
    public string UDF { get; set; } 
    
    \[XmlText\] 
    public string Text { get; set; } 
    

    }

    Is It possible to convert this From C# to Visual C++ 2015. My heartiest thanks for all helps Always Thank To Richard & Victor & Other Superiors, those who are having kind hearts. Thank Again

    Richard DeemingR L D 3 Replies Last reply
    0
    • P Paramu1973

      Hi, I need to generate the following XML codes. And Iam using VS2015.

       Sales
       No
          Yes
          No
          Customer 1
          \-5000
      

      For That from our website quick answers, I received the following codes in C#.

      [XmlRoot(ElementName="ALLLEDGERENTRIES.LIST")]
      public class ALLLEDGERENTRIESLIST {

      \[XmlElement(ElementName="REMOVEZEROENTRIES")\] 
      public string REMOVEZEROENTRIES { get; set; } 
      
      \[XmlElement(ElementName="ISDEEMEDPOSITIVE")\] 
      public string ISDEEMEDPOSITIVE { get; set; } 
      
      \[XmlElement(ElementName="LEDGERFROMITEM")\] 
      public string LEDGERFROMITEM { get; set; } 
      
      \[XmlElement(ElementName="LEDGERNAME")\] 
      public string LEDGERNAME { get; set; } 
      
      \[XmlElement(ElementName="AMOUNT")\] 
      public int AMOUNT { get; set; } 
      

      }

      [XmlRoot(ElementName="VOUCHER")]
      public class VOUCHER {

      \[XmlElement(ElementName="VOUCHERTYPENAME")\] 
      public string VOUCHERTYPENAME { get; set; } 
      
      \[XmlElement(ElementName="ALLLEDGERENTRIES.LIST")\] 
      public ALLLEDGERENTRIESLIST ALLLEDGERENTRIESLIST { get; set; } 
      
      \[XmlAttribute(AttributeName="VCHTYPE")\] 
      public string VCHTYPE { get; set; } 
      
      \[XmlAttribute(AttributeName="ACTION")\] 
      public string ACTION { get; set; } 
      
      \[XmlText\] 
      public string Text { get; set; } 
      

      }

      [XmlRoot(ElementName="TALLYMESSAGE")]
      public class TALLYMESSAGE {

      \[XmlElement(ElementName="VOUCHER")\] 
      public VOUCHER VOUCHER { get; set; } 
      
      \[XmlAttribute(AttributeName="UDF")\] 
      public string UDF { get; set; } 
      
      \[XmlText\] 
      public string Text { get; set; } 
      

      }

      Is It possible to convert this From C# to Visual C++ 2015. My heartiest thanks for all helps Always Thank To Richard & Victor & Other Superiors, those who are having kind hearts. Thank Again

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You posted this question in QA[^] asking for C# code. You've now copied someone else's C# code and want it converted to C++. Make your damn mind up! :mad:


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      P 1 Reply Last reply
      0
      • P Paramu1973

        Hi, I need to generate the following XML codes. And Iam using VS2015.

         Sales
         No
            Yes
            No
            Customer 1
            \-5000
        

        For That from our website quick answers, I received the following codes in C#.

        [XmlRoot(ElementName="ALLLEDGERENTRIES.LIST")]
        public class ALLLEDGERENTRIESLIST {

        \[XmlElement(ElementName="REMOVEZEROENTRIES")\] 
        public string REMOVEZEROENTRIES { get; set; } 
        
        \[XmlElement(ElementName="ISDEEMEDPOSITIVE")\] 
        public string ISDEEMEDPOSITIVE { get; set; } 
        
        \[XmlElement(ElementName="LEDGERFROMITEM")\] 
        public string LEDGERFROMITEM { get; set; } 
        
        \[XmlElement(ElementName="LEDGERNAME")\] 
        public string LEDGERNAME { get; set; } 
        
        \[XmlElement(ElementName="AMOUNT")\] 
        public int AMOUNT { get; set; } 
        

        }

        [XmlRoot(ElementName="VOUCHER")]
        public class VOUCHER {

        \[XmlElement(ElementName="VOUCHERTYPENAME")\] 
        public string VOUCHERTYPENAME { get; set; } 
        
        \[XmlElement(ElementName="ALLLEDGERENTRIES.LIST")\] 
        public ALLLEDGERENTRIESLIST ALLLEDGERENTRIESLIST { get; set; } 
        
        \[XmlAttribute(AttributeName="VCHTYPE")\] 
        public string VCHTYPE { get; set; } 
        
        \[XmlAttribute(AttributeName="ACTION")\] 
        public string ACTION { get; set; } 
        
        \[XmlText\] 
        public string Text { get; set; } 
        

        }

        [XmlRoot(ElementName="TALLYMESSAGE")]
        public class TALLYMESSAGE {

        \[XmlElement(ElementName="VOUCHER")\] 
        public VOUCHER VOUCHER { get; set; } 
        
        \[XmlAttribute(AttributeName="UDF")\] 
        public string UDF { get; set; } 
        
        \[XmlText\] 
        public string Text { get; set; } 
        

        }

        Is It possible to convert this From C# to Visual C++ 2015. My heartiest thanks for all helps Always Thank To Richard & Victor & Other Superiors, those who are having kind hearts. Thank Again

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        XmlLite: A Small And Fast XML Parser For Native C++ | Microsoft Docs[^]

        P 1 Reply Last reply
        0
        • P Paramu1973

          Hi, I need to generate the following XML codes. And Iam using VS2015.

           Sales
           No
              Yes
              No
              Customer 1
              \-5000
          

          For That from our website quick answers, I received the following codes in C#.

          [XmlRoot(ElementName="ALLLEDGERENTRIES.LIST")]
          public class ALLLEDGERENTRIESLIST {

          \[XmlElement(ElementName="REMOVEZEROENTRIES")\] 
          public string REMOVEZEROENTRIES { get; set; } 
          
          \[XmlElement(ElementName="ISDEEMEDPOSITIVE")\] 
          public string ISDEEMEDPOSITIVE { get; set; } 
          
          \[XmlElement(ElementName="LEDGERFROMITEM")\] 
          public string LEDGERFROMITEM { get; set; } 
          
          \[XmlElement(ElementName="LEDGERNAME")\] 
          public string LEDGERNAME { get; set; } 
          
          \[XmlElement(ElementName="AMOUNT")\] 
          public int AMOUNT { get; set; } 
          

          }

          [XmlRoot(ElementName="VOUCHER")]
          public class VOUCHER {

          \[XmlElement(ElementName="VOUCHERTYPENAME")\] 
          public string VOUCHERTYPENAME { get; set; } 
          
          \[XmlElement(ElementName="ALLLEDGERENTRIES.LIST")\] 
          public ALLLEDGERENTRIESLIST ALLLEDGERENTRIESLIST { get; set; } 
          
          \[XmlAttribute(AttributeName="VCHTYPE")\] 
          public string VCHTYPE { get; set; } 
          
          \[XmlAttribute(AttributeName="ACTION")\] 
          public string ACTION { get; set; } 
          
          \[XmlText\] 
          public string Text { get; set; } 
          

          }

          [XmlRoot(ElementName="TALLYMESSAGE")]
          public class TALLYMESSAGE {

          \[XmlElement(ElementName="VOUCHER")\] 
          public VOUCHER VOUCHER { get; set; } 
          
          \[XmlAttribute(AttributeName="UDF")\] 
          public string UDF { get; set; } 
          
          \[XmlText\] 
          public string Text { get; set; } 
          

          }

          Is It possible to convert this From C# to Visual C++ 2015. My heartiest thanks for all helps Always Thank To Richard & Victor & Other Superiors, those who are having kind hearts. Thank Again

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Stop focusing on C# code and start focusing on learning to write your own C++ XML code from scratch. You'll learn a lot more that way.

          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
          Dave Kreskowiak

          1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            You posted this question in QA[^] asking for C# code. You've now copied someone else's C# code and want it converted to C++. Make your damn mind up! :mad:


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            P Offline
            P Offline
            Paramu1973
            wrote on last edited by
            #5

            hi Richard Deeming, Sorry & Thank for the advise and the reason is Visual C++/CLR doesn't support LINQ. I do remember all your advises are powerful & good. Your replies helped many times while I get struck. Thank Again ! :rose:

            1 Reply Last reply
            0
            • L Lost User

              XmlLite: A Small And Fast XML Parser For Native C++ | Microsoft Docs[^]

              P Offline
              P Offline
              Paramu1973
              wrote on last edited by
              #6

              Thank Richard

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups