Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2005

Tip: Looking for answers? Try searching our database.

Interop problem while implementing "Observer" pattern

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CAra - 24 Oct 2005 10:22 GMT
Hi All,

I have a problem with interop as explained below:

I have a component build in VC++ 6.0.

I have built another component in C#. These two components follow
"Observer" pattern where VC++ component acts as the subject and C#
component acts the observer.

As C# is the observer, it has to "Register" with C++ and has to give
it's own custom call back interface pointer (not IUnknown)

All is well, till the C++ makes a call on the call back interface
pointer. When the C++ tries to call the call back method, it just gets
blocked there. I don't understand what is happening there.

Could some explain it>?

Thanks in advance

Regards
CAra
CAra - 24 Oct 2005 13:02 GMT
Hello all,

now it is working! But I still don't know why it is working...

I have done the following changes:

I have added "ComVisibleAttribute" and set its value to "true" for
those call back methods and tested. It worked fine.

After this, I have removed that attribute and tested again. This time
also it worked. I am somewhat happy though I don't know wthaz
happening....

Regards
CAra

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.