I was trying to simplify my problem posted here
http://www.codeproject.com/Questions/267721/native-dll-built-with-CLR-flag-containing-a-manage/?cmt=164099#cmt2_267721
I created a MFC dll and added a manged C++ class to it (same class as the one in the above post) . Compiled with /CLR flag.
When I add this dll to winforms project and run it i get
System.BadImageFormatException. Any clue ?
However I see the class and the name space and winform project compiles fine unlike the problem I have in the above mentioned post.
Shashi