G
Guest
In a .Net application, given a C++ dll with methods called by a C# GUI
Assume (x&y) is FALS
the following code in the C++ dll, when called from the C# interface
bool theMethod(unsigned int x)
unsigned int y = 0x2
if (x&y) // FALSE
printf("True")
if (x&y
return true
els
return false
1. Does NOT print the text "True
2. Does return TRU
While the following code
theMethod(unsigned int x
unsigned int y = 0x2
if (x&y) // FALSE
printf("True")
if (x&y
printf("")
return true
els
printf("")
return false
1. Does NOT print the text "True
2. Does return FALS
Question
Why is this happening?
Assume (x&y) is FALS
the following code in the C++ dll, when called from the C# interface
bool theMethod(unsigned int x)
unsigned int y = 0x2
if (x&y) // FALSE
printf("True")
if (x&y
return true
els
return false
1. Does NOT print the text "True
2. Does return TRU
While the following code
theMethod(unsigned int x
unsigned int y = 0x2
if (x&y) // FALSE
printf("True")
if (x&y
printf("")
return true
els
printf("")
return false
1. Does NOT print the text "True
2. Does return FALS
Question
Why is this happening?