Replace bool with int in a dll used in multi-languages

  • Thread starter Thread starter Torben Laursen
  • Start date Start date
T

Torben Laursen

Hi
I have a dll that is beeing called by C++, VBA, Java and C#
One of my customers does not like that I have bool in the argument list
of some of the exported functions so I want to replace all my bool
arguments
with a int argument.
But is -1 treated as false or true in the 4 languages above?

Thanks Torben
 
As true in all languages you specified.

Ronald Laeremans
Visual C++ team
 
Back
Top