I have a simmilar problem to the user posting at
http://groups.google.com/groups?q=managed+code+register+changed&hl=en&lr=&ie=UTF
-8&oe=UTF-8&selm=AIG1b.816455%243C2.18525716%40news3.calgary.shaw.ca&rnum=
I have an C++ managed class calling an unmanaged function on an unmanaged C++ class in an unmanaged dll
the function returns false; but the managed code thinks it returned true. I am afaid this could cause big problemes in other places in my code. I did a small work around for this case by making my managed class call an unmanged function in the managed dll which then returns the result of the call, but i don't want to have to do that were ever I call an unmanaged dll, i there a better fix for this
Thanks
Michael van der Bokke (Software Developer
www.lookaheaddecisions.co
marcel baumann - 18 Mar 2004 13:36 GMT
Hello Michael
We have exactly the same problem with our mixed mode DLL when returning a bool
One workaround is to use an int return value instead of bool
Since we are using Visual Studio 7.1, we got the linker warnin
LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly
I followed the instructions in the Visual Studio help topi
'Converting Managed Extensions for C++ Projects from Pure Intermediate Language to Mixed Mode
and the bool was returned correctly
The solution is fine if you call the mixed mode dll from an application
We are calling our mixed mode DLL also from a web service
I asked Ted Pattison for a solution for this problem but i never got an answer
Greetings Marce