CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2011
    Posts
    73

    Convert From C# To VC++

    Hi Iam tryin to convert my Digit To Words class from c# to VC++... And the following line I am facing trouble

    String^ strNum;
    String^ strNumDec;
    String^ StrWord;
    strNum = Convert::ToString(Num); // Num is Decimal Parameter
    blah..blah...blah...

    StrWord = ((double.Parse(strNum) == 1) ? " Rupee " : " Rupees ") + NumToWord((decimal)(double.Parse(strNum))) + ((double.Parse(strNumDec) > 0) ? (" and Paise" + cWord3((decimal)(double.Parse(strNumDec)))) : "");

    Thanks

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: Convert From C# To VC++

    The code snippet you have posted has nothing to do with VC++.
    It is a managed C++ code. VC++ (visual) C++ is a native C++ code.
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2011
    Posts
    73

    Re: Convert From C# To VC++

    Ok. Thank you Victor..I will change the title

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured