Skip to main content
GameDev.net gamedev.net
🔒 Locked

__delegates across multiple projects

Started by edwinnie Jan 18, 2004 at 2:20 AM 0 replies 250+ views
Original Post
edwinnie
edwinnie
okok i was fiddling ard with managed c++.net delegates. i couldnt seem to get them working across 2 different projects. suppose project 1: //somewhere in NameSpace1 public __delegate MyEventHandler(); //somewhere in a class public __gc class MyEventSource { __event MyEventHandler* OnMyEvent(); }; then in project 2: public __gc class MyEventReceiver { //somewhere during initialisation myEventSource->OnMyEvent += new MyEventHandler(this, MyEventReceiver::MyCallBack); }; i got a couple of weird errors, cannot convert parameter 1 from ''NameSpace1::MyEventHandler __gc *'' to ''NameSpace1::MyEventSource::__Delegate_OnMyEvent __gc *'' any one tried such form of delegates yet? much help is greatly appreciated. thx! Edwinz

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.