Hi,
> Thanks Bruno. Code Project is a wonderful website but I have yet to find
> an example that has a really good sample of events.
[quoted text clipped - 4 lines]
>
> But it does not show how to use the class with, With Event keyword in VB.
For that you could ask in the vb group. I wouldn't know how to do something
specific in VB.
For testing this part of your problem, you could create a C# class that
exports an event.
That would probably easier for you to find info about.
For using a .NET event in a specific way, it does not matter which language
the assembly was created with.
> Also the delegate is declared outside the class that is the source of the
> event. Is this normal?
This should not be a problem. It could be a generic delegate that is used in
lots of classes
Btw, that sample is for MC++, which is a deprecated syntax.
C++/CLI is the definite way for using .NET in C++.
do a search for C++/CLI event, and you should get some positive hits.
these 2 things should be a lot easier to figure out separately.
Once you know them both you can then combine them.
Hope this helps.

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"
Bruce - 23 Dec 2006 21:26 GMT
> Hi,
> For that you could ask in the vb group. I wouldn't know how to do something
> specific in VB.
[quoted text clipped - 15 lines]
> Once you know them both you can then combine them.
> Hope this helps.
Thanks again Bruno,
I am still using VC7. (Too cheap to upgrade to VC8, though I do have
the Express Version). Does C++/CLI events work for VC7?
I am still searching for some sample code.
Bruce
Ben Voigt - 26 Dec 2006 18:10 GMT
>> Hi,
>
[quoted text clipped - 22 lines]
> I am still using VC7. (Too cheap to upgrade to VC8, though I do have the
> Express Version). Does C++/CLI events work for VC7?
VC8 Express beats VC7 any version for almost any purpose.
> I am still searching for some sample code.
>
> Bruce
Tamas Demjen - 29 Dec 2006 00:19 GMT
> Does C++/CLI events work for VC7?
The C++/CLI language was introduced in VC8. VC7 requires you to use the
old MC++ syntax, not the new C++/CLI one.
Tom
Bruce - 23 Dec 2006 21:29 GMT
> Hi,
>> But it does not show how to use the class with, With Event keyword in VB.
>
[quoted text clipped - 7 lines]
> For using a .NET event in a specific way, it does not matter which language
> the assembly was created with.
> This should not be a problem. It could be a generic delegate that is used in
> lots of classes
[quoted text clipped - 5 lines]
> Once you know them both you can then combine them.
> Hope this helps.
P.S. I must use C++ because I am building a managed wrapper for an
existing C++ unmanaged library.