Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • serialization

How to convert a double to a C# decimal in C++?

May 27, 2011 See the question and my original answer on StackOverflow

What about using VarR8FromDec Function ?

EDIT: This function is declared on Windows system only. However an equivalent C implementation is available with WINE, here: http://source.winehq.org/source/dlls/oleaut32/vartype.c

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms