Sunday, July 25, 2010

InterOp .... C++\C# issues


C# interop keep throwing MemoryAccessViolation


I faced with interesting problem, think I should share with you all.
basically I'm a C++ programmer and working as beginner with C#.
I've to get the value from COM C++ component to the (C# as a client),
Here I got an interesting MSDN help.
Please go thru the link.

http://social.msdn.microsoft.com/Forums/en-US/clr/thread/9a4e8bbb-efbd-4a90-9549-4e1795198800

http://dotnet.itags.org/dotnet-c-sharp/86388/

http://objectmix.com/dotnet/103378-how-return-string-array-com-c.html

http://objectmix.com/dotnet/257081-marshaling-array-into-com-server-ok-but-cant-return-array-invalid-procedure-call-argument.html

http://stackoverflow.com/questions/1300122/marshalling-bstrs-from-c-to-c-with-com-interop

No comments:

Post a Comment

Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...