Marshalling bool data type between .Net and C++

  • Thread starter Thread starter MB
  • Start date Start date
M

MB

I have a .net app which uses a c++ dll. I call a function
in the c++ dll which returns bool type. On the .Net side
I dont receive the correct response. I hard coded the dll
function to return false under all circumstances. On
the .net side I still receive true. Am I doing anything
wrong or is there a problem in marshalling the bool data
types. A quick response will be highly appreciated.

MB
 
-----Original Message-----
I have a .net app which uses a c++ dll. I call a function
in the c++ dll which returns bool type. On the .Net side
I dont receive the correct response. I hard coded the dll
function to return false under all circumstances. On
the .net side I still receive true. Am I doing anything
wrong or is there a problem in marshalling the bool data
types. A quick response will be highly appreciated.

MB

You can have a bool datatype as the return passing from a
c++ dll. I have a vb.net front end that calls quite a
few functions in my c++ dll's that return bool
datatypes. I'm not sure what the problem with your
program is though.
 
Back
Top