G
Guest
I have 2 modules, I am using .net dialog for user interface and unmanaged c++
for library. In library, I have a function that returns true or false. If I
call the function from managed code, I am getting true though the function is
returning false. The return value is changing.. am I missing something or
what is wrong.
Code is like this:
//managed code
{
...................
if(IsEnable())//I am getting true here.
{
...........do something.......
}
....................
}
//unmanaged code
bool IsEnable()
{
return false;//retuning false
}
for library. In library, I have a function that returns true or false. If I
call the function from managed code, I am getting true though the function is
returning false. The return value is changing.. am I missing something or
what is wrong.
Code is like this:
//managed code
{
...................
if(IsEnable())//I am getting true here.
{
...........do something.......
}
....................
}
//unmanaged code
bool IsEnable()
{
return false;//retuning false
}